Clients for online biomedical resources, usually via REST APIs.
Project description
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. 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 pypi.org
:
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.8+
- Python packages:
pandas
,requests
,yaml
,psycopg2
,tqdm
, etc. (See conda/environment.yml).
Modules
Allen • AMP-T2D • BindingDb • BioGrid • Bioregistry • BRENDA • CAS • CDC • CFDE • Chem2Bio2RDF • ChEBI • ChEMBL • ChemIdPlus • ClinicalTrials.gov • Disease Ontology • DisGeNet • DNorm • DrugCentral • EMBL-EBI • EnsEMBL • FDA • Gene Ontology • GTEx • GWAS Catalog • HUGO • HumanBase • iCite • IDG • JensenLab • LINCS • MaayanLab • Medline • MeSH • MONARCH • MyGene • NCBO • NCATS • OMIM • OncoTree • Open Targets • Panther • PDB • PubChem • PubMed • PubTator • Reactome • RXNorm • STRINGDB • TCGA • UBKG • UMLS • UniProt • Wikidata • WikiPathways
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).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file BioClients-0.2.18.tar.gz
.
File metadata
- Download URL: BioClients-0.2.18.tar.gz
- Upload date:
- Size: 207.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d93f1e3128bef59f2b742e185ce1678ed5f78abc14f1a39f9a866618c10ab54 |
|
MD5 | 7563d96683589534c2d53bedb6e84ac8 |
|
BLAKE2b-256 | a19be358f67f8bb9ec940d031ac79f5013c33bec19952728b1724efc93cf55bc |
File details
Details for the file BioClients-0.2.18-py3-none-any.whl
.
File metadata
- Download URL: BioClients-0.2.18-py3-none-any.whl
- Upload date:
- Size: 320.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ba3937caa1105a4951d99cf1413c46062692dcf234b02711b38d108b16d91b6 |
|
MD5 | ebcd70913d8618479ad8d8a064bc46ee |
|
BLAKE2b-256 | 62908269163f8fde7ec336da373df74f254426501160553c9089f04c3e29e749 |