Python interface to access data from The Comparative Toxicogenomics Database (CTD)
Project description
CTD Python
Pyhton interface to access data from The Comparative Toxicogenomics Database (CTD)
install
pip3 install ctd-python
import the package in order to pull the data
from ctd import get_data
The package offers the following resources as DataFrames
- GeneInteractionTypes
- ChemicalPathwaysEnriched
- GeneDisease
- GenePathways
- DiseasePathways
- ChemocalPhenoTypeInteractions
- Chemicals
- Genes
- ChemicalGeneInteractions
- Chemicals
- Diseases
Get the Gene Information for TNF
gene_df = get_data('Genes')
tnf_df = gene_df[gene_df['GeneSymbol'] == 'TNF']
Get Chemical Interactions for TNF
chem_gene_df = get_data('ChemicalGeneInteractions')
tnf_chem_df = chem_gene_df[chem_gene_df['GeneSymbol'] == 'TNF']
Get Disease Hierarchy for Parkinson Disease
child_diseases = get_disease_hierarchy('MESH:D010300')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ctd-python-0.2.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for ctd_python-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e2792eadc5d46ecdbe71500afdcccc39cc56c6e5f16133f49d6f04e1bad1563 |
|
MD5 | 36e3cda3dba2a8b642ace5271e3030ee |
|
BLAKE2b-256 | 75569cadb97c5104af8b0c908aab6002dc8d038cfa49e248d51ed696ccf88eae |