getSampleLevelGeneData {MetaIntegrator} | R Documentation |
Extract gene-level data from a given data object
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
getSampleLevelGeneData(datasetObject, geneNames)
Arguments
datasetObject |
a Dataset object that is used to extract sample level data (At least, must have a |
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
sampleResults <- getSampleLevelGeneData(datasetObject=tinyMetaObject$originalData[[1]],
geneNames=c(tinyMetaObject$filterResults[[1]]$posGeneNames,
tinyMetaObject$filterResults[[1]]$negGeneNames))