Learn R Programming

RMassBank (version 2.0.0)

getPcId: Search Pubchem CID

Description

Retrieves PubChem CIDs for a search term.

Usage

getPcId(query, from = "inchikey")

Arguments

query
ID to be converted
from
Type of input ID

Value

The PubChem CID (in string type).

Details

Only the first result is returned currently. The function should be regarded as experimental and has not thoroughly been tested.

References

PubChem search: http://pubchem.ncbi.nlm.nih.gov/

Pubchem REST: https://pubchem.ncbi.nlm.nih.gov/pug_rest/PUG_REST.html

See Also

getCtsRecord, getCactus

Examples

Run this code
getPcId("MKXZASYAUGDDCJ-NJAFHUGGSA-N")

Run the code above in your browser using DataLab