getPubchemFromChembl: Get PubChem SID/CID value from an ChEMBL ID using PubChem PUG...

View source: R/getPubchemFromChembl.R

getPubchemFromChemblR Documentation

Get PubChem SID/CID value from an ChEMBL ID using PubChem PUG API

Description

Get PubChem SID/CID value from an ChEMBL ID using PubChem PUG API

Usage

getPubchemFromChembl(id, type = c("cid", "sid"), debug = TRUE, maxTries = 3)

Arguments

id

an ChEMBL ID

type

"cid" or "sid" PubChem ID types

debug

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

maxTries

number of times to re-try query

Value

a PubChem CID/SID or NA, otherwise

Author(s)

Augustin Luna (augustin@mail.nih.gov)

Examples

getPubchemFromChembl("CHEMBL192", "cid") #Should be: 135398744


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