View source: R/combineDuplicates.R
mergeProbesForGenes | R Documentation |
Merges all probes belonging to the same gene by identifying duplicate row names in a data matrix.
mergeProbesForGenes(dat,
method = c("mean", "max", "min", "median"))
dat |
A numeric matrix of gene expression values for all analyzed genes. Here, each row corresponds to one probe, and each column corresponds to one sample. The rows must be named with the gene names and may contain duplicates if multiple probes correspond to the same gene. |
method |
The method which should be used to merge probes entries in |
A matrix of the same structure as dat
, but possibly with fewer rows if probes were merged.
geneSetAnalysis
dat <- matrix(1:6, nrow=3, ncol=2)
rownames(dat) <- c("g1", "g2", "g1")
newDat <- mergeProbesForGenes(dat, method = "mean")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.