getSampleLevelGeneData: Extract gene-level data from a given data object

Description Usage Arguments Details Value Author(s) Examples

View source: R/getSampleLevelGeneData.R

Description

Given a datsetObject, and a set of target genes, this function will summarize probe-level data to gene-level data for the target genes. Returns a data frame with only the genes of interest, for each sample in the dataset.

Usage

1
getSampleLevelGeneData(datasetObject, geneNames)

Arguments

datasetObject

a Dataset object that is used to extract sample level data (At least, must have a $expr of probe-level data, and $keys of probe:gene mappings).

geneNames

A vector of geneNames

Details

Summarizes probe-level data to gene-level data, using the mean of the probes, according to the probe:gene mapping in the $keys item in the dataset object. This is done only for the genes in the filter object.

Value

Returns a data frame with expression levels of only the genes of interest, for each sample in the dataset. Mostly used internally, but has been exposed to the user to allow advanced functionality on external datasets if desired.

Author(s)

Timothy E. Sweeney, Winston A. Haynes

Examples

1
2
3
sampleResults <- getSampleLevelGeneData(datasetObject=tinyMetaObject$originalData[[1]], 
geneNames=c(tinyMetaObject$filterResults[[1]]$posGeneNames, 
  tinyMetaObject$filterResults[[1]]$negGeneNames))

MetaIntegrator documentation built on March 26, 2020, 6:29 p.m.