CTSgetPy

Python interface to Chemical Translation Service (CTS)


License
MIT
Install
pip install CTSgetPy==0.0.1

Documentation

CTSgetPy Build Status


Python interface to the Chemical Translation Service (CTS)

Depends:

pip install requests
pip install tqdm
pip install bs4

Installation

pip install git+https://github.com/hcji/CTSgetPy@master

Usage

Import package

from CTSgetPy import CTSgetPy

View possible translation options between > 200 databases.

CTSgetPy.CTS_options()

Example usage

# single target, single identifier
CTSgetPy.CTSget('KEGG', 'PubChem SID', 'C00001', top_only=True) 
CTSgetPy.CTSget('KEGG', 'PubChem SID', 'C00001', top_only=False) 
# multi targets, single identifier
CTSgetPy.CTSget('KEGG', ['PubChem CID', 'PubChem SID'], 'C00001')
# multi target, multi identifiers	
CTSgetPy.CTSget('KEGG', ['PubChem CID', 'PubChem SID'], ['C00001', 'C00002'])