pubchemName2CID: Translate compound name to pubchem compound id

View source: R/pubchem_calls.R

pubchemName2CIDR Documentation

Translate compound name to pubchem compound id

Description

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

Usage

pubchemName2CID(name)

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

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

## End(Not run)

girke-lab/ChemmineR documentation built on July 28, 2023, 10:36 a.m.