activeTargets {bioassayR} | R Documentation |
Returns a data.frame
of the targets, which a given small molecule (specified by cid) shows activity against. For each target, a single row shows the total number of distinct screens it participated in, and the fraction of those in which it exhibits activity.
activeTargets(database, cid)
database |
A |
cid |
A string or integer containing a cid referring to a small molecule. |
A data.frame
where the row names represent each target the specified compound shows activity against, and the columns show the total screens and the fraction in which the compound was active.
Tyler Backman
## connect to a test database extdata_dir <- system.file("extdata", package="bioassayR") sampleDatabasePath <- file.path(extdata_dir, "sampleDatabase.sqlite") sampleDB <- connectBioassayDB(sampleDatabasePath) ## get targets that compound 2244 shows activity against myTargets <- row.names(activeTargets(sampleDB, "2244")) ## disconnect from database disconnectBioassayDB(sampleDB)