getMolFromCAS | R Documentation |
Retrieve Drug Molecules in InChI Format from the CAS Database
getMolFromCAS(id, parallel = 5)
id |
A character vector, as the CAS drug ID. |
parallel |
An integer, the parallel parameter, indicates how many
process the user would like to use for retrieving
the data (using RCurl), default is |
This function retrieves drug molecules in InChI format from the CAS database. CAS database only provides InChI data, so here we return the molecule in InChI format, users could convert them to SMILES format using Open Babel or other third-party tools.
A length of id
character vector,
each element containing the corresponding drug molecule.
See getDrug
for retrieving drug molecules
in MOL and SMILES Format from other databases.
id = '52-67-5' # Penicillamine
getMolFromCAS(id)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.