getSample: getSample to extract sample information from MEE.data object.

Description Usage Arguments Value Author(s) Examples

Description

getSample is a function to easily extract sample information from MEE.data object. By specifying ID for samples, only that set of samples' informtion will be extracted. When certain columns of data need to be extracted, just specify columns names in cols option and sample information for wanted columns will be reported.

Usage

1
2
3
4
getSample(object, ID, cols)

## S4 method for signature 'MEE.data'
getSample(object, ID, cols)

Arguments

object

MEE.data object

ID

A vector of sample ID. When specified, sample informtion only for these samples will be output.

cols

A vector of column names of sampleInfo slots of MEE.data object.

Value

Sample information.

Author(s)

Lijing Yao (maintainer: lijingya@usc.edu)

Examples

1
2
3
4
5
SampleInfo <- data.frame(ID=paste0("sample",1:5),
TN=c("Tumor","Tumor","Normal","Normal","Tumor"))
mee <- fetch.mee(sample = SampleInfo)
Samples <- getSample(mee,ID = "sample2") ## get sample2's information
Samples <- getSample(mee, cols = "TN")  ## get 'TN' information for each samples

lijingya/ELMER documentation built on May 21, 2019, 6:14 a.m.