Description Usage Arguments Value Author(s) References Examples
View source: R/ChemicalCuration.R
Retrieves a count of CIDs or CID list from PubChem using entrez/eUtils . Default behaviour is to retrieve CID count only, or a short CID list in ascending order. RMassBank is used to calculate the ppm range. Thanks to Paul Thiessen and Evan Bolton from PubChem team for assistance.
1 | getPcCand.ExactMass(ExactMass, ppm=5, CountOnly=TRUE, RetMax=20, sortAsc=TRUE, timeout=10)
|
ExactMass |
Exact mass to search |
ppm |
Mass error (ppm, not Da) to search. Default |
CountOnly |
Default |
RetMax |
Number of CIDs to return. Default |
sortAsc |
Default |
timeout |
The timeout, in seconds. |
Either a count of CIDs or a vector of CIDs (NA
if error).
Emma Schymanski <emma.schymanski@uni.lu>
PubChem search: http://pubchem.ncbi.nlm.nih.gov/
Entrez eUtils: https://www.ncbi.nlm.nih.gov/books/NBK25500/ and https://www.ncbi.nlm.nih.gov/books/NBK25499/
1 2 3 4 5 6 | getPcCand.ExactMass(298.095947)
getPcCand.ExactMass(298.095947,5,CountOnly=F)
getPcCand.ExactMass(298.095947,5,CountOnly=F,sortAsc=F)
getPcCand.ExactMass(298.095947,5,CountOnly=F,sortAsc=T,RetMax=10)
# invalid mass entries will return an error in the mass calc
getPcCand.ExactMass("298.095947")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.