Description Usage Arguments Details Value Author(s) See Also
PubChem allows one to obtain the compound ID's and synonyms of
compounds that match a search string. This function uses the PubChem
Power User Gateway (PUG) REST API to supply a character vector of one
or more compound names and return the compound ID's and synonyms of
matching compounds. Additional information on compounds can be
obtained using the get.cid
function.
1 | get.synonyms(name, idtype = NULL, quiet=TRUE)
|
name |
A vector of one or more compound names |
idtype |
The default value of |
quiet |
If |
Processing a large number of compounds can take a long time. The PUG REST API is not designed for very large volumes (millions) of requests. In order to avoid overloading the PubChem servers, this function is limited to 5 requests per second.
A data.frame
with 4 columns:
Name |
The compound name provided |
CID |
The compound ID |
Synonym |
Synonyms associated with the compound ID |
CAS |
Logical indicating whether the synonym is a CAS RN |
John Buonagurio jbuonagurio@exponent.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.