getAssays: Retrieve multiple bioassays from a database

View source: R/queries.R

getAssaysR Documentation

Retrieve multiple bioassays from a database

Description

Retrieves a list of aids as a single bioassaySet matrix object

Usage

getAssays(database, aids)

Arguments

database

A BioassayDB database to query.

aids

One or more assay identifier strings (aid), matching aid(s) for assays loaded into the database.

Value

A bioassaySet object containing data from the specified assays.

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 three assays
assays <- getAssays(sampleDB, c("673509","103","105"))
assays

## disconnect from sample database
disconnectBioassayDB(sampleDB)

girke-lab/bioassayR documentation built on Oct. 22, 2024, 8:13 a.m.