Description Usage Arguments Details Value Author(s) References Examples
View source: R/ChemicalCuration.R
Retrieves property data for MetFrag from PubChem using PUG REST. Default behaviour is to retrieve by CID or InChIKey. Properties returned are MolecularFormula, IsomericSMILES, InChI, InChIKey, IUPACName and MonoisotopicMass
1 | getPCproperty.MF(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 related property information
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 | getPCproperty.MF("22206")
getPCproperty.MF("FZXISNSWEXTPMF-UHFFFAOYSA-N",from="inchikey")
getPCproperty.MF("2244")
#a non-live record
getPCproperty.MF("4644")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.