Description Usage Arguments Details Value Author(s) References Examples
View source: R/ChemicalCuration.R
Retrieves PubMedIDs and PatentIDs from PubChem and returns a total count of each, using PUG REST. Default behaviour is to retrieve by CID.
1 2 | getPCxrefs.count(query, from = "cid", xrefs="PatentID,PubMedID",
timeout=30)
|
query |
string of the identifier (CID, InChIKey, name) to be converted |
from |
Type of input ID (default |
xrefs |
The type of reference information to retrieve. Default
|
timeout |
The timeout, in seconds. For records with many entries,
this may need to be increased - e.g. if only one |
For this function to work as expected, only a unique search query should be used (e.g. CID). At this stage, only counts of PubMedIDs and Patent Counts will be returned. Thanks to Paul Thiessen and Evan Bolton from PubChem team for assistance.
A list containing the PCID and total counts of patent IDs and PubMed IDs
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 | getPCxrefs.count("22206")
getPCxrefs.count("FZXISNSWEXTPMF-UHFFFAOYSA-N",from="inchikey")
#a non-live record (returns NAs)
getPCxrefs.count("4644")
#a CID with many entries (tests timeout)
getPCxrefs.count("2244")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.