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.1.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ctd-python-0.2.1.tar.gz.
File metadata
- Download URL: ctd-python-0.2.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3407e7ff214f6461ab2a7b09913611e557256be197e50f21a64fdd751d8f0b6b
|
|
| MD5 |
6ec42971e80a4a01c89ced02e16e4ab9
|
|
| BLAKE2b-256 |
29a4271025bffbf8237e3747d12aefb8fc6b2ad1b63e3a86f5761facd15c5372
|
File details
Details for the file ctd_python-0.2.1-py3-none-any.whl.
File metadata
- Download URL: ctd_python-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
066307241f0760fbfdba05e606c530e25d6477be70a41870b2e91bf249882f2d
|
|
| MD5 |
df7a26f30b59c7bff279361719c92f5e
|
|
| BLAKE2b-256 |
1f3bcf3949293cc60ba95b321c35195a95dc8e998df707cd5c2b418b8845853d
|