edgeR (version 3.14.0)

sumTechReps: Sum Over Replicate Samples

Description

Condense the columns of a matrix or DGEList object so that counts are summed over technical replicate samples.

Usage

"sumTechReps"(x, ID=colnames(x), ...) "sumTechReps"(x, ID=colnames(x), ...)

Arguments

x
a numeric matrix or DGEList object.
ID
sample identifier.
...
other arguments are not currently used.

Value

A data object of the same class as x with a column for each unique value of ID. Columns are in the same order as the ID values first occur in the ID vector.

Details

A new matrix or DGEList object is computed in which the counts for technical replicate samples are replaced by their sums.

See Also

rowsum.

Examples

Run this code
x <- matrix(rpois(8*3,lambda=5),8,3)
colnames(x) <- c("a","a","b")
sumTechReps(x)

Run the code above in your browser using DataCamp Workspace