getSamples: Get samples

Description Usage Arguments Value Author(s) See Also Examples

Description

Fetch a subset of samples from a given data structure

Usage

1
getSamples(x, y, ...)

Arguments

x

the matrix of sample data to subset. If x is a vector it is interpreted as a matrix. x can also be of class "ExpressionSet".

y

which sample(s) to use as data. Can be a vector of characters matching sample names, integers indicating which samples to choose, or a mixture of the two. If not supplied, all samples will be used.

...

Arguments to be passed to methods (see getSamples-methods):

element

which element of AssayData to use for a given ExpressionSet input (default is "exprs")

order

vector of characters, specifying on which column(s) to order the sample data. If NULL (default), the data will be returned without ordering enforced.

\dots

other arguments passed are not handled at this time.

Value

Returns a matrix of values corresponding to a subset of samples from the data supplied, where columns correspond to samples. Function halts if no samples to return.

Author(s)

Reid F. Thompson (rthompso@aecom.yu.edu)

See Also

getSamples-methods

Examples

1
2
3
data(sample.ExpressionSet)
se.ABC <- getSamples(sample.ExpressionSet, c("A", "B", "C"), element="se.exprs")
se.ABC[1:10,]

HELP documentation built on Nov. 8, 2020, 11:08 p.m.