filterZeroCols | R Documentation |
Removes all assay data columns/rows that are composed of only 0,
i.e. have a colSum
/rowSum
of 0.
filterZeroCols(object, verbose = TRUE)
filterZeroRows(object, verbose = TRUE)
object |
A |
verbose |
Print a message with the number of filtered out columns/row (if any). |
An MSnSet
.
Laurent Gatto
library("pRolocdata")
data(andy2011goCC)
any(colSums(exprs(andy2011goCC)) == 0)
exprs(andy2011goCC)[, 1:5] <- 0
ncol(andy2011goCC)
ncol(filterZeroCols(andy2011goCC))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.