getBioassaySetByCids | R Documentation |
bioassaySet
sparse matrix object with activity data only for specified compounds
Takes a list of compounds, and creates a bioassaySet
sparse matrix object with the activity data
for these compounds only, not including activity data from other compounds in the same assays.
getBioassaySetByCids(database, cids)
database |
A |
cids |
One or more compounds IDs of interest. |
A bioassaySet
object containing data from the specified cids.
Tyler William H Backman
## connect to a test database
extdata_dir <- system.file("extdata", package="bioassayR")
sampleDatabasePath <- file.path(extdata_dir, "sampleDatabase.sqlite")
sampleDB <- connectBioassayDB(sampleDatabasePath)
## retrieve activity data on 3 compounds
activitySet <- getBioassaySetByCids(sampleDB, c("2244","3715","237"))
activitySet
## disconnect from sample database
disconnectBioassayDB(sampleDB)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.