Description Usage Arguments Value Author(s) See Also Examples
View source: R/ChemicalCuration.R
A wrapper function to obtain identifiers from an InChIKey
using various webservices. PubChem CIDs are obtained with getPcId
from
PubChem direct (https://pubchem.ncbi.nlm.nih.gov/), ChemSpider IDs
directly from ChemSpider (http://www.chemspider.com/) with
getCSID
. CAS numbers are retrieved using getCactus
from
Cactus (https://cactus.nci.nih.gov/chemical/structure);
if this fails the Chemical Translation Service (CTS,
http://cts.fiehnlab.ucdavis.edu/ is queried. Options are given to
return all CAS numbers, the "smallest" CAS number or the first entry.
1 | getSuspectIdentifiers(InChIKey, allCAS=FALSE, sep=",", minCAS=TRUE)
|
InChIKey |
Valid InChIKey used to retrieve information. |
allCAS |
Default |
sep |
Determines the separator used with |
minCAS |
Default |
Returns a list with the resulting identifiers, with NA
if the query failed.
Emma Schymanski <emma.schymanski@uni.lu>
getCactus
, getPcId
, getCSID
, getCtsRecord
, getSuspectInChIKey
.
1 2 3 4 5 | benz_key <- "UHOVQNZJYSORNB-UHFFFAOYSA-N"
getSuspectIdentifiers(benz_key)
getSuspectIdentifiers(benz_key,allCAS=TRUE)
getSuspectIdentifiers(benz_key,allCAS=FALSE,minCAS=TRUE)
getSuspectIdentifiers(benz_key,allCAS=FALSE,minCAS=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.