getDrugs {mixlow}R Documentation

Retrieve a vector of drug names from data

Description

Convenience function called on output from prepareData or readDataFile to obtain a vector of drug names.

Usage

getDrugs(data, trays=NULL, cellLines=NULL)

Arguments

data A list obtained from prepareData or readDataFile functions.
trays A vector of tray names. If NULL, drugs will not be subset by trays.
cellLines A vector of cell line names. If NULL, drugs will not be subset by cell lines.

Details

A data file may contain experimental results for multiple drugs. If so, slices of the vector returned from getDrugs can be used as an argument to the prepareData function in order to select a subset of the data.

Value

A vector of strings indicating which drugs are contained in the input data object.

Author(s)

John Boik jcboik@stanford.edu

See Also

getTrays, getCellLines

Examples

# mixlowData data object is obtained using the prepareData function
data("mixlowData")
drugs <- getDrugs(mixlowData)

[Package mixlow version 0.01.1 Index]