BioClients 0.2.36__tar.gz → 0.2.38__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bioclients-0.2.36 → bioclients-0.2.38}/PKG-INFO +11 -5
- {bioclients-0.2.36 → bioclients-0.2.38}/README.md +9 -4
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/gwascatalog/Client.py +22 -18
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/gwascatalog/Utils.py +92 -27
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/umls/Client.py +8 -4
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/umls/Utils.py +26 -38
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients.egg-info/PKG-INFO +11 -5
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients.egg-info/requires.txt +1 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/pyproject.toml +2 -1
- {bioclients-0.2.36 → bioclients-0.2.38}/setup.py +1 -1
- {bioclients-0.2.36 → bioclients-0.2.38}/LICENSE +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/allen/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/allen/brain/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/allen/brain/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/allen/brain/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/amp/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/amp/t2d/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/amp/t2d/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/amp/t2d/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/badapple/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/badapple/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/badapple/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/bindingdb/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/bindingdb/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/bindingdb/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/biogrid/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/biogrid/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/biogrid/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/biomarkerkb/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/biomarkerkb/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/biomarkerkb/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/bioregistry/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/bioregistry/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/bioregistry/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/brenda/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/brenda/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/brenda/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/cas/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/cas/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/cas/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/cdc/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/cdc/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/cdc/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/cfde/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/cfde/cfchemdb/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/cfde/cfchemdb/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/cfde/cfchemdb/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chebi/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chebi/Client_SOAP.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chebi/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chebi/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chem2bio2rdf/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chem2bio2rdf/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chem2bio2rdf/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chem2bio2rdf/slap/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chem2bio2rdf/slap/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chem2bio2rdf/slap/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chembl/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chembl/FetchByID.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chembl/UnichemClient.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chembl/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chembl/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chemidplus/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chemidplus/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/chemidplus/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/clinicaltrials/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/clinicaltrials/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/clinicaltrials/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/disgenet/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/disgenet/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/disgenet/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/dnorm/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/dnorm/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/drugcentral/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/drugcentral/Test.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/drugcentral/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/drugcentral/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/emblebi/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/emblebi/identifiers/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/emblebi/identifiers/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/emblebi/identifiers/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/emblebi/unichem/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/emblebi/unichem/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/emblebi/unichem/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ensembl/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ensembl/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ensembl/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ensembl/biomart/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ensembl/biomart/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ensembl/biomart/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/entrez/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/entrez/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/entrez/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/fda/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/fda/aer/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/fda/aer/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/fda/aer/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/geneontology/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/geneontology/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/geneontology/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/glygen/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/glygen/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/glygen/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/gtex/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/gtex/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/gtex/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/gwascatalog/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/hubmap/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/hubmap/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/hubmap/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/hugo/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/hugo/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/hugo/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/humanbase/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/humanbase/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/icite/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/icite/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/icite/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/pharos/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/pharos/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/pharos/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/rss/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/rss/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/rss/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/tcrd/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/tcrd/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/tcrd/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/tiga/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/tiga/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/tiga/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/tinx/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/tinx/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/idg/tinx/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/iuphar/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/iuphar/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/iuphar/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/jensenlab/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/jensenlab/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/jensenlab/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/lincs/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/lincs/Client_lincscloud.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/lincs/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/lincs/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/lincs/sigcom/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/lincs/sigcom/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/lincs/sigcom/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/maayanlab/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/maayanlab/archs4/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/maayanlab/archs4/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/maayanlab/archs4/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/maayanlab/harmonizome/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/maayanlab/harmonizome/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/maayanlab/harmonizome/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/medline/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/medline/connect/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/medline/connect/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/medline/connect/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/medline/genetics/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/medline/genetics/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/medline/genetics/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/mesh/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/mesh/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/mesh/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/monarch/Biolink.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/monarch/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/monarch/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/monarch/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/mygene/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/mygene/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/mygene/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ncats/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ncats/gsrs/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ncats/gsrs/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ncats/gsrs/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ncats/stitcher/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ncats/stitcher/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ncats/stitcher/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ncbo/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ncbo/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ncbo/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/omim/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/omim/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/oncotree/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/oncotree/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/oncotree/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/openphacts/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/openphacts/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/openphacts/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/opentargets/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/opentargets/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/opentargets/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/panther/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/panther/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pdb/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pdb/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pdb/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/ftp/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/ftp/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/ftp/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/ftp/pubchem_ftp_actives.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/ftp/pubchem_ftp_assay_fetch.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/ftp/pubchem_ftp_assay_results.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/ftp/pubchem_ftp_assay_search.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/ftp/pubchem_ftp_assaysim.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/ftp/pubchem_ftp_compound_assaystats.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/ftp/pubchem_ftp_gini_index.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/rdf/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/rdf/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/soap/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/soap/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/soap/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/soap/pug_aids2assays.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/soap/pug_ids2mols.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubchem/soap/pug_substance_search.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubmed/App_XML.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubmed/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubmed/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubmed/Utils_XML.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubmed/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubtator/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubtator/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/pubtator/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/reactome/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/reactome/SMBL_utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/reactome/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/reactome/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/rxnorm/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/rxnorm/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/rxnorm/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/stringdb/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/stringdb/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/stringdb/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/tcga/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/tcga/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/tcga/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/tinx/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/tinx/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/tinx/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ubkg/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ubkg/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/ubkg/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/umls/CPTClient.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/umls/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/uniprot/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/uniprot/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/uniprot/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/db/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/db/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/graphql/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/graphql/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/hdf/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/hdf/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/igraph/App.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/igraph/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/igraph/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/neo4j/App.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/neo4j/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/neo4j/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/obo/App.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/obo/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/obo/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/owl/App.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/owl/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/owl/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/pandas/App.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/pandas/Csv2Html.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/pandas/Csv2Markdown.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/pandas/Csv2Sql.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/pandas/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/pandas/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/rdf/App.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/rdf/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/rdf/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/rest/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/rest/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/sparql/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/sparql/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/sparql/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/xml/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/xml/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/yaml/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/util/yaml/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/who/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/who/atc/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/who/atc/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/who/atc/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/wikidata/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/wikidata/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/wikidata/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/wikipathways/Client.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/wikipathways/Utils.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients/wikipathways/__init__.py +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients.egg-info/SOURCES.txt +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients.egg-info/dependency_links.txt +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/bioclients.egg-info/top_level.txt +0 -0
- {bioclients-0.2.36 → bioclients-0.2.38}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bioclients
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.38
|
|
4
4
|
Summary: Clients and tools for online biomedical resources, usually via REST APIs.
|
|
5
5
|
Home-page: https://github.com/jeremyjyang/bioclients
|
|
6
6
|
Author: Jeremy Yang
|
|
@@ -22,6 +22,7 @@ Requires-Dist: numpy
|
|
|
22
22
|
Requires-Dist: pyquery
|
|
23
23
|
Requires-Dist: sqlalchemy
|
|
24
24
|
Requires-Dist: psycopg2-binary
|
|
25
|
+
Requires-Dist: pymysql
|
|
25
26
|
Dynamic: author
|
|
26
27
|
Dynamic: home-page
|
|
27
28
|
Dynamic: license-file
|
|
@@ -62,12 +63,17 @@ pip install bioclients
|
|
|
62
63
|
|
|
63
64
|
It may not be necessary or advantageous to configure an environment for all of `bioclients` functionality. Specific modules may be supported with `venv` environments with required dependencies. Module documentation should indicate needed package dependencies. The following steps should create an environment for much of the functionality of `bioclients`.
|
|
64
65
|
|
|
65
|
-
1. `mkdir venv`
|
|
66
|
-
1. `python3 -m venv venv`
|
|
67
|
-
1. `source venv/bin/activate`
|
|
68
|
-
1. `pip install
|
|
66
|
+
1. `mkdir -p $HOME/venv/bioclients`
|
|
67
|
+
1. `python3 -m venv $HOME/venv/bioclients`
|
|
68
|
+
1. `source $HOME/venv/bioclients/bin/activate`
|
|
69
|
+
1. `pip install --upgrade pip`
|
|
69
70
|
1. `pip install --upgrade bioclients`
|
|
70
71
|
|
|
72
|
+
For additional functionality, more packages can be installed by:
|
|
73
|
+
|
|
74
|
+
`pip install -r pip_requirements.txt`
|
|
75
|
+
|
|
76
|
+
|
|
71
77
|
### Installing from source
|
|
72
78
|
|
|
73
79
|
Source at <https://github.com/jeremyjyang/bioclients>
|
|
@@ -33,12 +33,17 @@ pip install bioclients
|
|
|
33
33
|
|
|
34
34
|
It may not be necessary or advantageous to configure an environment for all of `bioclients` functionality. Specific modules may be supported with `venv` environments with required dependencies. Module documentation should indicate needed package dependencies. The following steps should create an environment for much of the functionality of `bioclients`.
|
|
35
35
|
|
|
36
|
-
1. `mkdir venv`
|
|
37
|
-
1. `python3 -m venv venv`
|
|
38
|
-
1. `source venv/bin/activate`
|
|
39
|
-
1. `pip install
|
|
36
|
+
1. `mkdir -p $HOME/venv/bioclients`
|
|
37
|
+
1. `python3 -m venv $HOME/venv/bioclients`
|
|
38
|
+
1. `source $HOME/venv/bioclients/bin/activate`
|
|
39
|
+
1. `pip install --upgrade pip`
|
|
40
40
|
1. `pip install --upgrade bioclients`
|
|
41
41
|
|
|
42
|
+
For additional functionality, more packages can be installed by:
|
|
43
|
+
|
|
44
|
+
`pip install -r pip_requirements.txt`
|
|
45
|
+
|
|
46
|
+
|
|
42
47
|
### Installing from source
|
|
43
48
|
|
|
44
49
|
Source at <https://github.com/jeremyjyang/bioclients>
|
|
@@ -26,18 +26,22 @@ Example GCSTs: GCST004364, GCST000227;
|
|
|
26
26
|
Example EFOIDs: EFO_0004232;
|
|
27
27
|
Example SNPIDs: rs6085920, rs2273833, rs6684514, rs144991356
|
|
28
28
|
"""
|
|
29
|
-
parser = argparse.ArgumentParser(description='GWAS Catalog REST API (V1
|
|
29
|
+
parser = argparse.ArgumentParser(description='GWAS Catalog REST API V2 (V1-deprecated) client', epilog=epilog)
|
|
30
30
|
searchtypes=['pubmedmid', 'gcst', 'efotrait', 'efouri', 'accessionid', 'rs']
|
|
31
31
|
ops = [
|
|
32
|
+
'get_metadata',
|
|
33
|
+
'get_metadata_v1',
|
|
32
34
|
'get_metadata_v2',
|
|
33
35
|
'list_studies',
|
|
36
|
+
'list_studies_v1',
|
|
34
37
|
'list_studies_v2',
|
|
35
38
|
'get_studyAssociations',
|
|
39
|
+
'get_studyAssociations_v1',
|
|
36
40
|
'get_studyAssociations_v2',
|
|
37
41
|
'get_snps',
|
|
42
|
+
'get_snps_v1',
|
|
38
43
|
'get_snps_v2',
|
|
39
|
-
'
|
|
40
|
-
'search_studies_v2'
|
|
44
|
+
'search_studies_v1'
|
|
41
45
|
]
|
|
42
46
|
parser.add_argument("op", choices=ops, help='operation')
|
|
43
47
|
parser.add_argument("--ids", dest="ids", help="IDs, comma-separated")
|
|
@@ -47,13 +51,13 @@ Example SNPIDs: rs6085920, rs2273833, rs6684514, rs144991356
|
|
|
47
51
|
parser.add_argument("--skip", type=int, default=0)
|
|
48
52
|
parser.add_argument("--nmax", type=int, default=None)
|
|
49
53
|
parser.add_argument("--api_host", default=gwascatalog.API_HOST)
|
|
50
|
-
parser.add_argument("--
|
|
54
|
+
parser.add_argument("--api_base_path_v1", default=gwascatalog.API_BASE_PATH_V1)
|
|
51
55
|
parser.add_argument("--api_base_path_v2", default=gwascatalog.API_BASE_PATH_V2)
|
|
52
56
|
parser.add_argument("-v", "--verbose", default=0, action="count")
|
|
53
57
|
parser.add_argument("-q", "--quiet", default=0, action="count")
|
|
54
58
|
args = parser.parse_args()
|
|
55
59
|
|
|
56
|
-
|
|
60
|
+
base_url_v1 = 'https://'+args.api_host+args.api_base_path_v1
|
|
57
61
|
base_url_v2 = 'https://'+args.api_host+args.api_base_path_v2
|
|
58
62
|
|
|
59
63
|
fout = open(args.ofile, 'w') if args.ofile else sys.stdout
|
|
@@ -74,29 +78,29 @@ Example SNPIDs: rs6085920, rs2273833, rs6684514, rs144991356
|
|
|
74
78
|
ids = re.split(r'\s*,\s*', args.ids.strip())
|
|
75
79
|
if ids: logging.info(f"Input IDs: {len(ids)}")
|
|
76
80
|
|
|
77
|
-
if args.op == 'get_metadata_v2':
|
|
78
|
-
gwascatalog.GetMetadataV2(
|
|
81
|
+
if args.op == 'get_metadata_v2' or args.op == 'get_metadata':
|
|
82
|
+
gwascatalog.GetMetadataV2(base_url_v2, fout)
|
|
79
83
|
|
|
80
|
-
elif args.op == '
|
|
81
|
-
gwascatalog.
|
|
84
|
+
elif args.op == 'list_studies_v1':
|
|
85
|
+
gwascatalog.ListStudiesV1(base_url_v1, fout)
|
|
82
86
|
|
|
83
|
-
elif args.op == 'list_studies_v2':
|
|
84
|
-
gwascatalog.
|
|
87
|
+
elif args.op == 'list_studies_v2' or args.op == 'list_studies':
|
|
88
|
+
gwascatalog.ListStudiesV2(base_url_v2, fout)
|
|
85
89
|
|
|
86
|
-
elif args.op == '
|
|
87
|
-
gwascatalog.
|
|
90
|
+
elif args.op == 'get_studyAssociations_v1':
|
|
91
|
+
gwascatalog.GetStudyAssociationsV1(ids, args.skip, args.nmax, base_url_v1, fout)
|
|
88
92
|
|
|
89
93
|
elif args.op == 'get_studyAssociations_v2':
|
|
90
94
|
gwascatalog.GetStudyAssociationsV2(ids, args.skip, args.nmax, base_url_v2, fout)
|
|
91
95
|
|
|
92
|
-
elif args.op == '
|
|
93
|
-
gwascatalog.
|
|
96
|
+
elif args.op == 'get_snps_v1':
|
|
97
|
+
gwascatalog.GetSnpsV1(ids, args.skip, args.nmax, base_url_v1, fout)
|
|
94
98
|
|
|
95
|
-
elif args.op == 'get_snps_v2':
|
|
99
|
+
elif args.op == 'get_snps_v2' or args.op == 'get_snps':
|
|
96
100
|
gwascatalog.GetSnpsV2(ids, args.skip, args.nmax, base_url_v2, fout)
|
|
97
101
|
|
|
98
|
-
elif args.op == '
|
|
99
|
-
gwascatalog.
|
|
102
|
+
elif args.op == 'search_studies_v1':
|
|
103
|
+
gwascatalog.SearchStudiesV1(ids, args.searchtype, base_url_v1, fout)
|
|
100
104
|
|
|
101
105
|
else:
|
|
102
106
|
parser.error(f"Unknown operation: {args.op}")
|
|
@@ -5,7 +5,9 @@ V1:
|
|
|
5
5
|
|
|
6
6
|
V2:
|
|
7
7
|
- https://www.ebi.ac.uk/gwas/rest/api/v2/docs
|
|
8
|
-
- "GWAS RESTful API V2 has been released with various enhancements & improvements over GWAS RESTful API V1.
|
|
8
|
+
- "GWAS RESTful API V2 has been released with various enhancements & improvements over GWAS RESTful API V1."
|
|
9
|
+
- "REST API v2 is the only currently supported version of the GWAS Catalog API. V1 was retired in August 2026."
|
|
10
|
+
- https://www.ebi.ac.uk/gwas/docs/programmatic-access/rest-api/
|
|
9
11
|
- https://www.ebi.ac.uk/gwas/rest/api/v2/docs/reference
|
|
10
12
|
"""
|
|
11
13
|
###
|
|
@@ -17,9 +19,9 @@ import urllib.request,urllib.parse
|
|
|
17
19
|
import pandas as pd
|
|
18
20
|
#
|
|
19
21
|
API_HOST='www.ebi.ac.uk'
|
|
20
|
-
|
|
22
|
+
API_BASE_PATH_V1='/gwas/rest/api'
|
|
21
23
|
API_BASE_PATH_V2='/gwas/rest/api/v2'
|
|
22
|
-
|
|
24
|
+
BASE_URL_V1='https://'+API_HOST+API_BASE_PATH_V1
|
|
23
25
|
BASE_URL_V2='https://'+API_HOST+API_BASE_PATH_V2
|
|
24
26
|
#
|
|
25
27
|
NCHUNK=100;
|
|
@@ -48,21 +50,22 @@ def GetMetadataV2(base_url=BASE_URL_V2, fout=None):
|
|
|
48
50
|
logging.error(f"(status_code={response.status_code}): url_this: {url_this}")
|
|
49
51
|
return
|
|
50
52
|
try:
|
|
51
|
-
|
|
53
|
+
result = response.json()
|
|
52
54
|
except Exception as e:
|
|
53
55
|
logging.error(f"{str(e)}; response.text: {response.text}")
|
|
54
56
|
return
|
|
55
|
-
logging.debug(json.dumps(
|
|
56
|
-
metadata =
|
|
57
|
-
for key in
|
|
58
|
-
metadata[key] = [
|
|
57
|
+
logging.debug(json.dumps(result, sort_keys=True, indent=2))
|
|
58
|
+
metadata = {}
|
|
59
|
+
for key in result.keys():
|
|
60
|
+
metadata[key] = [result[key]]
|
|
59
61
|
df_this = pd.DataFrame.from_dict(metadata)
|
|
62
|
+
df_this = df_this.transpose()
|
|
60
63
|
if fout is not None:
|
|
61
|
-
df_this.to_csv(fout, sep="\t", index=
|
|
64
|
+
df_this.to_csv(fout, sep="\t", index=True, header=False)
|
|
62
65
|
return df_this
|
|
63
66
|
|
|
64
67
|
##############################################################################
|
|
65
|
-
def
|
|
68
|
+
def ListStudiesV1(base_url=BASE_URL_V1, fout=None):
|
|
66
69
|
"""Only simple metadata."""
|
|
67
70
|
tags=[]; n_study=0; rval=None; df=None; tq=None;
|
|
68
71
|
session = InitiateSession()
|
|
@@ -107,7 +110,50 @@ def ListStudies(base_url=BASE_URL, fout=None):
|
|
|
107
110
|
return(df)
|
|
108
111
|
|
|
109
112
|
##############################################################################
|
|
110
|
-
def
|
|
113
|
+
def ListStudiesV2(base_url=BASE_URL_V2, fout=None):
|
|
114
|
+
tags=[]; n_study=0; rval=None; df=None; tq=None;
|
|
115
|
+
session = InitiateSession()
|
|
116
|
+
url_this = base_url+f'/studies?size={NCHUNK}'
|
|
117
|
+
while True:
|
|
118
|
+
logging.debug(url_this)
|
|
119
|
+
response = session.get(url_this)
|
|
120
|
+
if (response.status_code!=200):
|
|
121
|
+
logging.error(f"(status_code={response.status_code}): url_this: {url_this}")
|
|
122
|
+
break
|
|
123
|
+
try:
|
|
124
|
+
result = response.json()
|
|
125
|
+
except Exception as e:
|
|
126
|
+
logging.error(f"{str(e)}; response.text: {response.text}")
|
|
127
|
+
break
|
|
128
|
+
if '_embedded' not in result or 'studies' not in result['_embedded']: break
|
|
129
|
+
studies = result['_embedded']['studies']
|
|
130
|
+
if studies is None: break
|
|
131
|
+
if tq is None: tq = tqdm.tqdm(total=result["page"]["totalElements"])
|
|
132
|
+
for study in studies:
|
|
133
|
+
tq.update(n=1)
|
|
134
|
+
if not tags:
|
|
135
|
+
tags = list(study.keys())
|
|
136
|
+
for tag in tags[:]:
|
|
137
|
+
if type(study[tag]) in (list, dict) and tag not in (
|
|
138
|
+
"disease_trait",
|
|
139
|
+
"efo_traits",
|
|
140
|
+
"genotyping_technologies",
|
|
141
|
+
"discovery_ancestry"
|
|
142
|
+
):
|
|
143
|
+
tags.remove(tag)
|
|
144
|
+
logging.info(f"Ignoring tag: {tag}")
|
|
145
|
+
df_this = pd.DataFrame({tag:[str(study[tag]) if tag in study else ''] for tag in tags})
|
|
146
|
+
if fout is not None: df_this.to_csv(fout, sep="\t", index=False, header=(n_study==0), mode=('w' if n_study==0 else 'a'))
|
|
147
|
+
else: df = pd.concat([df, df_this])
|
|
148
|
+
n_study+=1
|
|
149
|
+
if 'next' not in result['_links']: break
|
|
150
|
+
elif url_this == result['_links']['last']['href']: break
|
|
151
|
+
else: url_this = result['_links']['next']['href']
|
|
152
|
+
logging.info(f"n_study: {n_study}")
|
|
153
|
+
return(df)
|
|
154
|
+
|
|
155
|
+
##############################################################################
|
|
156
|
+
def GetStudyAssociationsV1(ids, skip=0, nmax=None, base_url=BASE_URL_V1, fout=None):
|
|
111
157
|
"""
|
|
112
158
|
Mapped genes via SNP links.
|
|
113
159
|
arg = authorReportedGene
|
|
@@ -195,11 +241,11 @@ sea = SNP effect allele
|
|
|
195
241
|
if (response.status_code!=200):
|
|
196
242
|
logging.error(f"(status_code={response.status_code}): url_this: {url_this}")
|
|
197
243
|
continue
|
|
198
|
-
|
|
199
|
-
if not
|
|
200
|
-
logging.debug(json.dumps(
|
|
201
|
-
if '_embedded' in
|
|
202
|
-
assns =
|
|
244
|
+
result = response.json()
|
|
245
|
+
if not result: continue
|
|
246
|
+
logging.debug(json.dumps(result, sort_keys=True, indent=2))
|
|
247
|
+
if '_embedded' in result and 'associations' in result['_embedded']:
|
|
248
|
+
assns = result['_embedded']['associations']
|
|
203
249
|
else:
|
|
204
250
|
logging.error(f'No associations for study: {id_this}')
|
|
205
251
|
continue
|
|
@@ -248,7 +294,7 @@ sea = SNP effect allele
|
|
|
248
294
|
if fout is None: return(df)
|
|
249
295
|
|
|
250
296
|
##############################################################################
|
|
251
|
-
def
|
|
297
|
+
def GetSnpsV1(ids, skip=0, nmax=None, base_url=BASE_URL_V1, fout=None):
|
|
252
298
|
"""
|
|
253
299
|
Input: rs_id, e.g. rs7329174
|
|
254
300
|
loc = location
|
|
@@ -317,7 +363,7 @@ Input: rs_id, e.g. rs7329174
|
|
|
317
363
|
https://www.ebi.ac.uk/gwas/rest/api/v2/single-nucleotide-polymorphisms?rs_id=rs7329174&page=0&size=20
|
|
318
364
|
To do(?): Include genomic contexts
|
|
319
365
|
"""
|
|
320
|
-
n_snp=0; n_gene=0; n_loc=0; n_gc=0; df=None; tq=None;
|
|
366
|
+
n_snp=0; n_gene=0; n_loc=0; n_gc=0; n_out=0; df=None; tq=None;
|
|
321
367
|
tags_snp=[]; tags_gc=[];
|
|
322
368
|
quiet = bool(logging.getLogger().getEffectiveLevel()>15)
|
|
323
369
|
session = InitiateSession()
|
|
@@ -344,7 +390,7 @@ To do(?): Include genomic contexts
|
|
|
344
390
|
if not tags_snp:
|
|
345
391
|
for key,val in snp.items():
|
|
346
392
|
if type(val) not in (list, dict): tags_snp.append(key)
|
|
347
|
-
df_snp = pd.DataFrame({tag_snp:[snp[tag_snp]] for tag_snp in tags_snp})
|
|
393
|
+
df_snp = pd.DataFrame({tag_snp:[snp[tag_snp] if tag_snp in snp else ''] for tag_snp in tags_snp})
|
|
348
394
|
if 'mapped_genes' in snp:
|
|
349
395
|
df_snp['mapped_genes'] = [','.join(snp['mapped_genes'])]
|
|
350
396
|
n_gene += len(snp['mapped_genes'])
|
|
@@ -369,19 +415,38 @@ To do(?): Include genomic contexts
|
|
|
369
415
|
if not tags_gc:
|
|
370
416
|
for key,val in gc.items():
|
|
371
417
|
if type(val) not in (list, dict): tags_gc.append(key)
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
418
|
+
df_gc_this = pd.DataFrame({tag_gc:[gc[tag_gc] if tag_gc in gc else ''] for tag_gc in tags_gc})
|
|
419
|
+
gene = gc['gene'] if 'gene' in gc else {}
|
|
420
|
+
gene_name = gene['gene_name'] if 'gene_name' in gene else ''
|
|
421
|
+
ensembl_gene_ids = gene['ensembl_gene_ids'] if 'ensembl_gene_ids' in gene else []
|
|
422
|
+
entrez_gene_ids = gene['entrez_gene_ids'] if 'entrez_gene_ids' in gene else []
|
|
423
|
+
location = gc['location'] if 'location' in gc else {}
|
|
424
|
+
chromosome_name = location['chromosome_name'] if 'chromosome_name' in location else ''
|
|
425
|
+
chromosome_position = location['chromosome_position'] if 'chromosome_position' in location else ''
|
|
426
|
+
chromosome_region = location['region']['name'] if 'region' in location and 'name' in location['region'] else ''
|
|
427
|
+
df_gc_this = pd.concat([df_gc_this, pd.DataFrame(
|
|
428
|
+
{
|
|
429
|
+
'gene_name':[gene_name],
|
|
430
|
+
'ensembl_gene_ids':[';'.join(ensembl_gene_ids)],
|
|
431
|
+
'entrez_gene_ids':[';'.join(entrez_gene_ids)],
|
|
432
|
+
'chromosome_name':[chromosome_name],
|
|
433
|
+
'chromosome_position':[chromosome_position],
|
|
434
|
+
'chromosome_region':[chromosome_region]
|
|
435
|
+
})], axis=1)
|
|
436
|
+
df_gc = pd.concat([df_gc, df_gc_this])
|
|
437
|
+
|
|
438
|
+
n_gc+=1
|
|
439
|
+
df_this = pd.concat([df_snp, df_gc], axis=1)
|
|
440
|
+
if fout: df_this.to_csv(fout, sep="\t", index=False, header=(n_out==0), mode=('w' if n_out==0 else 'a'))
|
|
441
|
+
if fout is None: df = pd.concat([df, df_this], axis=0)
|
|
442
|
+
n_out+=df_this.shape[0]
|
|
376
443
|
|
|
377
|
-
if fout: df_this.to_csv(fout, sep="\t", index=False, header=(n_snp==0), mode=('w' if n_snp==0 else 'a'))
|
|
378
|
-
if fout is None: df = pd.concat([df, df_this], axis=0)
|
|
379
444
|
n_snp+=1
|
|
380
445
|
if n_snp==nmax:
|
|
381
446
|
logging.info(f"NMAX IDs reached: {nmax}")
|
|
382
447
|
break
|
|
383
448
|
if tq is not None: tq.close()
|
|
384
|
-
logging.info(f"SNPs: {n_snp}; mapped_genes: {n_gene}; locations: {n_loc}; genomic_contexts: {n_gc}")
|
|
449
|
+
logging.info(f"SNPs: {n_snp}; mapped_genes: {n_gene}; locations: {n_loc}; genomic_contexts: {n_gc}; n_out: {n_out}")
|
|
385
450
|
if fout is None: return(df)
|
|
386
451
|
|
|
387
452
|
##############################################################################
|
|
@@ -405,7 +470,7 @@ https://www.ebi.ac.uk/gwas/rest/api/v2/single-nucleotide-polymorphisms/rs7329174
|
|
|
405
470
|
return gcs
|
|
406
471
|
|
|
407
472
|
##############################################################################
|
|
408
|
-
def
|
|
473
|
+
def SearchStudiesV1(ids, searchtype, base_url=BASE_URL_V1, fout=None):
|
|
409
474
|
tags=[]; n_study=0; rval=None; df=None; tq=None;
|
|
410
475
|
url = base_url+'/studies/search'
|
|
411
476
|
if searchtype=='gcst':
|
|
@@ -42,9 +42,10 @@ UTS = UMLS Technology Services
|
|
|
42
42
|
GENE|Genes & Molecular Sequences|T086|Nucleotide Sequence
|
|
43
43
|
"""
|
|
44
44
|
###
|
|
45
|
-
import sys,os,argparse,re,
|
|
45
|
+
import sys,os,argparse,re,logging,time
|
|
46
46
|
#
|
|
47
47
|
from .. import umls
|
|
48
|
+
from ..util import yaml as util_yaml
|
|
48
49
|
#
|
|
49
50
|
#############################################################################
|
|
50
51
|
if __name__=='__main__':
|
|
@@ -55,7 +56,10 @@ Example CUIs: C34488, C0018787, C0016644
|
|
|
55
56
|
"""
|
|
56
57
|
parser = argparse.ArgumentParser(description='UMLS REST API client utility', epilog=EPILOG)
|
|
57
58
|
ops = ['getCodes', 'getAtoms', 'getRelations', 'listSources', 'xrefConcept', 'search', 'searchByTUI']
|
|
58
|
-
searchTypes = ['exact', 'words', 'leftTruncation', 'rightTruncation',
|
|
59
|
+
searchTypes = ['exact', 'words', 'leftTruncation', 'rightTruncation',
|
|
60
|
+
'normalizedString', 'normalizedWords',
|
|
61
|
+
#'approximate', # DISCONTINUED?
|
|
62
|
+
]
|
|
59
63
|
inputTypes = ['atom', 'code', 'sourceConcept', 'sourceDescriptor', 'sourceUi', 'tty']
|
|
60
64
|
returnIdTypes = ['aui', 'concept', 'code', 'sourceConcept', 'sourceDescriptor', 'sourceUi']
|
|
61
65
|
parser.add_argument("op", choices=ops, help='OPERATION (select one)')
|
|
@@ -63,7 +67,7 @@ Example CUIs: C34488, C0018787, C0016644
|
|
|
63
67
|
parser.add_argument("--idfile", help="input IDs")
|
|
64
68
|
parser.add_argument("--o", dest="ofile", help="output (TSV)")
|
|
65
69
|
parser.add_argument("--idsrc", default="CUI", help="query ID source (default: CUI)")
|
|
66
|
-
parser.add_argument("--searchType", choices=searchTypes, default='
|
|
70
|
+
parser.add_argument("--searchType", choices=searchTypes, default='normalizedWords', help=f"[normalizedWords]")
|
|
67
71
|
parser.add_argument("--inputType", choices=inputTypes, default='atom', help=f" [atom]")
|
|
68
72
|
parser.add_argument("--returnIdType", choices=returnIdTypes, default='concept', help=f" [concept]")
|
|
69
73
|
parser.add_argument("--srcs", default=SRCS_PREFERRED, help=f"sources to include in response [{SRCS_PREFERRED}]")
|
|
@@ -91,7 +95,7 @@ Example CUIs: C34488, C0018787, C0016644
|
|
|
91
95
|
|
|
92
96
|
fout = open(args.ofile, "w+") if args.ofile else sys.stdout
|
|
93
97
|
|
|
94
|
-
params =
|
|
98
|
+
params = util_yaml.ReadParamFile(args.param_file)
|
|
95
99
|
if args.api_key: params['API_KEY'] = args.api_key
|
|
96
100
|
if not params['API_KEY']:
|
|
97
101
|
parser.error('Please specify valid API_KEY via --api_key or --param_file')
|
|
@@ -22,15 +22,12 @@ https://utslogin.nlm.nih.gov
|
|
|
22
22
|
https://www.nlm.nih.gov/research/umls/knowledge_sources/metathesaurus/release/abbreviations.html
|
|
23
23
|
"""
|
|
24
24
|
###
|
|
25
|
-
import sys,os,re,
|
|
25
|
+
import sys,os,re,json,urllib.parse,logging,requests,time
|
|
26
26
|
import pandas as pd
|
|
27
27
|
from functools import total_ordering
|
|
28
28
|
#
|
|
29
|
-
from lxml import etree
|
|
30
29
|
from pyquery import PyQuery
|
|
31
30
|
#
|
|
32
|
-
from ..util import rest
|
|
33
|
-
#
|
|
34
31
|
###
|
|
35
32
|
API_HOST='uts-ws.nlm.nih.gov'
|
|
36
33
|
API_BASE_PATH="/rest"
|
|
@@ -70,22 +67,6 @@ class SourceList:
|
|
|
70
67
|
def __init__(self):
|
|
71
68
|
self.sources=[];
|
|
72
69
|
|
|
73
|
-
def initFromFile(self, sfile):
|
|
74
|
-
fin = open(sfile)
|
|
75
|
-
if not fin:
|
|
76
|
-
logging.error(f'Could not open {sfile}')
|
|
77
|
-
return
|
|
78
|
-
csvReader = csv.reader(fin, delimiter='\t', quotechar='"')
|
|
79
|
-
row = csvReader.next() #ignore header
|
|
80
|
-
while True:
|
|
81
|
-
try:
|
|
82
|
-
row = csvReader.next()
|
|
83
|
-
except:
|
|
84
|
-
break
|
|
85
|
-
self.sources.append(tuple(row))
|
|
86
|
-
self.sources.sort()
|
|
87
|
-
fin.close()
|
|
88
|
-
|
|
89
70
|
def initFromApi(self, base_url, ver, auth):
|
|
90
71
|
url = (f'{base_url}/metadata/{ver}/sources')
|
|
91
72
|
tgt = auth.gettgt()
|
|
@@ -102,6 +83,23 @@ class SourceList:
|
|
|
102
83
|
self.sources.append(tuple(row))
|
|
103
84
|
self.sources.sort()
|
|
104
85
|
|
|
86
|
+
def initFromFile(self, sfile):
|
|
87
|
+
import csv
|
|
88
|
+
fin = open(sfile)
|
|
89
|
+
if not fin:
|
|
90
|
+
logging.error(f'Could not open {sfile}')
|
|
91
|
+
return
|
|
92
|
+
csvReader = csv.reader(fin, delimiter='\t', quotechar='"')
|
|
93
|
+
row = csvReader.next() #ignore header
|
|
94
|
+
while True:
|
|
95
|
+
try:
|
|
96
|
+
row = csvReader.next()
|
|
97
|
+
except:
|
|
98
|
+
break
|
|
99
|
+
self.sources.append(tuple(row))
|
|
100
|
+
self.sources.sort()
|
|
101
|
+
fin.close()
|
|
102
|
+
|
|
105
103
|
def has_src(self,_src):
|
|
106
104
|
for abbr,name,ver in self.sources:
|
|
107
105
|
if _src == abbr:
|
|
@@ -165,15 +163,6 @@ def UmlsApiGet(url, auth, tgt, params={}, tries=10, sleep=1):
|
|
|
165
163
|
continue
|
|
166
164
|
return None
|
|
167
165
|
|
|
168
|
-
#############################################################################
|
|
169
|
-
def ReadParamFile(fparam):
|
|
170
|
-
params={};
|
|
171
|
-
with open(fparam, 'r') as fh:
|
|
172
|
-
for param in yaml.load_all(fh, Loader=yaml.BaseLoader):
|
|
173
|
-
for k,v in param.items():
|
|
174
|
-
params[k] = v
|
|
175
|
-
return params
|
|
176
|
-
|
|
177
166
|
#############################################################################
|
|
178
167
|
def XrefConcept(src, ids, skip, nmax, auth, ver=API_VERSION, base_url=API_BASE_URL, fout=None):
|
|
179
168
|
"""Find UMLS concept/CUI from external source cross-reference."""
|
|
@@ -422,23 +411,22 @@ See https://documentation.uts.nlm.nih.gov/rest/search/
|
|
|
422
411
|
response.encoding = 'utf-8'
|
|
423
412
|
items = json.loads(response.text)
|
|
424
413
|
#logging.debug(json.dumps(items, indent=4))
|
|
425
|
-
result = items['result']
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
pageNumber = items["pageNumber"]
|
|
414
|
+
result = items['result'] if 'result' in items else {}
|
|
415
|
+
pageSize = items['pageSize'] if 'pageSize' in items else None
|
|
416
|
+
pageNumber = items['pageNumber'] if 'pageNumber' in items else None
|
|
429
417
|
##No pageCount in search response.
|
|
430
|
-
|
|
431
|
-
if
|
|
418
|
+
classType = result['classType'] if 'classType' in result else None
|
|
419
|
+
results = result['results'] if 'results' in result else None
|
|
420
|
+
if not results:
|
|
432
421
|
break
|
|
433
|
-
elif len(
|
|
422
|
+
elif len(results)==1 and results[0]['name']=='NO RESULTS':
|
|
434
423
|
break
|
|
435
424
|
elif pageNumber!=pNum:
|
|
436
425
|
logging.debug(f'pageNumber!=pNum ({pageNumber}!={pNum})')
|
|
437
426
|
break
|
|
438
|
-
for item in
|
|
427
|
+
for item in results:
|
|
439
428
|
n_item+=1
|
|
440
429
|
if not tags: tags = list(item.keys())
|
|
441
|
-
vals = []
|
|
442
430
|
cui = item['ui'] if 'ui' in item else None
|
|
443
431
|
if 'rootSource' in item:
|
|
444
432
|
if not item['rootSource'] in src_counts:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bioclients
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.38
|
|
4
4
|
Summary: Clients and tools for online biomedical resources, usually via REST APIs.
|
|
5
5
|
Home-page: https://github.com/jeremyjyang/bioclients
|
|
6
6
|
Author: Jeremy Yang
|
|
@@ -22,6 +22,7 @@ Requires-Dist: numpy
|
|
|
22
22
|
Requires-Dist: pyquery
|
|
23
23
|
Requires-Dist: sqlalchemy
|
|
24
24
|
Requires-Dist: psycopg2-binary
|
|
25
|
+
Requires-Dist: pymysql
|
|
25
26
|
Dynamic: author
|
|
26
27
|
Dynamic: home-page
|
|
27
28
|
Dynamic: license-file
|
|
@@ -62,12 +63,17 @@ pip install bioclients
|
|
|
62
63
|
|
|
63
64
|
It may not be necessary or advantageous to configure an environment for all of `bioclients` functionality. Specific modules may be supported with `venv` environments with required dependencies. Module documentation should indicate needed package dependencies. The following steps should create an environment for much of the functionality of `bioclients`.
|
|
64
65
|
|
|
65
|
-
1. `mkdir venv`
|
|
66
|
-
1. `python3 -m venv venv`
|
|
67
|
-
1. `source venv/bin/activate`
|
|
68
|
-
1. `pip install
|
|
66
|
+
1. `mkdir -p $HOME/venv/bioclients`
|
|
67
|
+
1. `python3 -m venv $HOME/venv/bioclients`
|
|
68
|
+
1. `source $HOME/venv/bioclients/bin/activate`
|
|
69
|
+
1. `pip install --upgrade pip`
|
|
69
70
|
1. `pip install --upgrade bioclients`
|
|
70
71
|
|
|
72
|
+
For additional functionality, more packages can be installed by:
|
|
73
|
+
|
|
74
|
+
`pip install -r pip_requirements.txt`
|
|
75
|
+
|
|
76
|
+
|
|
71
77
|
### Installing from source
|
|
72
78
|
|
|
73
79
|
Source at <https://github.com/jeremyjyang/bioclients>
|
|
@@ -8,7 +8,7 @@ description = "Clients and tools for online biomedical resources, usually via RE
|
|
|
8
8
|
authors = [
|
|
9
9
|
{name = "Jeremy J Yang", email = "jeremyjyang@gmail.com"},
|
|
10
10
|
]
|
|
11
|
-
version = "0.2.
|
|
11
|
+
version = "0.2.38"
|
|
12
12
|
requires-python = ">= 3.10"
|
|
13
13
|
dependencies = [
|
|
14
14
|
"pandas",
|
|
@@ -20,6 +20,7 @@ dependencies = [
|
|
|
20
20
|
"pyquery",
|
|
21
21
|
"sqlalchemy",
|
|
22
22
|
"psycopg2-binary",
|
|
23
|
+
"pymysql",
|
|
23
24
|
]
|
|
24
25
|
readme = {file = "README.md", content-type = "text/markdown"}
|
|
25
26
|
license = "MIT AND (Apache-2.0 OR BSD-2-Clause)"
|
|
@@ -10,7 +10,7 @@ with open("README.md", "r") as fh:
|
|
|
10
10
|
|
|
11
11
|
setuptools.setup(
|
|
12
12
|
name="bioclients",
|
|
13
|
-
version="0.2.
|
|
13
|
+
version="0.2.34",
|
|
14
14
|
author="Jeremy Yang",
|
|
15
15
|
author_email="jeremyjyang@gmail.com",
|
|
16
16
|
description="Clients and tools for online biomedical resources, usually via REST APIs.",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|