BioClients 0.2.37__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.37 → bioclients-0.2.38}/PKG-INFO +1 -1
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/gwascatalog/Client.py +22 -18
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/gwascatalog/Utils.py +92 -27
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients.egg-info/PKG-INFO +1 -1
- {bioclients-0.2.37 → bioclients-0.2.38}/pyproject.toml +1 -1
- {bioclients-0.2.37 → bioclients-0.2.38}/setup.py +1 -1
- {bioclients-0.2.37 → bioclients-0.2.38}/LICENSE +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/README.md +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/allen/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/allen/brain/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/allen/brain/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/allen/brain/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/amp/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/amp/t2d/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/amp/t2d/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/amp/t2d/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/badapple/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/badapple/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/badapple/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/bindingdb/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/bindingdb/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/bindingdb/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/biogrid/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/biogrid/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/biogrid/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/biomarkerkb/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/biomarkerkb/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/biomarkerkb/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/bioregistry/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/bioregistry/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/bioregistry/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/brenda/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/brenda/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/brenda/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/cas/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/cas/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/cas/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/cdc/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/cdc/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/cdc/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/cfde/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/cfde/cfchemdb/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/cfde/cfchemdb/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/cfde/cfchemdb/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chebi/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chebi/Client_SOAP.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chebi/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chebi/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chem2bio2rdf/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chem2bio2rdf/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chem2bio2rdf/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chem2bio2rdf/slap/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chem2bio2rdf/slap/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chem2bio2rdf/slap/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chembl/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chembl/FetchByID.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chembl/UnichemClient.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chembl/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chembl/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chemidplus/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chemidplus/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/chemidplus/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/clinicaltrials/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/clinicaltrials/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/clinicaltrials/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/disgenet/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/disgenet/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/disgenet/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/dnorm/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/dnorm/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/drugcentral/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/drugcentral/Test.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/drugcentral/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/drugcentral/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/emblebi/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/emblebi/identifiers/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/emblebi/identifiers/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/emblebi/identifiers/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/emblebi/unichem/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/emblebi/unichem/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/emblebi/unichem/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ensembl/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ensembl/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ensembl/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ensembl/biomart/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ensembl/biomart/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ensembl/biomart/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/entrez/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/entrez/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/entrez/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/fda/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/fda/aer/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/fda/aer/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/fda/aer/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/geneontology/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/geneontology/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/geneontology/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/glygen/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/glygen/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/glygen/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/gtex/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/gtex/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/gtex/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/gwascatalog/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/hubmap/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/hubmap/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/hubmap/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/hugo/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/hugo/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/hugo/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/humanbase/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/humanbase/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/icite/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/icite/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/icite/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/pharos/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/pharos/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/pharos/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/rss/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/rss/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/rss/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/tcrd/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/tcrd/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/tcrd/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/tiga/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/tiga/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/tiga/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/tinx/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/tinx/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/idg/tinx/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/iuphar/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/iuphar/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/iuphar/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/jensenlab/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/jensenlab/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/jensenlab/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/lincs/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/lincs/Client_lincscloud.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/lincs/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/lincs/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/lincs/sigcom/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/lincs/sigcom/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/lincs/sigcom/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/maayanlab/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/maayanlab/archs4/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/maayanlab/archs4/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/maayanlab/archs4/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/maayanlab/harmonizome/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/maayanlab/harmonizome/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/maayanlab/harmonizome/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/medline/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/medline/connect/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/medline/connect/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/medline/connect/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/medline/genetics/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/medline/genetics/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/medline/genetics/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/mesh/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/mesh/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/mesh/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/monarch/Biolink.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/monarch/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/monarch/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/monarch/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/mygene/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/mygene/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/mygene/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ncats/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ncats/gsrs/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ncats/gsrs/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ncats/gsrs/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ncats/stitcher/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ncats/stitcher/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ncats/stitcher/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ncbo/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ncbo/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ncbo/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/omim/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/omim/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/oncotree/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/oncotree/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/oncotree/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/openphacts/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/openphacts/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/openphacts/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/opentargets/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/opentargets/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/opentargets/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/panther/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/panther/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pdb/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pdb/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pdb/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/ftp/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/ftp/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/ftp/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/ftp/pubchem_ftp_actives.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/ftp/pubchem_ftp_assay_fetch.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/ftp/pubchem_ftp_assay_results.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/ftp/pubchem_ftp_assay_search.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/ftp/pubchem_ftp_assaysim.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/ftp/pubchem_ftp_compound_assaystats.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/ftp/pubchem_ftp_gini_index.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/rdf/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/rdf/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/soap/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/soap/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/soap/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/soap/pug_aids2assays.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/soap/pug_ids2mols.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubchem/soap/pug_substance_search.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubmed/App_XML.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubmed/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubmed/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubmed/Utils_XML.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubmed/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubtator/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubtator/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/pubtator/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/reactome/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/reactome/SMBL_utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/reactome/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/reactome/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/rxnorm/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/rxnorm/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/rxnorm/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/stringdb/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/stringdb/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/stringdb/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/tcga/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/tcga/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/tcga/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/tinx/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/tinx/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/tinx/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ubkg/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ubkg/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/ubkg/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/umls/CPTClient.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/umls/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/umls/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/umls/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/uniprot/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/uniprot/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/uniprot/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/db/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/db/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/graphql/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/graphql/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/hdf/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/hdf/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/igraph/App.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/igraph/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/igraph/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/neo4j/App.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/neo4j/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/neo4j/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/obo/App.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/obo/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/obo/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/owl/App.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/owl/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/owl/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/pandas/App.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/pandas/Csv2Html.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/pandas/Csv2Markdown.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/pandas/Csv2Sql.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/pandas/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/pandas/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/rdf/App.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/rdf/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/rdf/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/rest/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/rest/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/sparql/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/sparql/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/sparql/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/xml/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/xml/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/yaml/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/util/yaml/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/who/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/who/atc/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/who/atc/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/who/atc/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/wikidata/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/wikidata/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/wikidata/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/wikipathways/Client.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/wikipathways/Utils.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients/wikipathways/__init__.py +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients.egg-info/SOURCES.txt +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients.egg-info/dependency_links.txt +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients.egg-info/requires.txt +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/bioclients.egg-info/top_level.txt +0 -0
- {bioclients-0.2.37 → bioclients-0.2.38}/setup.cfg +0 -0
|
@@ -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':
|
|
@@ -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",
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|