filterFeatures {proteinProfiles} | R Documentation |
Filter out proteins exceeding a certain fraction of missing data points.
filterFeatures(values, maxNAfraction, verbose=FALSE, plot=FALSE, ...)
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. |
Numeric matrix with the same structure as ‘values’, with elements not matching the filter criteria removed.
data(ips_sample) ratios_filtered <- filterFeatures(ratios, 0.2, verbose=TRUE)