Clients to online biomedical resources, usually 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 recommended.
(First download or clone.)
$ cd BioClients
$ python3 setup.py install
Dependencies
- Python 3.6+
- Python packages:
pandas
,requests
,urllib
,json
,xml
,yaml
,psycopg2
,tqdm
, etc.
Modules
Allen • AMP-T2D • BindingDb • BioGrid • BRENDA • CDC • Chem2Bio2RDF • ChEMBL • Disease Ontology • DisGeNet • DNorm • DrugCentral • EnsEMBL • FDA • Gene Ontology • GWAS Catalog • HUGO • HumanBase • iCite • IDG • JensenLab • LINCS • MaayanLab • MeSH • MONARCH • MyGene • OMIM • Open Targets • Panther • PDB • PubChem • PubMed • PubTator • Reactome • RXNorm • STRINGDB • TCGA • • 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. Functions can write to an output file
or return a Pandas dataframe.
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 Distributions
Hashes for BioClients-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aff3a4bf0c014895311caa4b8be1ddb2cd86fc692bb2f5ea763fc208a525ad7 |
|
MD5 | 6da57109fb6504a31f52985a05331516 |
|
BLAKE2b-256 | 32087c5cf2c8721702d345e16b489c7565b0797073e391c5a4118a101af875b8 |