getBioassaySetByCids: Create 'bioassaySet' sparse matrix object with activity data...

View source: R/queries.R

getBioassaySetByCidsR Documentation

Create bioassaySet sparse matrix object with activity data only for specified compounds

Description

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.

Usage

getBioassaySetByCids(database, cids)

Arguments

database

A BioassayDB database to query.

cids

One or more compounds IDs of interest.

Value

A bioassaySet object containing data from the specified cids.

Author(s)

Tyler William H Backman

Examples

## 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)

TylerBackman/bioassayR documentation built on Oct. 26, 2024, 7:09 p.m.