bioDBs is a Python package for getting data from biological databases.
Project description
bioDBs
bioDBs is a Python package for getting data from biological databases.
List of the databases
- BioMart
- KEGG
- QuickGO
- HPA
How to use
BioMart
from biodbs import BioMart
ds = BioMart.Dataset(dataset_name="hsapiens_gene_ensembl")
ds.get_data(attribs=["ensembl_gene_id",
"ensembl_transcript_id",
"entrezgene_id",
"hgnc_symbol",
"uniprotswissprot"],
ensembl_gene_id=["ENSG00000139618", "ENSG00000272104"])
KEGG
from biodbs import KEGG
# list available databases
KEGG.list_database()
kegg = KEGG.KEGGdb()
# get entry links
kegg.list_entry_link(target_db="pathway", source_db="hsa")
QuickGO
from biodbs import QuickGO
qgo = QuickGO.QuickGOdb()
# search by text and list the results
qgo.list_search_result("mito")
# save a GO-term tree chart
qgo.save_chart(["GO:1903695", "GO:1904922", "GO:0000423", "GO:0042645"], "test.png")
Human Protein Atlas (HPA)
from biodbs import HPA
hpa = HPA.HPAdb()
# list downloadable tsv files
print(HPA.DOWNLOADABLE_DATA)
# download tsv file from HPA
hpa.download_HPA_data("normal_tissue", saved_path="./")
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
biodbs-0.0.1.tar.gz
(10.8 kB
view details)
Built Distribution
biodbs-0.0.1-py3-none-any.whl
(11.8 kB
view details)
File details
Details for the file biodbs-0.0.1.tar.gz
.
File metadata
- Download URL: biodbs-0.0.1.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91007848984afc69a254defa0bbe1e545dcc824aee473577863112b58b4df14e |
|
MD5 | 8832b0f6e8af6944d80e331cf9a1c61e |
|
BLAKE2b-256 | 94984f8477c6bf6af144754034a11498987c01d3105c691a9661af2dcb025377 |
File details
Details for the file biodbs-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: biodbs-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c3f880aff26b16f9e1a2260bec2610a9c38aa31a4818a61744cf5b050d5b303 |
|
MD5 | eed79c0bd0a23a1f996ad42d9beaaa77 |
|
BLAKE2b-256 | 2f36bf81d41628801068c4fc625a50669157e85631017eebbb3f8fcf4eecb694 |