Skip to main content

BioClients BioClients logo

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. With the advent of HTTP web services, first SOAP/XML and then mostly REST/JSON, many online APIs require very similar methods for data search, requests and transforms into usable formats, often TSV.

Availability and installation

Source at https://github.com/jeremyjyang/BioClients; releases available via https://pypi.org/project/BioClients/.

pip3 install BioClients

However, current development snapshot may included additional functionality.

(First download or clone.)

cd BioClients
python3 setup.py install

Dependencies

  • Python 3.10+
  • Python packages: pandas, requests, yaml, psycopg2, tqdm, etc. (See conda/environment.yml).

Modules

AllenAMP-T2DBadappleBindingDbBioGridBiomarkerKBBioregistryBRENDACASCDCCFDEChem2Bio2RDFChEBIChEMBLChemIdPlusClinicalTrials.govDisease OntologyDisGeNetDNormDrugCentralEMBL-EBIEnsEMBLEntrezFDAGene OntologyGTExGWAS CatalogHUGOHumanBaseiCiteIDGJensenLabLINCSMaayanLabMedlineMeSHMONARCHMyGeneNCBONCATSOMIMOncoTreeOpen TargetsPantherPDBPubChemPubMedPubTatorReactomeRXNormSTRINGDBTCGAUBKGUMLSUniProtWikidataWikiPathways

Miscellaneous utilities: UTIL

Usage Example

python3 -m BioClients.pubchem.Client -h

Design pattern

Generally each module includes command-line app Client.py which calls functions in a corresponding Utils.py, providing all capabilities by import of the module. Command-line apps not API clients are generally named App.py. Functions can write to an output file or return a Pandas dataframe (if output file unspecified).

Data structures and formats, XML, JSON, and TSV

BioClients is designed to be simple and practical, and XML, JSON and TSV are likewise simple in many respects, yet a great deal of conceptual and technological progress is reflected. XML and JSON can represent arbitrarily complex data objects, comprised of nested lists, dictionaries, and trees of primary types. TSV represents tables of rows and columns, related by common keys, reflecting the development of SQL and relational databases. Transforming JSON to TSV, as these clients generally do, projects data objects to tables useful for many applications (e.g. machine learning).

Conda environment

BioClients depends on numerous Python packages. (See conda/environment.yml). The following commands create and activate a Conda environment bioclients:

$ conda env create -f conda/environment.yml

If that fails, try:

$ conda create -n bioclients -c conda-forge pandas readline requests pyyaml tqdm psycopg2 numpy scipy scikit-learn matplotlib bioclients

then:

$ conda activate bioclients

and install additional packages as needed via pip, e.g.:

(bioclients) $ pip install sqlalchemy
(bioclients) $ pip install pyquery
(bioclients) $ pip install mygene

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.2.20.tar.gz (211.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.2.20-py3-none-any.whl (327.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: BioClients-0.2.20.tar.gz
  • Upload date:
  • Size: 211.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for BioClients-0.2.20.tar.gz
Algorithm Hash digest
SHA256 1350754b0e3d7a09b0a535ae3a12e4692e8ded37eedfa9c60ce5eb712a3950a7
MD5 f5911b900e3ba5a18c0b7dbd584b4af5
BLAKE2b-256 51701d65865f09c74ea09ae88d8706a93aeac31e450144a92b4e8cf67aadd1fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: BioClients-0.2.20-py3-none-any.whl
  • Upload date:
  • Size: 327.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for BioClients-0.2.20-py3-none-any.whl
Algorithm Hash digest
SHA256 f4a030f927e8ecee1cccbee2219ef89d9567315e85c264208c14df89b8590f44
MD5 9698d241a51d7519350368e156c8d25f
BLAKE2b-256 b3447d333936f4379f7b119e894c5c0e31101a0cb83ecc92a39ccc50ef70cae4

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

This release

0.2.20 This release

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

0.0.3

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