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
maxto select the largest peak from each sample orsumto sum the peaks together.
Details
Merges the specified peaks in peak table, by selecting the largest value from
each column if method is "max". If method is
"sum", merges peak by summing their values.
See also
Other utility functions:
combine_peaks(),
get_lambdas(),
get_times(),
reshape_chroms(),
reshape_peaktable()
