Utility function to combine split peaks into a single column of the peak table.
Usage
merge_peaks(peak_table, peaks, method = c("max", "sum"))
Arguments
- peak_table
Peak table from
get_peaktable
.- peaks
A vector specifying the names or indices of peaks to be merged.
- method
Method to merge peaks. Either
max
to select the largest peak from each sample orsum
to sum the peaks together.