getPcId {RMassBank} | R Documentation |
Retrieves PubChem CIDs for a search term.
getPcId(query, from = "inchikey")
query |
ID to be converted |
from |
Type of input ID |
Only the first result is returned currently. The function should be regarded as experimental and has not thoroughly been tested.
The PubChem CID (in string type).
Michael Stravs, Erik Mueller
PubChem search: http://pubchem.ncbi.nlm.nih.gov/
Pubchem REST: https://pubchem.ncbi.nlm.nih.gov/pug_rest/PUG_REST.html
getPcId("MKXZASYAUGDDCJ-NJAFHUGGSA-N")