getAssay: Retrieve a bioassay

View source: R/queries.R

getAssayR Documentation

Retrieve a bioassay

Description

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

Usage

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

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

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