getPubchemFromName: Get PubChem CID value from a name using PubChem PUG API

View source: R/getPubchemFromName.R

getPubchemFromNameR Documentation

Get PubChem CID value from a name using PubChem PUG API

Description

Get PubChem CID value from a name using PubChem PUG API

Usage

getPubchemFromName(id, forceFirst = FALSE, debug = TRUE, cachePath = NULL)

Arguments

id

a name

forceFirst

a boolean, if multiple entries are returned grab the first?

debug

a boolean, print debug information? (Default: TRUE)

cachePath

path for cache files

Value

a PubChem CID or NA, otherwise

Author(s)

Augustin Luna (augustin@mail.nih.gov)

Examples

getPubchemFromNsc("trichostatin a") #Should be: 444732
getPubchemFromNsc("aspirin") #Should be: 2244


cannin/rcellminerPubchem documentation built on Nov. 24, 2024, 4:45 p.m.