spots2genes {StabPerf} | R Documentation |
Combines spots into 'genes'.
Description
Takes an expression matrix and combines spots into genes
(column-wise).
Usage
spots2genes(data, spots, middle=mean.middle, ...)
Arguments
data |
a vector or matrix/data.frame (with spots in rows, samples in columns) |
spots |
the gene names corresponding to the spots in the rows of the data |
middle |
some measure of central tendency (e.g. mean) used to combine the |
... |
arguments passed to middle. |
Details
Takes an expression matrix and combines spots into genes
(column-wise). In effect, the matrix of expression values will have rows that correspond to a single gene.
Value
data |
a data.frame with the spots combined. |
See Also
mean.middle
, tapply
Examples
data <- loadData("data/dataset.RData")
# combine the rows with the same refseq
combined <- spots2genes(data$x, data$refseq)
[Package
StabPerf version 0.5
Index]