BioClients 0.2.19__tar.gz → 0.2.20__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.20/BioClients/badapple/Client.py +73 -0
- BioClients-0.2.20/BioClients/badapple/Utils.py +114 -0
- BioClients-0.2.20/BioClients/entrez/Client.py +54 -0
- BioClients-0.2.20/BioClients/entrez/Utils.py +25 -0
- BioClients-0.2.20/BioClients/entrez/__init__.py +3 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/umls/Utils.py +3 -3
- BioClients-0.2.20/BioClients/wikipathways/__init__.py +1 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients.egg-info/PKG-INFO +21 -4
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients.egg-info/SOURCES.txt +6 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/PKG-INFO +21 -4
- BioClients-0.2.20/README.md +87 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/setup.py +1 -1
- BioClients-0.2.19/README.md +0 -74
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/allen/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/allen/brain/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/allen/brain/Utils.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/allen/brain/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/amp/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/amp/t2d/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/amp/t2d/Utils.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/amp/t2d/__init__.py +0 -0
- {BioClients-0.2.19/BioClients/bindingdb → BioClients-0.2.20/BioClients/badapple}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/bindingdb/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/bindingdb/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/biogrid → BioClients-0.2.20/BioClients/bindingdb}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/biogrid/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/biogrid/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/biomarkerkb → BioClients-0.2.20/BioClients/biogrid}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/biomarkerkb/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/biomarkerkb/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/bioregistry → BioClients-0.2.20/BioClients/biomarkerkb}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/bioregistry/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/bioregistry/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/brenda → BioClients-0.2.20/BioClients/bioregistry}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/brenda/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/brenda/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/cdc → BioClients-0.2.20/BioClients/brenda}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/cas/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/cas/Utils.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/cas/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/cdc/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/cdc/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/cfde/cfchemdb → BioClients-0.2.20/BioClients/cdc}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/cfde/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/cfde/cfchemdb/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/cfde/cfchemdb/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/chebi → BioClients-0.2.20/BioClients/cfde/cfchemdb}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/chebi/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/chebi/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/chembl → BioClients-0.2.20/BioClients/chebi}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/chem2bio2rdf/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/chem2bio2rdf/Utils.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/chem2bio2rdf/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/chem2bio2rdf/slap/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/chem2bio2rdf/slap/Utils.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/chem2bio2rdf/slap/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/chembl/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/chembl/FetchByID.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/chembl/UnichemClient.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/chembl/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/clinicaltrials → BioClients-0.2.20/BioClients/chembl}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/chemidplus/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/chemidplus/Utils.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/chemidplus/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/clinicaltrials/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/clinicaltrials/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/disgenet → BioClients-0.2.20/BioClients/clinicaltrials}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/disgenet/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/disgenet/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/drugcentral → BioClients-0.2.20/BioClients/disgenet}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/dnorm/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/dnorm/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/drugcentral/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/drugcentral/Test.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/drugcentral/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/emblebi/identifiers → BioClients-0.2.20/BioClients/drugcentral}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/emblebi/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/emblebi/identifiers/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/emblebi/identifiers/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/emblebi/unichem → BioClients-0.2.20/BioClients/emblebi/identifiers}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/emblebi/unichem/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/emblebi/unichem/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/ensembl/biomart → BioClients-0.2.20/BioClients/emblebi/unichem}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/ensembl/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/ensembl/Utils.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/ensembl/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/ensembl/biomart/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/ensembl/biomart/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/fda/aer → BioClients-0.2.20/BioClients/ensembl/biomart}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/fda/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/fda/aer/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/fda/aer/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/geneontology → BioClients-0.2.20/BioClients/fda/aer}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/geneontology/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/geneontology/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/glygen → BioClients-0.2.20/BioClients/geneontology}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/glygen/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/glygen/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/gtex → BioClients-0.2.20/BioClients/glygen}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/gtex/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/gtex/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/gwascatalog → BioClients-0.2.20/BioClients/gtex}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/gwascatalog/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/gwascatalog/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/hubmap → BioClients-0.2.20/BioClients/gwascatalog}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/hubmap/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/hubmap/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/hugo → BioClients-0.2.20/BioClients/hubmap}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/hugo/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/hugo/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/icite → BioClients-0.2.20/BioClients/hugo}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/humanbase/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/humanbase/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/icite/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/icite/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/idg/pharos → BioClients-0.2.20/BioClients/icite}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/idg/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/idg/Utils.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/idg/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/idg/pharos/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/idg/pharos/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/idg/rss → BioClients-0.2.20/BioClients/idg/pharos}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/idg/rss/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/idg/rss/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/idg/tcrd → BioClients-0.2.20/BioClients/idg/rss}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/idg/tcrd/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/idg/tcrd/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/idg/tiga → BioClients-0.2.20/BioClients/idg/tcrd}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/idg/tiga/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/idg/tiga/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/idg/tinx → BioClients-0.2.20/BioClients/idg/tiga}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/idg/tinx/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/idg/tinx/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/iuphar → BioClients-0.2.20/BioClients/idg/tinx}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/iuphar/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/iuphar/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/jensenlab → BioClients-0.2.20/BioClients/iuphar}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/jensenlab/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/jensenlab/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/lincs → BioClients-0.2.20/BioClients/jensenlab}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/lincs/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/lincs/Client_lincscloud.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/lincs/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/lincs/sigcom → BioClients-0.2.20/BioClients/lincs}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/lincs/sigcom/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/lincs/sigcom/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/maayanlab/archs4 → BioClients-0.2.20/BioClients/lincs/sigcom}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/maayanlab/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/maayanlab/archs4/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/maayanlab/archs4/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/maayanlab/harmonizome → BioClients-0.2.20/BioClients/maayanlab/archs4}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/maayanlab/harmonizome/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/maayanlab/harmonizome/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/medline/connect → BioClients-0.2.20/BioClients/maayanlab/harmonizome}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/medline/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/medline/connect/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/medline/connect/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/medline/genetics → BioClients-0.2.20/BioClients/medline/connect}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/medline/genetics/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/medline/genetics/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/mesh → BioClients-0.2.20/BioClients/medline/genetics}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/mesh/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/mesh/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/monarch → BioClients-0.2.20/BioClients/mesh}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/monarch/Biolink.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/monarch/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/monarch/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/mygene → BioClients-0.2.20/BioClients/monarch}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/mygene/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/mygene/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/ncats/gsrs → BioClients-0.2.20/BioClients/mygene}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/ncats/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/ncats/gsrs/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/ncats/gsrs/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/ncbo → BioClients-0.2.20/BioClients/ncats/gsrs}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/ncbo/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/ncbo/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/oncotree → BioClients-0.2.20/BioClients/ncbo}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/omim/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/omim/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/oncotree/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/oncotree/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/openphacts → BioClients-0.2.20/BioClients/oncotree}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/openphacts/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/openphacts/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/opentargets → BioClients-0.2.20/BioClients/openphacts}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/opentargets/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/opentargets/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/pdb → BioClients-0.2.20/BioClients/opentargets}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/panther/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/panther/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pdb/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pdb/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/pubchem/ftp → BioClients-0.2.20/BioClients/pdb}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/Utils.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/ftp/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/ftp/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/pubchem/soap → BioClients-0.2.20/BioClients/pubchem/ftp}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/ftp/pubchem_ftp_actives.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/ftp/pubchem_ftp_assay_fetch.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/ftp/pubchem_ftp_assay_results.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/ftp/pubchem_ftp_assay_search.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/ftp/pubchem_ftp_assaysim.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/ftp/pubchem_ftp_compound_assaystats.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/ftp/pubchem_ftp_gini_index.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/rdf/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/rdf/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/soap/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/soap/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/pubtator → BioClients-0.2.20/BioClients/pubchem/soap}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/soap/pug_aids2assays.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/soap/pug_ids2mols.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubchem/soap/pug_substance_search.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubmed/App_XML.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubmed/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubmed/Utils.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubmed/Utils_XML.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubmed/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubtator/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/pubtator/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/rxnorm → BioClients-0.2.20/BioClients/pubtator}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/reactome/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/reactome/SMBL_utils.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/reactome/Utils.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/reactome/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/rxnorm/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/rxnorm/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/stringdb → BioClients-0.2.20/BioClients/rxnorm}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/stringdb/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/stringdb/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/tcga → BioClients-0.2.20/BioClients/stringdb}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/tcga/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/tcga/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/ubkg → BioClients-0.2.20/BioClients/tcga}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/ubkg/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/ubkg/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/umls → BioClients-0.2.20/BioClients/ubkg}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/umls/Client.py +0 -0
- {BioClients-0.2.19/BioClients/uniprot → BioClients-0.2.20/BioClients/umls}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/uniprot/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/uniprot/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/util/db → BioClients-0.2.20/BioClients/uniprot}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/db/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/util/graphql → BioClients-0.2.20/BioClients/util/db}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/graphql/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/util/hdf → BioClients-0.2.20/BioClients/util/graphql}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/hdf/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/util/igraph → BioClients-0.2.20/BioClients/util/hdf}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/igraph/App.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/igraph/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/util/neo4j → BioClients-0.2.20/BioClients/util/igraph}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/neo4j/App.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/neo4j/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/util/obo → BioClients-0.2.20/BioClients/util/neo4j}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/obo/App.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/obo/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/util/owl → BioClients-0.2.20/BioClients/util/obo}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/owl/App.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/owl/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/util/pandas → BioClients-0.2.20/BioClients/util/owl}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/pandas/App.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/pandas/Csv2Html.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/pandas/Csv2Markdown.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/pandas/Csv2Sql.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/pandas/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/util/rdf → BioClients-0.2.20/BioClients/util/pandas}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/rdf/App.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/rdf/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/util/rest → BioClients-0.2.20/BioClients/util/rdf}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/rest/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/util/sparql → BioClients-0.2.20/BioClients/util/rest}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/sparql/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/sparql/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/util/xml → BioClients-0.2.20/BioClients/util/sparql}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/xml/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/util/yaml → BioClients-0.2.20/BioClients/util/xml}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/util/yaml/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/wikidata → BioClients-0.2.20/BioClients/util/yaml}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/wikidata/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/wikidata/Utils.py +0 -0
- {BioClients-0.2.19/BioClients/wikipathways → BioClients-0.2.20/BioClients/wikidata}/__init__.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/wikipathways/Client.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients/wikipathways/Utils.py +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients.egg-info/dependency_links.txt +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/BioClients.egg-info/top_level.txt +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/LICENSE +0 -0
- {BioClients-0.2.19 → BioClients-0.2.20}/setup.cfg +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
https://chiltepin.health.unm.edu/badapple2/apidocs/
|
|
4
|
+
"""
|
|
5
|
+
###
|
|
6
|
+
import sys,os,re,argparse,time,logging
|
|
7
|
+
#
|
|
8
|
+
from .. import badapple
|
|
9
|
+
#
|
|
10
|
+
##############################################################################
|
|
11
|
+
if __name__=='__main__':
|
|
12
|
+
parser = argparse.ArgumentParser(
|
|
13
|
+
description='Badapple REST API client utility',
|
|
14
|
+
epilog="""\
|
|
15
|
+
Example SMILES: OC(=O)C1=C2CCCC(C=C3C=CC(=O)C=C3)=C2NC2=CC=CC=C12
|
|
16
|
+
Example scaffold IDs: 46,50
|
|
17
|
+
""")
|
|
18
|
+
ops = ['get_compound2scaffolds', 'get_scaffold_info', 'get_scaffold2compounds', 'get_scaffold2drugs', ]
|
|
19
|
+
parser.add_argument("op",choices=ops,help='OPERATION')
|
|
20
|
+
parser.add_argument("--smi", dest="smi", help="input SMILES")
|
|
21
|
+
parser.add_argument("--ids", dest="ids", help="input IDs, comma-separated")
|
|
22
|
+
parser.add_argument("--i", dest="ifile", help="input SMILES file (with optional appended <space>NAME), or input IDs file")
|
|
23
|
+
parser.add_argument("--db", choices=badapple.DATABASES, default="badapple2", help="default=badapple2")
|
|
24
|
+
parser.add_argument("--o", dest="ofile", help="output file (TSV)")
|
|
25
|
+
parser.add_argument("--max_rings", type=int, default=10, help="max rings")
|
|
26
|
+
parser.add_argument("--api_host", default=badapple.API_HOST)
|
|
27
|
+
parser.add_argument("--api_base_path", default=badapple.API_BASE_PATH)
|
|
28
|
+
parser.add_argument("-v", "--verbose", action="count", default=0)
|
|
29
|
+
|
|
30
|
+
args = parser.parse_args()
|
|
31
|
+
|
|
32
|
+
logging.basicConfig(format='%(levelname)s:%(message)s', level=(logging.DEBUG if args.verbose>1 else logging.INFO))
|
|
33
|
+
|
|
34
|
+
base_url='https://'+args.api_host+args.api_base_path
|
|
35
|
+
|
|
36
|
+
fout = open(args.ofile,"w") if args.ofile else sys.stdout
|
|
37
|
+
|
|
38
|
+
t0=time.time()
|
|
39
|
+
|
|
40
|
+
if args.ifile:
|
|
41
|
+
fin = open(args.ifile)
|
|
42
|
+
ids = [];
|
|
43
|
+
while True:
|
|
44
|
+
line = fin.readline()
|
|
45
|
+
if not line: break
|
|
46
|
+
if line.rstrip(): ids.append(line.rstrip())
|
|
47
|
+
logging.info(f"Input SMILES: {len(ids)}")
|
|
48
|
+
fin.close()
|
|
49
|
+
elif args.ids:
|
|
50
|
+
ids = re.split(r'[, ]+', args.ids.strip())
|
|
51
|
+
elif args.smi:
|
|
52
|
+
ids = [args.smi.strip()]
|
|
53
|
+
|
|
54
|
+
if args.op == "get_compound2scaffolds":
|
|
55
|
+
badapple.GetCompound2Scaffolds(ids, args.db, args.max_rings, base_url, fout)
|
|
56
|
+
|
|
57
|
+
elif args.op == "get_scaffold_info":
|
|
58
|
+
badapple.GetScaffoldInfo(ids, args.db, base_url, fout)
|
|
59
|
+
|
|
60
|
+
elif args.op == "get_scaffold2compounds":
|
|
61
|
+
badapple.GetScaffold2Compounds(ids, args.db, base_url, fout)
|
|
62
|
+
|
|
63
|
+
elif args.op == "get_scaffold2drugs":
|
|
64
|
+
badapple.GetScaffold2Drugs(ids, args.db, base_url, fout)
|
|
65
|
+
|
|
66
|
+
elif args.op == "get_version":
|
|
67
|
+
#badapple.GetVersion(args.db, base_url, fout)
|
|
68
|
+
parser.error("Not implemented.")
|
|
69
|
+
|
|
70
|
+
else:
|
|
71
|
+
parser.error("No operation specified.")
|
|
72
|
+
|
|
73
|
+
logging.info(f"elapsed time: {time.strftime('%Hh:%Mm:%Ss',time.gmtime(time.time()-t0))}")
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
"""
|
|
4
|
+
###
|
|
5
|
+
import sys,os,io,re,time,requests,urllib,json,logging
|
|
6
|
+
import pandas as pd
|
|
7
|
+
#
|
|
8
|
+
API_HOST='chiltepin.health.unm.edu'
|
|
9
|
+
API_BASE_PATH='/badapple2/api/v1'
|
|
10
|
+
BASE_URL='https://'+API_HOST+API_BASE_PATH
|
|
11
|
+
#
|
|
12
|
+
DATABASES = ["badapple2", "badapple_classic"]
|
|
13
|
+
#
|
|
14
|
+
##############################################################################
|
|
15
|
+
def GetCompound2Scaffolds(smis, database, max_rings, base_url=BASE_URL, fout=None):
|
|
16
|
+
params = {}; n_out=0; df=None;
|
|
17
|
+
tags = ["id", "in_db", "prank", "pscore", "in_drug", "nass_active", "nass_tested", "ncpd_active", "ncpd_tested", "ncpd_total", "nsam_active", "nsam_tested", "nsub_active", "nsub_tested", "nsub_total", "scafsmi", "kekule_scafsmi", "scaftree" ]
|
|
18
|
+
headers = {'Accept': 'application/json'}
|
|
19
|
+
url = f"{base_url}/compound_search/get_associated_scaffolds_ordered"
|
|
20
|
+
params['database'] = database
|
|
21
|
+
params['max_rings'] = max_rings
|
|
22
|
+
for smi_this in smis:
|
|
23
|
+
vals = re.split(r'\s+', smi_this, 1)
|
|
24
|
+
if len(vals)>1:
|
|
25
|
+
params['SMILES'],params['Names'] = vals
|
|
26
|
+
else:
|
|
27
|
+
params['SMILES'],params['Names'] = smi_this, "Unspecified"
|
|
28
|
+
response = requests.get(url, params=params, headers=headers)
|
|
29
|
+
results = response.json()
|
|
30
|
+
logging.debug(json.dumps(results, indent=2))
|
|
31
|
+
scafs = results[0]["scaffolds"]
|
|
32
|
+
for scaf in scafs:
|
|
33
|
+
scaf_this = {"molecule_SMILES": params['SMILES'], "molecule_Name": params['Names'], "db": database}
|
|
34
|
+
for tag in tags:
|
|
35
|
+
scaf_this[tag] = scaf[tag] if tag in scaf else ""
|
|
36
|
+
df_this = pd.DataFrame([scaf_this])
|
|
37
|
+
if fout is not None: df_this.to_csv(fout, sep='\t', index=False, header=bool(n_out==0))
|
|
38
|
+
else: df = pd.concat([df, df_this])
|
|
39
|
+
n_out+=1
|
|
40
|
+
logging.info(f"Compounds: {len(smis)}; Scaffolds: {n_out}")
|
|
41
|
+
return df
|
|
42
|
+
|
|
43
|
+
##############################################################################
|
|
44
|
+
def GetScaffoldInfo(ids, database, base_url=BASE_URL, fout=None):
|
|
45
|
+
params = {}; n_out=0; df=None;
|
|
46
|
+
tags = ["id", "scafsmi", "kekule_scafsmi", "pscore", "prank", "in_drug", "nass_active", "nass_tested", "ncpd_active", "ncpd_tested", "ncpd_total", "nsam_active", "nsam_tested", "nsub_active", "nsub_tested", "nsub_total", "scaftree"]
|
|
47
|
+
headers = {'Accept': 'application/json'}
|
|
48
|
+
url = f"{base_url}/scaffold_search/get_scaffold_info"
|
|
49
|
+
params['database'] = database
|
|
50
|
+
for id_this in ids:
|
|
51
|
+
params['scafid'] = id_this
|
|
52
|
+
response = requests.get(url, params=params, headers=headers)
|
|
53
|
+
results = response.json()
|
|
54
|
+
logging.debug(json.dumps(results, indent=2))
|
|
55
|
+
scaf = results
|
|
56
|
+
scaf_this = {"db": database}
|
|
57
|
+
for tag in tags:
|
|
58
|
+
scaf_this[tag] = scaf[tag] if tag in scaf else ""
|
|
59
|
+
df_this = pd.DataFrame([scaf_this])
|
|
60
|
+
if fout is not None: df_this.to_csv(fout, sep='\t', index=False, header=bool(n_out==0))
|
|
61
|
+
else: df = pd.concat([df, df_this])
|
|
62
|
+
n_out+=1
|
|
63
|
+
logging.info(f"Scaffolds: {n_out}")
|
|
64
|
+
return df
|
|
65
|
+
|
|
66
|
+
##############################################################################
|
|
67
|
+
def GetScaffold2Compounds(ids, database, base_url=BASE_URL, fout=None):
|
|
68
|
+
params = {}; n_out=0; df=None;
|
|
69
|
+
tags = ["cansmi", "cid", "isosmi", "nass_active", "nass_tested", "nsam_active", "nsam_tested", "nsub_active", "nsub_tested", "nsub_total"]
|
|
70
|
+
headers = {'Accept': 'application/json'}
|
|
71
|
+
url = f"{base_url}/scaffold_search/get_associated_compounds"
|
|
72
|
+
params['database'] = database
|
|
73
|
+
for id_this in ids:
|
|
74
|
+
params['scafid'] = id_this
|
|
75
|
+
response = requests.get(url, params=params, headers=headers)
|
|
76
|
+
results = response.json()
|
|
77
|
+
logging.debug(json.dumps(results, indent=2))
|
|
78
|
+
cpds = results
|
|
79
|
+
for cpd in cpds:
|
|
80
|
+
cpd_this = {"scafid": id_this, "db": database}
|
|
81
|
+
for tag in tags:
|
|
82
|
+
cpd_this[tag] = cpd[tag] if tag in cpd else ""
|
|
83
|
+
df_this = pd.DataFrame([cpd_this])
|
|
84
|
+
if fout is not None: df_this.to_csv(fout, sep='\t', index=False, header=bool(n_out==0))
|
|
85
|
+
else: df = pd.concat([df, df_this])
|
|
86
|
+
n_out+=1
|
|
87
|
+
logging.info(f"Scaffolds: {len(ids)}; Compounds: {n_out}")
|
|
88
|
+
return df
|
|
89
|
+
|
|
90
|
+
##############################################################################
|
|
91
|
+
def GetScaffold2Drugs(ids, database, base_url=BASE_URL, fout=None):
|
|
92
|
+
params = {}; n_out=0; df=None;
|
|
93
|
+
tags = ["cansmi", "cid", "isosmi", "nass_active", "nass_tested", "nsam_active", "nsam_tested", "nsub_active", "nsub_tested", "nsub_total"]
|
|
94
|
+
headers = {'Accept': 'application/json'}
|
|
95
|
+
url = f"{base_url}/scaffold_search/get_associated_drugs"
|
|
96
|
+
params['database'] = database
|
|
97
|
+
for id_this in ids:
|
|
98
|
+
params['scafid'] = id_this
|
|
99
|
+
response = requests.get(url, params=params, headers=headers)
|
|
100
|
+
results = response.json()
|
|
101
|
+
logging.debug(json.dumps(results, indent=2))
|
|
102
|
+
cpds = results
|
|
103
|
+
for cpd in cpds:
|
|
104
|
+
cpd_this = {"scafid": id_this, "db": database}
|
|
105
|
+
for tag in tags:
|
|
106
|
+
cpd_this[tag] = cpd[tag] if tag in cpd else ""
|
|
107
|
+
df_this = pd.DataFrame([cpd_this])
|
|
108
|
+
if fout is not None: df_this.to_csv(fout, sep='\t', index=False, header=bool(n_out==0))
|
|
109
|
+
else: df = pd.concat([df, df_this])
|
|
110
|
+
n_out+=1
|
|
111
|
+
logging.info(f"Scaffolds: {len(ids)}; Drugs: {n_out}")
|
|
112
|
+
return df
|
|
113
|
+
|
|
114
|
+
##############################################################################
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Utility app for the NIH NCBI Entrez E-Utils via Entrezpy.
|
|
4
|
+
"""
|
|
5
|
+
###
|
|
6
|
+
import sys,os,re,argparse,time,logging
|
|
7
|
+
#
|
|
8
|
+
from .. import entrez
|
|
9
|
+
#
|
|
10
|
+
##############################################################################
|
|
11
|
+
if __name__=='__main__':
|
|
12
|
+
OPS = [ "test", "get_esummary", "get_record", ]
|
|
13
|
+
parser = argparse.ArgumentParser(description="NIH NCBI Entrez client")
|
|
14
|
+
parser.add_argument("op", choices=OPS, help="OPERATION")
|
|
15
|
+
parser.add_argument("--i", dest="ifile", help="input IDs file (PMIDs)")
|
|
16
|
+
parser.add_argument("--ids", help="input IDs (comma-separated)")
|
|
17
|
+
parser.add_argument("--o", dest="ofile", help="output (usually TSV)")
|
|
18
|
+
parser.add_argument("--email", dest="email", help="user email address")
|
|
19
|
+
#parser.add_argument("--api_host", default=entrez.API_HOST)
|
|
20
|
+
#parser.add_argument("--api_base_path", default=entrez.API_BASE_PATH)
|
|
21
|
+
parser.add_argument("--skip", type=int, default=0)
|
|
22
|
+
parser.add_argument("--nmax", type=int, default=None)
|
|
23
|
+
parser.add_argument("-q", "--quiet", action="store_true", help="Suppress progress notification.")
|
|
24
|
+
parser.add_argument("-v", "--verbose", default=0, action="count")
|
|
25
|
+
args = parser.parse_args()
|
|
26
|
+
|
|
27
|
+
logging.basicConfig(format='%(levelname)s:%(message)s', level=(logging.DEBUG if args.verbose>0 else logging.ERROR if args.quiet else 15))
|
|
28
|
+
|
|
29
|
+
#base_url = f"https://{args.api_host}{args.api_base_path}"
|
|
30
|
+
|
|
31
|
+
fout = open(args.ofile, "w") if args.ofile else sys.stdout
|
|
32
|
+
|
|
33
|
+
ids=[]
|
|
34
|
+
if args.ifile:
|
|
35
|
+
fin = open(args.ifile)
|
|
36
|
+
while True:
|
|
37
|
+
line = fin.readline()
|
|
38
|
+
if not line: break
|
|
39
|
+
ids.append(line.rstrip())
|
|
40
|
+
fin.close()
|
|
41
|
+
elif args.ids:
|
|
42
|
+
ids = re.split(r'[,\s]+', args.ids)
|
|
43
|
+
logging.info(f"Input IDs: {len(ids)}")
|
|
44
|
+
|
|
45
|
+
t0=time.time()
|
|
46
|
+
|
|
47
|
+
if args.op == 'test':
|
|
48
|
+
entrez.Test(args.email)
|
|
49
|
+
|
|
50
|
+
else:
|
|
51
|
+
parser.error(f"Invalid operation: {args.op}")
|
|
52
|
+
|
|
53
|
+
logging.info(('elapsed time: %s'%(time.strftime('%Hh:%Mm:%Ss',time.gmtime(time.time()-t0)))))
|
|
54
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
'''
|
|
3
|
+
https://pypi.org/project/entrezpy/
|
|
4
|
+
https://entrezpy.readthedocs.io/en/master/
|
|
5
|
+
https://academic.oup.com/bioinformatics/article/35/21/4511/5488119
|
|
6
|
+
https://dataguide.nlm.nih.gov/eutilities/utilities.html
|
|
7
|
+
'''
|
|
8
|
+
import os,sys,io,re,json,time,requests,urllib.parse,logging,tqdm
|
|
9
|
+
import pandas as pd
|
|
10
|
+
|
|
11
|
+
import entrezpy.conduit
|
|
12
|
+
|
|
13
|
+
from .. import util
|
|
14
|
+
|
|
15
|
+
#############################################################################
|
|
16
|
+
def Test(email):
|
|
17
|
+
c = entrezpy.conduit.Conduit(email)
|
|
18
|
+
fetch_influenza = c.new_pipeline()
|
|
19
|
+
sid = fetch_influenza.add_search({'db' : 'nucleotide', 'term' : 'H3N2 [organism] AND HA', 'rettype':'count', 'sort' : 'Date Released', 'mindate': 2000, 'maxdate':2019, 'datetype' : 'pdat'})
|
|
20
|
+
fid = fetch_influenza.add_fetch({'retmax' : 10, 'retmode' : 'text', 'rettype': 'fasta'}, dependency=sid)
|
|
21
|
+
c.run(fetch_influenza)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
#############################################################################
|
|
25
|
+
#############################################################################
|
|
@@ -271,7 +271,7 @@ def XrefConcept(src, ids, skip, nmax, auth, ver=API_VERSION, base_url=API_BASE_U
|
|
|
271
271
|
logging.debug(f'response.text="{response.text}"')
|
|
272
272
|
continue
|
|
273
273
|
logging.debug(json.dumps(items, indent=4))
|
|
274
|
-
result = items["result"]
|
|
274
|
+
result = items["result"] if "result" in items else {}
|
|
275
275
|
for key in UMLS_COMMON_FIELDS+UMLS_OPTIONAL_FIELDS:
|
|
276
276
|
logging.info(f"""{key:14s}: {(result[key] if key in result else '')}""")
|
|
277
277
|
if 'semanticTypes' in result:
|
|
@@ -279,13 +279,13 @@ def XrefConcept(src, ids, skip, nmax, auth, ver=API_VERSION, base_url=API_BASE_U
|
|
|
279
279
|
for key in styp.keys():
|
|
280
280
|
logging.info(f'Semantic type {i+1}. {key}: {styp[key]}')
|
|
281
281
|
if n_out==0 or not result_tags:
|
|
282
|
-
result_tags = result.keys()
|
|
282
|
+
result_tags = list(result.keys())
|
|
283
283
|
id_tag = (f'{src}_id' if src else 'CUI')
|
|
284
284
|
fout.write('\t'.join([id_tag]+result_tags)+'\n')
|
|
285
285
|
vals = [id_query]
|
|
286
286
|
for tag in result_tags:
|
|
287
287
|
val = (result[tag] if tag in result else '')
|
|
288
|
-
if tag == 'concepts':
|
|
288
|
+
if tag == 'concepts' and "concepts" in result:
|
|
289
289
|
url2 = result['concepts']
|
|
290
290
|
response2 = UmlsApiGet(url2, auth, tgt)
|
|
291
291
|
response2.encoding = 'utf-8'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .Utils import *
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: BioClients
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.20
|
|
4
4
|
Summary: Clients for online biomedical resources, usually via REST APIs.
|
|
5
5
|
Home-page: https://github.com/jeremyjyang/BioClients
|
|
6
6
|
Author: Jeremy Yang
|
|
7
7
|
Author-email: jeremyjyang@gmail.com
|
|
8
|
+
License: UNKNOWN
|
|
9
|
+
Platform: UNKNOWN
|
|
8
10
|
Classifier: Programming Language :: Python :: 3
|
|
9
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
10
12
|
Classifier: Operating System :: OS Independent
|
|
@@ -45,7 +47,7 @@ python3 setup.py install
|
|
|
45
47
|
|
|
46
48
|
## Modules
|
|
47
49
|
|
|
48
|
-
[__Allen__](doc/allen.md) • [__AMP-T2D__](doc/amp__t2d.md) • [__BindingDb__](doc/bindingdb.md) • [__BioGrid__](doc/biogrid.md) • [__BiomarkerKB__](doc/biomarkerkb.md) • [__Bioregistry__](doc/bioregistry.md) • [__BRENDA__](doc/brenda.md) • [__CAS__](doc/cas.md) • [__CDC__](doc/cdc.md) • [__CFDE__](doc/cfde.md) • [__Chem2Bio2RDF__](doc/chem2bio2rdf.md) • [__ChEBI__](doc/chebi.md) • [__ChEMBL__](doc/chembl.md) • [__ChemIdPlus__](doc/chemidplus.md) • [__ClinicalTrials.gov__](doc/clinicaltrials.md) • [__Disease Ontology__](doc/diseaseontology.md) • [__DisGeNet__](doc/disgenet.md) • [__DNorm__](doc/dnorm.md) • [__DrugCentral__](doc/drugcentral.md) • [__EMBL-EBI__](doc/emblebi.md) • [__EnsEMBL__](doc/ensembl.md) • [__FDA__](doc/fda.md) • [__Gene Ontology__](doc/geneontology.md) • [__GTEx__](doc/gtex.md) • [__GWAS Catalog__](doc/gwascatalog.md) • [__HUGO__](doc/hugo.md) • [__HumanBase__](doc/humanbase.md) • [__iCite__](doc/icite.md) • [__IDG__](doc/idg.md) • [__JensenLab__](doc/jensenlab.md) • [__LINCS__](doc/lincs.md) • [__MaayanLab__](doc/maayanlab.md) • [__Medline__](doc/medline.md) • [__MeSH__](doc/mesh.md) • [__MONARCH__](doc/monarch.md) • [__MyGene__](doc/mygene.md) • [__NCBO__](doc/ncbo.md) • [__NCATS__](doc/ncats.md) • [__OMIM__](doc/omim.md) • [__OncoTree__](doc/oncotree.md) • [__Open Targets__](doc/opentargets.md) • [__Panther__](doc/panther.md) • [__PDB__](doc/pdb.md) • [__PubChem__](doc/pubchem.md) • [__PubMed__](doc/pubmed.md) • [__PubTator__](doc/pubtator.md) • [__Reactome__](doc/reactome.md) • [__RXNorm__](doc/rxnorm.md) • [__STRINGDB__](doc/stringdb.md) • [__TCGA__](doc/tcga.md) • [__UBKG__](doc/ubkg.md) • [__UMLS__](doc/umls.md) • [__UniProt__](doc/uniprot.md) • [__Wikidata__](doc/wikidata.md) • [__WikiPathways__](doc/wikipathways.md)
|
|
50
|
+
[__Allen__](doc/allen.md) • [__AMP-T2D__](doc/amp__t2d.md) • [__Badapple__](doc/badapple.md) • [__BindingDb__](doc/bindingdb.md) • [__BioGrid__](doc/biogrid.md) • [__BiomarkerKB__](doc/biomarkerkb.md) • [__Bioregistry__](doc/bioregistry.md) • [__BRENDA__](doc/brenda.md) • [__CAS__](doc/cas.md) • [__CDC__](doc/cdc.md) • [__CFDE__](doc/cfde.md) • [__Chem2Bio2RDF__](doc/chem2bio2rdf.md) • [__ChEBI__](doc/chebi.md) • [__ChEMBL__](doc/chembl.md) • [__ChemIdPlus__](doc/chemidplus.md) • [__ClinicalTrials.gov__](doc/clinicaltrials.md) • [__Disease Ontology__](doc/diseaseontology.md) • [__DisGeNet__](doc/disgenet.md) • [__DNorm__](doc/dnorm.md) • [__DrugCentral__](doc/drugcentral.md) • [__EMBL-EBI__](doc/emblebi.md) • [__EnsEMBL__](doc/ensembl.md) • [__Entrez__](doc/entrez.md) • [__FDA__](doc/fda.md) • [__Gene Ontology__](doc/geneontology.md) • [__GTEx__](doc/gtex.md) • [__GWAS Catalog__](doc/gwascatalog.md) • [__HUGO__](doc/hugo.md) • [__HumanBase__](doc/humanbase.md) • [__iCite__](doc/icite.md) • [__IDG__](doc/idg.md) • [__JensenLab__](doc/jensenlab.md) • [__LINCS__](doc/lincs.md) • [__MaayanLab__](doc/maayanlab.md) • [__Medline__](doc/medline.md) • [__MeSH__](doc/mesh.md) • [__MONARCH__](doc/monarch.md) • [__MyGene__](doc/mygene.md) • [__NCBO__](doc/ncbo.md) • [__NCATS__](doc/ncats.md) • [__OMIM__](doc/omim.md) • [__OncoTree__](doc/oncotree.md) • [__Open Targets__](doc/opentargets.md) • [__Panther__](doc/panther.md) • [__PDB__](doc/pdb.md) • [__PubChem__](doc/pubchem.md) • [__PubMed__](doc/pubmed.md) • [__PubTator__](doc/pubtator.md) • [__Reactome__](doc/reactome.md) • [__RXNorm__](doc/rxnorm.md) • [__STRINGDB__](doc/stringdb.md) • [__TCGA__](doc/tcga.md) • [__UBKG__](doc/ubkg.md) • [__UMLS__](doc/umls.md) • [__UniProt__](doc/uniprot.md) • [__Wikidata__](doc/wikidata.md) • [__WikiPathways__](doc/wikipathways.md)
|
|
49
51
|
|
|
50
52
|
Miscellaneous utilities: [__UTIL__](doc/util.md)
|
|
51
53
|
|
|
@@ -81,8 +83,23 @@ BioClients depends on numerous Python packages. (See [conda/environment.yml](co
|
|
|
81
83
|
The following commands create and activate a Conda environment `bioclients`:
|
|
82
84
|
|
|
83
85
|
```
|
|
84
|
-
conda env create -f conda/environment.yml
|
|
85
|
-
conda activate bioclients
|
|
86
|
+
$ conda env create -f conda/environment.yml
|
|
86
87
|
```
|
|
88
|
+
If that fails, try:
|
|
89
|
+
```
|
|
90
|
+
$ conda create -n bioclients -c conda-forge pandas readline requests pyyaml tqdm psycopg2 numpy scipy scikit-learn matplotlib bioclients
|
|
91
|
+
```
|
|
92
|
+
then:
|
|
93
|
+
```
|
|
94
|
+
$ conda activate bioclients
|
|
95
|
+
```
|
|
96
|
+
and install additional packages as needed via `pip`, e.g.:
|
|
97
|
+
```
|
|
98
|
+
(bioclients) $ pip install sqlalchemy
|
|
99
|
+
(bioclients) $ pip install pyquery
|
|
100
|
+
(bioclients) $ pip install mygene
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
|
|
87
104
|
|
|
88
105
|
|
|
@@ -14,6 +14,9 @@ BioClients/amp/__init__.py
|
|
|
14
14
|
BioClients/amp/t2d/Client.py
|
|
15
15
|
BioClients/amp/t2d/Utils.py
|
|
16
16
|
BioClients/amp/t2d/__init__.py
|
|
17
|
+
BioClients/badapple/Client.py
|
|
18
|
+
BioClients/badapple/Utils.py
|
|
19
|
+
BioClients/badapple/__init__.py
|
|
17
20
|
BioClients/bindingdb/Client.py
|
|
18
21
|
BioClients/bindingdb/Utils.py
|
|
19
22
|
BioClients/bindingdb/__init__.py
|
|
@@ -81,6 +84,9 @@ BioClients/ensembl/__init__.py
|
|
|
81
84
|
BioClients/ensembl/biomart/Client.py
|
|
82
85
|
BioClients/ensembl/biomart/Utils.py
|
|
83
86
|
BioClients/ensembl/biomart/__init__.py
|
|
87
|
+
BioClients/entrez/Client.py
|
|
88
|
+
BioClients/entrez/Utils.py
|
|
89
|
+
BioClients/entrez/__init__.py
|
|
84
90
|
BioClients/fda/__init__.py
|
|
85
91
|
BioClients/fda/aer/Client.py
|
|
86
92
|
BioClients/fda/aer/Utils.py
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: BioClients
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.20
|
|
4
4
|
Summary: Clients for online biomedical resources, usually via REST APIs.
|
|
5
5
|
Home-page: https://github.com/jeremyjyang/BioClients
|
|
6
6
|
Author: Jeremy Yang
|
|
7
7
|
Author-email: jeremyjyang@gmail.com
|
|
8
|
+
License: UNKNOWN
|
|
9
|
+
Platform: UNKNOWN
|
|
8
10
|
Classifier: Programming Language :: Python :: 3
|
|
9
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
10
12
|
Classifier: Operating System :: OS Independent
|
|
@@ -45,7 +47,7 @@ python3 setup.py install
|
|
|
45
47
|
|
|
46
48
|
## Modules
|
|
47
49
|
|
|
48
|
-
[__Allen__](doc/allen.md) • [__AMP-T2D__](doc/amp__t2d.md) • [__BindingDb__](doc/bindingdb.md) • [__BioGrid__](doc/biogrid.md) • [__BiomarkerKB__](doc/biomarkerkb.md) • [__Bioregistry__](doc/bioregistry.md) • [__BRENDA__](doc/brenda.md) • [__CAS__](doc/cas.md) • [__CDC__](doc/cdc.md) • [__CFDE__](doc/cfde.md) • [__Chem2Bio2RDF__](doc/chem2bio2rdf.md) • [__ChEBI__](doc/chebi.md) • [__ChEMBL__](doc/chembl.md) • [__ChemIdPlus__](doc/chemidplus.md) • [__ClinicalTrials.gov__](doc/clinicaltrials.md) • [__Disease Ontology__](doc/diseaseontology.md) • [__DisGeNet__](doc/disgenet.md) • [__DNorm__](doc/dnorm.md) • [__DrugCentral__](doc/drugcentral.md) • [__EMBL-EBI__](doc/emblebi.md) • [__EnsEMBL__](doc/ensembl.md) • [__FDA__](doc/fda.md) • [__Gene Ontology__](doc/geneontology.md) • [__GTEx__](doc/gtex.md) • [__GWAS Catalog__](doc/gwascatalog.md) • [__HUGO__](doc/hugo.md) • [__HumanBase__](doc/humanbase.md) • [__iCite__](doc/icite.md) • [__IDG__](doc/idg.md) • [__JensenLab__](doc/jensenlab.md) • [__LINCS__](doc/lincs.md) • [__MaayanLab__](doc/maayanlab.md) • [__Medline__](doc/medline.md) • [__MeSH__](doc/mesh.md) • [__MONARCH__](doc/monarch.md) • [__MyGene__](doc/mygene.md) • [__NCBO__](doc/ncbo.md) • [__NCATS__](doc/ncats.md) • [__OMIM__](doc/omim.md) • [__OncoTree__](doc/oncotree.md) • [__Open Targets__](doc/opentargets.md) • [__Panther__](doc/panther.md) • [__PDB__](doc/pdb.md) • [__PubChem__](doc/pubchem.md) • [__PubMed__](doc/pubmed.md) • [__PubTator__](doc/pubtator.md) • [__Reactome__](doc/reactome.md) • [__RXNorm__](doc/rxnorm.md) • [__STRINGDB__](doc/stringdb.md) • [__TCGA__](doc/tcga.md) • [__UBKG__](doc/ubkg.md) • [__UMLS__](doc/umls.md) • [__UniProt__](doc/uniprot.md) • [__Wikidata__](doc/wikidata.md) • [__WikiPathways__](doc/wikipathways.md)
|
|
50
|
+
[__Allen__](doc/allen.md) • [__AMP-T2D__](doc/amp__t2d.md) • [__Badapple__](doc/badapple.md) • [__BindingDb__](doc/bindingdb.md) • [__BioGrid__](doc/biogrid.md) • [__BiomarkerKB__](doc/biomarkerkb.md) • [__Bioregistry__](doc/bioregistry.md) • [__BRENDA__](doc/brenda.md) • [__CAS__](doc/cas.md) • [__CDC__](doc/cdc.md) • [__CFDE__](doc/cfde.md) • [__Chem2Bio2RDF__](doc/chem2bio2rdf.md) • [__ChEBI__](doc/chebi.md) • [__ChEMBL__](doc/chembl.md) • [__ChemIdPlus__](doc/chemidplus.md) • [__ClinicalTrials.gov__](doc/clinicaltrials.md) • [__Disease Ontology__](doc/diseaseontology.md) • [__DisGeNet__](doc/disgenet.md) • [__DNorm__](doc/dnorm.md) • [__DrugCentral__](doc/drugcentral.md) • [__EMBL-EBI__](doc/emblebi.md) • [__EnsEMBL__](doc/ensembl.md) • [__Entrez__](doc/entrez.md) • [__FDA__](doc/fda.md) • [__Gene Ontology__](doc/geneontology.md) • [__GTEx__](doc/gtex.md) • [__GWAS Catalog__](doc/gwascatalog.md) • [__HUGO__](doc/hugo.md) • [__HumanBase__](doc/humanbase.md) • [__iCite__](doc/icite.md) • [__IDG__](doc/idg.md) • [__JensenLab__](doc/jensenlab.md) • [__LINCS__](doc/lincs.md) • [__MaayanLab__](doc/maayanlab.md) • [__Medline__](doc/medline.md) • [__MeSH__](doc/mesh.md) • [__MONARCH__](doc/monarch.md) • [__MyGene__](doc/mygene.md) • [__NCBO__](doc/ncbo.md) • [__NCATS__](doc/ncats.md) • [__OMIM__](doc/omim.md) • [__OncoTree__](doc/oncotree.md) • [__Open Targets__](doc/opentargets.md) • [__Panther__](doc/panther.md) • [__PDB__](doc/pdb.md) • [__PubChem__](doc/pubchem.md) • [__PubMed__](doc/pubmed.md) • [__PubTator__](doc/pubtator.md) • [__Reactome__](doc/reactome.md) • [__RXNorm__](doc/rxnorm.md) • [__STRINGDB__](doc/stringdb.md) • [__TCGA__](doc/tcga.md) • [__UBKG__](doc/ubkg.md) • [__UMLS__](doc/umls.md) • [__UniProt__](doc/uniprot.md) • [__Wikidata__](doc/wikidata.md) • [__WikiPathways__](doc/wikipathways.md)
|
|
49
51
|
|
|
50
52
|
Miscellaneous utilities: [__UTIL__](doc/util.md)
|
|
51
53
|
|
|
@@ -81,8 +83,23 @@ BioClients depends on numerous Python packages. (See [conda/environment.yml](co
|
|
|
81
83
|
The following commands create and activate a Conda environment `bioclients`:
|
|
82
84
|
|
|
83
85
|
```
|
|
84
|
-
conda env create -f conda/environment.yml
|
|
85
|
-
conda activate bioclients
|
|
86
|
+
$ conda env create -f conda/environment.yml
|
|
86
87
|
```
|
|
88
|
+
If that fails, try:
|
|
89
|
+
```
|
|
90
|
+
$ conda create -n bioclients -c conda-forge pandas readline requests pyyaml tqdm psycopg2 numpy scipy scikit-learn matplotlib bioclients
|
|
91
|
+
```
|
|
92
|
+
then:
|
|
93
|
+
```
|
|
94
|
+
$ conda activate bioclients
|
|
95
|
+
```
|
|
96
|
+
and install additional packages as needed via `pip`, e.g.:
|
|
97
|
+
```
|
|
98
|
+
(bioclients) $ pip install sqlalchemy
|
|
99
|
+
(bioclients) $ pip install pyquery
|
|
100
|
+
(bioclients) $ pip install mygene
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
|
|
87
104
|
|
|
88
105
|
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# `BioClients` <img align="right" src="doc/images/BioClients_logo.png" height="120" alt="BioClients logo">
|
|
2
|
+
|
|
3
|
+
Python package for access to online biomedical resources,
|
|
4
|
+
usually via REST APIs. Modules generally include
|
|
5
|
+
`Client.py` for command-line use and `Utils.py` for
|
|
6
|
+
integration into other code. With the advent of HTTP web services,
|
|
7
|
+
first SOAP/XML and then mostly REST/JSON, many online APIs
|
|
8
|
+
require very similar methods for data search, requests
|
|
9
|
+
and transforms into usable formats, often TSV.
|
|
10
|
+
|
|
11
|
+
## Availability and installation
|
|
12
|
+
|
|
13
|
+
Source at <https://github.com/jeremyjyang/BioClients>;
|
|
14
|
+
releases available via <https://pypi.org/project/BioClients/>.
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
pip3 install BioClients
|
|
18
|
+
```
|
|
19
|
+
However, current development snapshot may included additional functionality.
|
|
20
|
+
|
|
21
|
+
___(First download or clone.)___
|
|
22
|
+
```
|
|
23
|
+
cd BioClients
|
|
24
|
+
python3 setup.py install
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Dependencies
|
|
28
|
+
|
|
29
|
+
* Python 3.10+
|
|
30
|
+
* Python packages: `pandas`, `requests`, `yaml`, `psycopg2`, `tqdm`, etc. (See [conda/environment.yml](conda/environment.yml)).
|
|
31
|
+
|
|
32
|
+
## Modules
|
|
33
|
+
|
|
34
|
+
[__Allen__](doc/allen.md) • [__AMP-T2D__](doc/amp__t2d.md) • [__Badapple__](doc/badapple.md) • [__BindingDb__](doc/bindingdb.md) • [__BioGrid__](doc/biogrid.md) • [__BiomarkerKB__](doc/biomarkerkb.md) • [__Bioregistry__](doc/bioregistry.md) • [__BRENDA__](doc/brenda.md) • [__CAS__](doc/cas.md) • [__CDC__](doc/cdc.md) • [__CFDE__](doc/cfde.md) • [__Chem2Bio2RDF__](doc/chem2bio2rdf.md) • [__ChEBI__](doc/chebi.md) • [__ChEMBL__](doc/chembl.md) • [__ChemIdPlus__](doc/chemidplus.md) • [__ClinicalTrials.gov__](doc/clinicaltrials.md) • [__Disease Ontology__](doc/diseaseontology.md) • [__DisGeNet__](doc/disgenet.md) • [__DNorm__](doc/dnorm.md) • [__DrugCentral__](doc/drugcentral.md) • [__EMBL-EBI__](doc/emblebi.md) • [__EnsEMBL__](doc/ensembl.md) • [__Entrez__](doc/entrez.md) • [__FDA__](doc/fda.md) • [__Gene Ontology__](doc/geneontology.md) • [__GTEx__](doc/gtex.md) • [__GWAS Catalog__](doc/gwascatalog.md) • [__HUGO__](doc/hugo.md) • [__HumanBase__](doc/humanbase.md) • [__iCite__](doc/icite.md) • [__IDG__](doc/idg.md) • [__JensenLab__](doc/jensenlab.md) • [__LINCS__](doc/lincs.md) • [__MaayanLab__](doc/maayanlab.md) • [__Medline__](doc/medline.md) • [__MeSH__](doc/mesh.md) • [__MONARCH__](doc/monarch.md) • [__MyGene__](doc/mygene.md) • [__NCBO__](doc/ncbo.md) • [__NCATS__](doc/ncats.md) • [__OMIM__](doc/omim.md) • [__OncoTree__](doc/oncotree.md) • [__Open Targets__](doc/opentargets.md) • [__Panther__](doc/panther.md) • [__PDB__](doc/pdb.md) • [__PubChem__](doc/pubchem.md) • [__PubMed__](doc/pubmed.md) • [__PubTator__](doc/pubtator.md) • [__Reactome__](doc/reactome.md) • [__RXNorm__](doc/rxnorm.md) • [__STRINGDB__](doc/stringdb.md) • [__TCGA__](doc/tcga.md) • [__UBKG__](doc/ubkg.md) • [__UMLS__](doc/umls.md) • [__UniProt__](doc/uniprot.md) • [__Wikidata__](doc/wikidata.md) • [__WikiPathways__](doc/wikipathways.md)
|
|
35
|
+
|
|
36
|
+
Miscellaneous utilities: [__UTIL__](doc/util.md)
|
|
37
|
+
|
|
38
|
+
## Usage Example
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
python3 -m BioClients.pubchem.Client -h
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Design pattern
|
|
45
|
+
|
|
46
|
+
Generally each module includes command-line app `Client.py` which calls
|
|
47
|
+
functions in a corresponding `Utils.py`, providing all capabilities
|
|
48
|
+
by import of the module. Command-line apps not API clients are generally
|
|
49
|
+
named `App.py`. Functions can write to an output file
|
|
50
|
+
or return a Pandas dataframe (if output file unspecified).
|
|
51
|
+
|
|
52
|
+
## Data structures and formats, XML, JSON, and TSV
|
|
53
|
+
|
|
54
|
+
BioClients is designed to be simple and practical, and XML, JSON
|
|
55
|
+
and TSV are likewise simple in many respects, yet a great deal
|
|
56
|
+
of conceptual and technological progress is reflected. XML and JSON
|
|
57
|
+
can represent arbitrarily complex data objects, comprised of nested lists,
|
|
58
|
+
dictionaries, and trees of primary types. TSV represents tables of
|
|
59
|
+
rows and columns, related by common keys, reflecting the development
|
|
60
|
+
of SQL and relational databases. Transforming JSON to TSV, as these
|
|
61
|
+
clients generally do, projects data objects to tables useful for many
|
|
62
|
+
applications (e.g. machine learning).
|
|
63
|
+
|
|
64
|
+
## Conda environment
|
|
65
|
+
|
|
66
|
+
BioClients depends on numerous Python packages. (See [conda/environment.yml](conda/environment.yml)).
|
|
67
|
+
The following commands create and activate a Conda environment `bioclients`:
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
$ conda env create -f conda/environment.yml
|
|
71
|
+
```
|
|
72
|
+
If that fails, try:
|
|
73
|
+
```
|
|
74
|
+
$ conda create -n bioclients -c conda-forge pandas readline requests pyyaml tqdm psycopg2 numpy scipy scikit-learn matplotlib bioclients
|
|
75
|
+
```
|
|
76
|
+
then:
|
|
77
|
+
```
|
|
78
|
+
$ conda activate bioclients
|
|
79
|
+
```
|
|
80
|
+
and install additional packages as needed via `pip`, e.g.:
|
|
81
|
+
```
|
|
82
|
+
(bioclients) $ pip install sqlalchemy
|
|
83
|
+
(bioclients) $ pip install pyquery
|
|
84
|
+
(bioclients) $ pip install mygene
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
|
BioClients-0.2.19/README.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# `BioClients` <img align="right" src="doc/images/BioClients_logo.png" height="120" alt="BioClients logo">
|
|
2
|
-
|
|
3
|
-
Python package for access to online biomedical resources,
|
|
4
|
-
usually via REST APIs. Modules generally include
|
|
5
|
-
`Client.py` for command-line use and `Utils.py` for
|
|
6
|
-
integration into other code. With the advent of HTTP web services,
|
|
7
|
-
first SOAP/XML and then mostly REST/JSON, many online APIs
|
|
8
|
-
require very similar methods for data search, requests
|
|
9
|
-
and transforms into usable formats, often TSV.
|
|
10
|
-
|
|
11
|
-
## Availability and installation
|
|
12
|
-
|
|
13
|
-
Source at <https://github.com/jeremyjyang/BioClients>;
|
|
14
|
-
releases available via <https://pypi.org/project/BioClients/>.
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
pip3 install BioClients
|
|
18
|
-
```
|
|
19
|
-
However, current development snapshot may included additional functionality.
|
|
20
|
-
|
|
21
|
-
___(First download or clone.)___
|
|
22
|
-
```
|
|
23
|
-
cd BioClients
|
|
24
|
-
python3 setup.py install
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Dependencies
|
|
28
|
-
|
|
29
|
-
* Python 3.10+
|
|
30
|
-
* Python packages: `pandas`, `requests`, `yaml`, `psycopg2`, `tqdm`, etc. (See [conda/environment.yml](conda/environment.yml)).
|
|
31
|
-
|
|
32
|
-
## Modules
|
|
33
|
-
|
|
34
|
-
[__Allen__](doc/allen.md) • [__AMP-T2D__](doc/amp__t2d.md) • [__BindingDb__](doc/bindingdb.md) • [__BioGrid__](doc/biogrid.md) • [__BiomarkerKB__](doc/biomarkerkb.md) • [__Bioregistry__](doc/bioregistry.md) • [__BRENDA__](doc/brenda.md) • [__CAS__](doc/cas.md) • [__CDC__](doc/cdc.md) • [__CFDE__](doc/cfde.md) • [__Chem2Bio2RDF__](doc/chem2bio2rdf.md) • [__ChEBI__](doc/chebi.md) • [__ChEMBL__](doc/chembl.md) • [__ChemIdPlus__](doc/chemidplus.md) • [__ClinicalTrials.gov__](doc/clinicaltrials.md) • [__Disease Ontology__](doc/diseaseontology.md) • [__DisGeNet__](doc/disgenet.md) • [__DNorm__](doc/dnorm.md) • [__DrugCentral__](doc/drugcentral.md) • [__EMBL-EBI__](doc/emblebi.md) • [__EnsEMBL__](doc/ensembl.md) • [__FDA__](doc/fda.md) • [__Gene Ontology__](doc/geneontology.md) • [__GTEx__](doc/gtex.md) • [__GWAS Catalog__](doc/gwascatalog.md) • [__HUGO__](doc/hugo.md) • [__HumanBase__](doc/humanbase.md) • [__iCite__](doc/icite.md) • [__IDG__](doc/idg.md) • [__JensenLab__](doc/jensenlab.md) • [__LINCS__](doc/lincs.md) • [__MaayanLab__](doc/maayanlab.md) • [__Medline__](doc/medline.md) • [__MeSH__](doc/mesh.md) • [__MONARCH__](doc/monarch.md) • [__MyGene__](doc/mygene.md) • [__NCBO__](doc/ncbo.md) • [__NCATS__](doc/ncats.md) • [__OMIM__](doc/omim.md) • [__OncoTree__](doc/oncotree.md) • [__Open Targets__](doc/opentargets.md) • [__Panther__](doc/panther.md) • [__PDB__](doc/pdb.md) • [__PubChem__](doc/pubchem.md) • [__PubMed__](doc/pubmed.md) • [__PubTator__](doc/pubtator.md) • [__Reactome__](doc/reactome.md) • [__RXNorm__](doc/rxnorm.md) • [__STRINGDB__](doc/stringdb.md) • [__TCGA__](doc/tcga.md) • [__UBKG__](doc/ubkg.md) • [__UMLS__](doc/umls.md) • [__UniProt__](doc/uniprot.md) • [__Wikidata__](doc/wikidata.md) • [__WikiPathways__](doc/wikipathways.md)
|
|
35
|
-
|
|
36
|
-
Miscellaneous utilities: [__UTIL__](doc/util.md)
|
|
37
|
-
|
|
38
|
-
## Usage Example
|
|
39
|
-
|
|
40
|
-
```
|
|
41
|
-
python3 -m BioClients.pubchem.Client -h
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
## Design pattern
|
|
45
|
-
|
|
46
|
-
Generally each module includes command-line app `Client.py` which calls
|
|
47
|
-
functions in a corresponding `Utils.py`, providing all capabilities
|
|
48
|
-
by import of the module. Command-line apps not API clients are generally
|
|
49
|
-
named `App.py`. Functions can write to an output file
|
|
50
|
-
or return a Pandas dataframe (if output file unspecified).
|
|
51
|
-
|
|
52
|
-
## Data structures and formats, XML, JSON, and TSV
|
|
53
|
-
|
|
54
|
-
BioClients is designed to be simple and practical, and XML, JSON
|
|
55
|
-
and TSV are likewise simple in many respects, yet a great deal
|
|
56
|
-
of conceptual and technological progress is reflected. XML and JSON
|
|
57
|
-
can represent arbitrarily complex data objects, comprised of nested lists,
|
|
58
|
-
dictionaries, and trees of primary types. TSV represents tables of
|
|
59
|
-
rows and columns, related by common keys, reflecting the development
|
|
60
|
-
of SQL and relational databases. Transforming JSON to TSV, as these
|
|
61
|
-
clients generally do, projects data objects to tables useful for many
|
|
62
|
-
applications (e.g. machine learning).
|
|
63
|
-
|
|
64
|
-
## Conda environment
|
|
65
|
-
|
|
66
|
-
BioClients depends on numerous Python packages. (See [conda/environment.yml](conda/environment.yml)).
|
|
67
|
-
The following commands create and activate a Conda environment `bioclients`:
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
conda env create -f conda/environment.yml
|
|
71
|
-
conda activate bioclients
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
|
|
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
|
{BioClients-0.2.19/BioClients/bindingdb → BioClients-0.2.20/BioClients/badapple}/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|