pubchemName2CID: Translate compound name to pubchem compound id

Description Usage Arguments Value Author(s) References Examples

View source: R/pubchem_calls.R

Description

Takes any compound name and queries pubchem to find its pubchem id (CID).

Usage

1

Arguments

name

Any compound name, used to query pubchem to find the compound.

Value

The result is the pubchem compound id. If the name is not found, NA will be returned.

Author(s)

Kevin Horan

References

PubChem PUG REST: https://pubchem.ncbi.nlm.nih.gov/pug_rest/PUG_REST_Tutorial.html

Examples

1
2
3
4
5
## Not run: 
## fetch 2 compounds from PubChem
cid <- pubchemName2CID("CHEMBL460363")

## End(Not run)

ChemmineR documentation built on Feb. 28, 2021, 2:02 a.m.