assaySetTargets {bioassayR} | R Documentation

## Return targets of assays in a `bioassaySet` object

### Description

This takes a `bioassaySet` of multiple assays and returns a vector of the targets of each, with the assay identifiers themselves (aids) as names. If a single assay contains multiple targets, these will all be listed.

### Usage

    assaySetTargets(assays)

### Arguments

`assays` | A `bioassaySet` object with data from multiple assays, some of which may share a common target.

### Value

A `character` vector of the targets of each, with the assay identifiers themselves (aids) as names

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

    ## get the targets for these assays
    myTargets <- assaySetTargets(assays)
    myTargets

    ## disconnect from sample database
    disconnectBioassayDB(sampleDB)

[Package bioassayR version 1.32.1 Index]