Description Usage Arguments Details Value Author(s) See Also Examples
Condense the columns of a matrix or DGEList object so that counts are summed over technical replicate samples.
1 2 3 4 5 6 | ## Default S3 method:
sumTechReps(x, ID=colnames(x), ...)
## S3 method for class 'DGEList'
sumTechReps(x, ID=colnames(x), ...)
## S3 method for class 'SummarizedExperiment'
sumTechReps(x, ID, ...)
|
x |
a numeric matrix or |
ID |
sample identifier. |
... |
other arguments are not currently used. |
A new matrix or DGEList
object is computed in which the counts for technical replicate samples are replaced by their sums.
A data object of the same class as x
with a column for each unique value of ID
.
For a SummarizedExperiment
object, it is converted into a DGEList
object.
Columns are in the same order as the ID values first occur in the ID vector.
Gordon Smyth and Yifang Hu
1 2 3 | x <- matrix(rpois(8*3,lambda=5),8,3)
colnames(x) <- c("a","a","b")
sumTechReps(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.