filterByCPM.EdgeObject | R Documentation |
Filter EdgeObj and remove lowly expressed genes
## S3 method for class 'EdgeObject'
filterByCPM(obj, minCPM = 1, minCount = minGroupCount(obj), ...)
obj |
An EdgeObject object |
minCPM |
Minimal CPM value, see descriptions below |
minCount |
Minimal count of samples in which the CPM value is no less
than |
... |
Not used The filter is recommended by the authors of the The filter removes genes that are less expressed than 1 copy per million
reads (cpm) in at least |
myFac <- gl(3,2)
set.seed(1234)
myMat <- matrix(rpois(1200,100), nrow=200, ncol=6)
myMat[1:3,] <- 0
myEdgeObj <- EdgeObject(myMat,
DesignContrast(designMatrix=model.matrix(~myFac),
contrastMatrix=matrix(c(0,1,0), ncol=1), groups=myFac),
fData=data.frame(GeneSymbol=sprintf("Gene%d", 1:200)))
myFilteredEdgeObj <- filterByCPM(myEdgeObj)
dim(counts(myEdgeObj))
dim(counts(myFilteredEdgeObj))
## show unfiltered count matrix
dim(counts(myFilteredEdgeObj, filter=FALSE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.