Skip to main content

BioClients

Python package for access to online biomedical resources, usually via REST APIs. Modules generally include Client.py for command-line use and Utils.py for integration into other code.

Dependencies

  • Python3

Modules

biogrid, brenda, chembl, diseaseontology, disgenet, dnorm, ensembl, fda, geneontology, gwascatalog, hugo, humanbase, icite, lincs, mesh, omim, opentargets, pdb, pubchem, pubmed, pubtator, reactome, rxnorm, stringdb, umls, uniprot

Usage

$ python3 -m BioClients.stringdb.Client -h

usage: Client.py [-h] [--id ID] [--ids IDS] [--idfile IDFILE] [--o OFILE]
                 [--species SPECIES] [--minscore MINSCORE]
                 [--netflavor {evidence,confidence,actions}]
                 [--imgfmt {image,highres_image,svg}] [--api_host API_HOST]
                 [--api_base_path API_BASE_PATH] [-v]
                 {getIds,getInteractionPartners,getNetwork,getNetworkImage,getEnrichment,getPPIEnrichment,getInteractors,getActions,getAbstracts}

STRING-DB REST API client utility

positional arguments:
  {getIds,getInteractionPartners,getNetwork,getNetworkImage,getEnrichment,getPPIEnrichment,getInteractors,getActions,getAbstracts}
                        operation

optional arguments:
  -h, --help            show this help message and exit
  --id ID               protein ID (ex:DRD1_HUMAN)
  --ids IDS             protein IDs, comma-separated
  --idfile IDFILE       input file, protein IDs
  --o OFILE             output file
  --species SPECIES     taxon code, ex: 9606 (human)
  --minscore MINSCORE   signifcance threshold 0-1000
  --netflavor {evidence,confidence,actions}
                        network flavor
  --imgfmt {image,highres_image,svg}
                        image format
  --api_host API_HOST
  --api_base_path API_BASE_PATH
  -v, --verbose

Example protein IDs: DRD1 DRD1_HUMAN DRD2 DRD2_HUMAN ; Example species: 9606 (human, via taxon identifiers, http://www.uniprot.org/taxonomy) ; Image formats: PNG PNG_highres SVG ; MAY BE DEPRECATED: getInteractors, getActions, getAbstracts

UMLS

From the NIH National Library of Medicine (NLM).

API_KEY: "===REPLACE-WITH-KEY-HERE==="

RxNorm

From the NIH National Library of Medicine (NLM).

Usage examples

python3 -m BioClients.rxnorm.Client -h
python3 -m BioClients.rxnorm.Client list_sourcetypes
python3 -m BioClients.rxnorm.Client list_relationtypes
python3 -m BioClients.rxnorm.Client list_termtypes
python3 -m BioClients.rxnorm.Client list_propnames
python3 -m BioClients.rxnorm.Client list_propcategories
python3 -m BioClients.rxnorm.Client list_idtypes
python3 -m BioClients.rxnorm.Client list_class_types
python3 -m BioClients.rxnorm.Client list_classes
python3 -m BioClients.rxnorm.Client list_classes --class_types 'MESHPA,ATC1-4'

Requiring names:

python3 -m BioClients.rxnorm.Client get_name --ids "prozac,tamiflu"
python3 -m BioClients.rxnorm.Client get_name2rxcui --ids "prozac,tamiflu"

Requiring external IDs:

python3 -m BioClients.rxnorm.Client get_id2rxcui --ids "C2709711" --idtype UMLSCUI

Requiring RxCUI IDs:

python3 -m BioClients.rxnorm.Client get_rxcui_status --ids "131725,213269"
python3 -m BioClients.rxnorm.Client get_rxcui_properties --ids "131725,213269"
python3 -m BioClients.rxnorm.Client get_rxcui_ndcs --ids "131725,213269"
python3 -m BioClients.rxnorm.Client get_rxcui_allrelated --ids "131725,213269"

MeSH

From the NIH National Library of Medicine (NLM). Currently XML processing tools only.

PubChem

Tools for obtaining and processing PubChem data (REST, SOAP, FTP).

python3 -m BioClients.pubchem.Client --name remdesivir name2sid
python3 -m BioClients.pubchem.Client --name remdesivir name2cid

ChEMBL

Tools for obtaining and processing ChEMBL data.

PubMed, PubTator, iCite

PubMed and related NIH literature resources.

  • (PubMed)[https://pubmed.ncbi.nlm.nih.gov/]
  • (iCite)[https://icite.od.nih.gov/]
  • (PubTator)[https://www.ncbi.nlm.nih.gov/research/pubtator/]

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

BioClients-0.0.3.tar.gz (104.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

BioClients-0.0.3-py3-none-any.whl (152.4 kB view details)

Uploaded Python 3

File details

Details for the file BioClients-0.0.3.tar.gz.

File metadata

  • Download URL: BioClients-0.0.3.tar.gz
  • Upload date:
  • Size: 104.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.19.2 CPython/3.6.5

File hashes

Hashes for BioClients-0.0.3.tar.gz
Algorithm Hash digest
SHA256 018e6e8fb711eb1b455d6e63ed37e0b287da5b508915462d3ab93cb1d6f8527f
MD5 5473792f320aa22ecbb10a181c4aab3b
BLAKE2b-256 81047eb9d3d0ca64a55a3b1d5f120a54e0a5f659f05ebde6a3c7c1d088d47149

See more details on using hashes here.

File details

Details for the file BioClients-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: BioClients-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 152.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.19.2 CPython/3.6.5

File hashes

Hashes for BioClients-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 23a0902c91043605266815f855e86849f96a049f64166a41516524cc908b5b04
MD5 5bd9fcc3b0cb5bee051c8465272c158e
BLAKE2b-256 a12cf9f3d4ea74181be762baaaf55a84263242e4785b3422d0604f7478115476

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.35

2 files

0.2.34

2 files

0.2.33

2 files

0.2.30

2 files

0.2.20

2 files

0.2.19

2 files

0.2.18

2 files

0.2.16

2 files

0.2.15

2 files

0.2.11

2 files

0.2.10

2 files

0.2.9

3 files

0.2.8

2 files

0.2.7

2 files

0.2.3

2 files

0.2.0

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

3 files

0.1.4

3 files

0.1.3

2 files

0.1.1

3 files

0.1.0

3 files

0.0.9

2 files

0.0.8

3 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

3 files

This release

0.0.3 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page