Description Usage Arguments Value Author(s) See Also Examples
Queries a BioassayDB
database and returns the target selectivity of the specified cids.
1 2 | targetSelectivity(database, cids, scoring = "total",
category=FALSE, multiTarget="keepOne")
|
database |
A |
cids |
A string or integer vector containing query cids referring to a small molecules. |
scoring |
Must be one of two optional scoring methods "total" or "fraction". Fraction returns the target selectivity for each compound as the fraction of screened distinct targets that showed activity in at least one assay. Total returns the total number of active distinct targets for each compound, and does not consider inactive targets in the calculation. If fractional activity is requested, active values take precedence over inactives: if a target is both active and inactive in different assays it will be regarded as active. |
category |
Include only once in selectivity counts any targets which share a common annotation of this category
(as used by the |
multiTarget |
Decides how selectivity is counted with regard to multi-target assays. If |
Returns an numeric
vector containing the target selectivity for each query compound. Returned entires are named by their corresponding cid.
Tyler Backman
translateTargetId
loadIdMapping
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## connect to a test database
extdata_dir <- system.file("extdata", package="bioassayR")
sampleDatabasePath <- file.path(extdata_dir, "sampleDatabase.sqlite")
sampleDB <- connectBioassayDB(sampleDatabasePath)
## make a vector with compounds of interest
compoundsOfInterest <- c(2244, 2662, 3033)
## get "total" active targets for each compound of interest
targetSelectivity(sampleDB, compoundsOfInterest, scoring="total")
## get fraction of active targets for each compound of interest
targetSelectivity(sampleDB, compoundsOfInterest, scoring="fraction")
## disconnect from database
disconnectBioassayDB(sampleDB)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.