UpdateCid: Get "Preferred Compound" of "Non-live" compounds in PubChem

View source: R/api_pubchem.R

UpdateCidR Documentation

Get "Preferred Compound" of "Non-live" compounds in PubChem

Description

Fuction UpdateCid takes CIDs as input. If inputted compounds was labeled as "Non-live" in PubChem, the CID of the "preferred Compound" will be returned. If the inputted CID is still "live" in PubChem, NA will be returned.

Usage

UpdateCid(cids)

Arguments

cids

a vector contains the CIDs of drugs on which test will be done.

Value

a data frame contains 2 columns:

  • old_cid The inputted CIDs.

  • new_cid If the tested compound is "Non-live", it is the CID of "preferred compound". If the tested compound is still "live", it is NA.

Author(s)

Jing Tang jing.tang@helsinki.fi Shuyu Zheng shuyu.zheng@helsinki.fi

Examples

res <- UpdateCid(1:10)

DrugComb/TidyComb documentation built on June 22, 2022, 2:49 a.m.