View source: R/combine_peaks.R
merge_peaks | R Documentation |
Utility function to combine split peaks into a single column of the peak table.
merge_peaks(peak_table, peaks, method = c("max", "sum"))
peak_table |
Peak table from |
peaks |
A vector specifying the names or indices of peaks to be merged. |
method |
Method to merge peaks. Either |
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.
A peak table similar to the input peak table, but where the specified columns are combined.
Ethan Bass
Other utility functions:
combine_peaks()
,
get_lambdas()
,
get_times()
,
reshape_chroms()
,
reshape_peaktable()
data(pk_tab)
pk_tab <- merge_peaks(peak_table = pk_tab, peaks=c("V10","V11"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.