Learn R Programming

rpubchem (version 1.5.10)

get.aid.by.cid: Get Assay ID Based on Compound Activity

Description

This function allows you to identify PubChem assays in which a compound, specified by CID, has been tested in. The method uses the PubChem Power User Gateway (PUG) and as a result can be slow.

The function can be used to identify assays in which the CID is active, inactive or simply the assays in which it has been tested.

Usage

get.aid.by.cid(cid, type="tested", quiet=TRUE)

Arguments

cid
A single compound ID
type
What type of query should be performed. Valid values are 'active', 'inactive', 'tested'
quiet
If FALSE, output is verbose

Value

If the type argument was one of 'active', 'inactive', or 'tested' a numeric vector of assay IDs.In case an invalid CID was specified or the query failed, NULL is returned.

See Also

get.assay