mappingFunctions {GenomicRanges} | R Documentation |
These mapping functions are used in the mapFun
argument to
makeSummarizedExperimentFromExpressionSet.
naiveRangeMapper(from) probeRangeMapper(from) geneRangeMapper(txDbPackage, key = "ENTREZID")
from |
An ExpressionSet object. |
txDbPackage |
A character string with the Transcript Database to use for the mapping. |
key |
A character string with the Gene key to use for the mapping. |
A GRanges object, with the rownames
corresponding to the
featureNames of the ExpressionSet object.
library(Biobase) data(sample.ExpressionSet, package = "Biobase") # using the naive coercion makeSummarizedExperimentFromExpressionSet(sample.ExpressionSet) # using probe range mapper makeSummarizedExperimentFromExpressionSet(sample.ExpressionSet, probeRangeMapper) # using the gene range mapper makeSummarizedExperimentFromExpressionSet(sample.ExpressionSet, geneRangeMapper("TxDb.Hsapiens.UCSC.hg19.knownGene"))