View source: R/pubchem_calls.R
pubchemName2CID | R Documentation |
Takes any compound name and queries pubchem to find its pubchem id (CID).
pubchemName2CID(name)
name |
Any compound name, used to query pubchem to find the compound. |
The result is the pubchem compound id. If the name is not found, NA will be returned.
Kevin Horan
PubChem PUG REST: https://pubchem.ncbi.nlm.nih.gov/pug_rest/PUG_REST_Tutorial.html
## Not run:
## fetch 2 compounds from PubChem
cid <- pubchemName2CID("CHEMBL460363")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.