getAssay: Retrieve a bioassay

Description Usage Arguments Value Author(s) Examples

View source: R/queries.R

Description

Retrieves a bioassay as a bioassay object from a bioassayR database by identifier.

Usage

1
getAssay(database, aid)

Arguments

database

A BioassayDB database to query.

aid

The assay identifier string (aid), matching an aid for an assay loaded into the database.

Value

A bioassay object containing the requested assay.

Author(s)

Tyler Backman

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## connect to a test database
extdata_dir <- system.file("extdata", package="bioassayR")
sampleDatabasePath <- file.path(extdata_dir, "sampleDatabase.sqlite")
sampleDB <- connectBioassayDB(sampleDatabasePath)

## retrieve an assay
assay <- getAssay(sampleDB, "673509")
assay

## disconnect from sample database
disconnectBioassayDB(sampleDB)

bioassayR documentation built on March 1, 2021, 2 a.m.