filterByCPM.matrix | R Documentation |
Filter lowly expressed genes by CPM
## S3 method for class 'matrix'
filterByCPM(obj, minCPM = 1, minCount = 1, ...)
obj |
A matrix |
minCPM |
Numeric, the minimum CPM accepted as expressed in one sample |
minCount |
Integer, how many samples must have CPM larger than |
... |
Not used |
A logical vector of the same length as the row count of the matrix. TRUE
means the gene is reasonably expressed, and FALSE
means the gene is lowly expressed and should be filtered (removed)
set.seed(1887)
mat <- rbind(matrix(rbinom(125, 5, 0.25), nrow=25), rep(0, 5))
filterByCPM(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.