Learn R Programming

pRoloc (version 1.12.4)

filterZeroCols: Remove 0 columns/rows

Description

Removes all assay data columns/rows that are composed of only 0, i.e. have a colSum/rowSum of 0.

Usage

filterZeroCols(object, verbose = TRUE)
filterZeroRows(object, verbose = TRUE)

Arguments

object
A MSnSet object.
verbose
Print a message with the number of filtered out columns/row (if any).

Value

An MSnSet.

Examples

Run this code
library("pRolocdata")
data(andy2011goCC)
any(colSums(exprs(andy2011goCC)) == 0)
exprs(andy2011goCC)[, 1:5] <- 0
ncol(andy2011goCC)
ncol(filterZeroCols(andy2011goCC))

Run the code above in your browser using DataLab