filterFeatures: filterFeatures

Description Usage Arguments Value Examples

View source: R/fun-protein-profiles-significance.R

Description

Filter out proteins exceeding a certain fraction of missing data points.

Usage

1
filterFeatures(values, maxNAfraction, verbose=FALSE, plot=FALSE, ...)

Arguments

values

Numeric matrix containing the data to analyze.

maxNAfraction

Numeric threshold specifying the maximum fraction of data points that can be missing (‘NA’) to still keep the protein.

verbose

Logical indicating whether to print the number of proteins before and after filtering (default: FALSE).

plot

Logical indicationg whether to plot a diagnostic plot showing the distribution of the fraction of missing data points associated with the proteins (default: FALSE).

...

Arguments passed to the '‘plot’' method.

Value

Numeric matrix with the same structure as ‘values’, with elements not matching the filter criteria removed.

Examples

1
2
3
data(ips_sample)

ratios_filtered <- filterFeatures(ratios, 0.2, verbose=TRUE)

proteinProfiles documentation built on Nov. 8, 2020, 7:46 p.m.