getPubchemFromNsc: Get PubChem SID/CID value from an NSC using PubChem PUG API

View source: R/getPubchemFromNsc.R

getPubchemFromNscR Documentation

Get PubChem SID/CID value from an NSC using PubChem PUG API

Description

Get PubChem SID/CID value from an NSC using PubChem PUG API

Usage

getPubchemFromNsc(id, type = "cid", debug = TRUE, cachePath = NULL)

Arguments

id

an NSC ID

type

"cid" or "sid" PubChem ID types

debug

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

cachePath

path for cache files

Value

a PubChem CID/SID or NA, otherwise

Author(s)

Augustin Luna (augustin@mail.nih.gov)

Examples

getPubchemFromNsc("94600", "cid") #Should be: 24360
getPubchemFromNsc("94600", "sid") #Should be: 399733


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