keep_top_peaks: Filter peaks based on a given criterion.

View source: R/keep_top_peaks.R

keep_top_peaksR Documentation

Filter peaks based on a given criterion.

Description

Keeps n peaks by cluster and by method. If there are ties, more than n peaks can be selected ( see top_n for more information).

Usage

keep_top_peaks(selection_criterion, n = 1, export_filtered_peaks = TRUE)

Arguments

selection_criterion

"intensity" or "degree" or "both".

n

Keep only n.top peaks by clusters if intensity or degree filters.

export_filtered_peaks

Copy peaks files corresponding to the peaks remaining after filtering in a new folder.


eMetaboHUB/MS-CleanR documentation built on Jan. 3, 2024, 8:55 p.m.