getAssay {bioassayR} | R 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)

[Package bioassayR version 1.30.0 Index]