getExp: getExp to extract RNA expression slot from a MEE.data class...

Description Usage Arguments Value Author(s) Examples

Description

getExp is a function to easily extract RNA expression data out of a MEE.data object. By specifying geneID or ID for samples, a matrix of RNA expression data for defined genes and samples will be extract out of MEE.data object.

Usage

1
2
3
4
getExp(object, geneID, ID)

## S4 method for signature 'MEE.data'
getExp(object, geneID, ID)

Arguments

object

MEE.data object

geneID

A vector of genes' id. When specified, only these gene expressions will be output.

ID

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

Value

A matrix of gene expression values.

Author(s)

Lijing Yao (maintainer: lijingya@usc.edu)

Examples

1
2
3
4
exp <- matrix(data=c(101:110),ncol=5,dimnames=list(c("gene1","gene2"),paste0("sample",1:5)))
mee <- fetch.mee(exp=exp)
Exp <- getExp(mee, geneID = "gene1") ## get gene expression for certain genes
Exp <- getExp(mee, ID = c("sample1","sample5")) ## get gene expression for certain samples

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