Description Usage Arguments Details Value Author(s) References Examples
View source: R/ChemicalCuration.R
Retrieves record title (title name) from PubChem using PUG REST. Default behaviour is to retrieve by CID or InChIKey.
1 | getPCdesc.title(query, from = "cid", timeout=10)
|
query |
string of the identifier (CID, InChIKey) to be converted |
from |
Type of input ID (default |
timeout |
The timeout, in seconds. |
For this function to work as expected, only one search entry should be used (e.g. one CID or InChIKey). The URL can accept comma separated CIDs, but this is currently ignored downstream. Thanks to Paul Thiessen and Evan Bolton from PubChem team for assistance.
A list containing the CID and related record title (Name)
Emma Schymanski <emma.schymanski@uni.lu>
PubChem search: http://pubchem.ncbi.nlm.nih.gov/
PubChem PUG REST: https://pubchemdocs.ncbi.nlm.nih.gov/pug-rest
1 2 3 4 5 6 | getPCdesc.title("22206")
getPCdesc.title("FZXISNSWEXTPMF-UHFFFAOYSA-N",from="inchikey")
getPCdesc.title("2244")
getPCdesc.title("1983")
#a non-live record
getPCdesc.title("4644")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.