Learn R Programming

ABSSeq (version 1.8.0)

counts: Accessors for the 'counts' slot of a ABSDataSet object.

Description

Accessors for the 'counts' slot of a ABSDataSet object, return a matrix

Usage

"counts"(object,norm=FALSE)
"counts"(object)<-value

Arguments

object
a ABSDataSet object.
norm
logical indicating whether or not to normalize the counts before returning
value
an numeric matrix

Details

The counts slot holds the count data as a matrix of non-negative integer count values, rows and columns for genes and samples, respectively.

See Also

sFactors, normalFactors

Examples

Run this code
obj <- ABSDataSet(counts=simuN5$counts, groups=factor(simuN5$groups))
head(counts(obj))
counts(obj) <- matrix(1:50,nrow=5,ncol=10)
head(counts(obj))

Run the code above in your browser using DataLab