filterZeroCols: Remove 0 columns/rows

Description Usage Arguments Value Author(s) Examples

View source: R/MSnSet.R

Description

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

Usage

1
2
3
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.

Author(s)

Laurent Gatto

Examples

1
2
3
4
5
6
library("pRolocdata")
data(andy2011goCC)
any(colSums(exprs(andy2011goCC)) == 0)
exprs(andy2011goCC)[, 1:5] <- 0
ncol(andy2011goCC)
ncol(filterZeroCols(andy2011goCC))

pRoloc documentation built on Nov. 8, 2020, 6:26 p.m.