filterFeatures {proteinProfiles}R Documentation

filterFeatures

Description

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

Usage


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


data(ips_sample)

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


[Package proteinProfiles version 1.30.0 Index]