if a valid peaks interval set is passed (i.e. has 'chrom','start','end'), but lacking peak_name column - call peak_names() internally to solve this issue, instead of aborting:
peak_set = fread('path/to/peak/file.txt')
mcatac_obj <- mcc_to_mcatac(mcc, peaks = peak_set, metadata = mc_md)
Error in `mcc_to_mcatac()`:
! The `peaks` must have a column called peak_name
if a valid peaks interval set is passed (i.e. has
'chrom','start','end'
), but lackingpeak_name
column - callpeak_names()
internally to solve this issue, instead of aborting:Solution:
if(!has_name(peak_set)){ peak_set$peak_name = peak_names(peak_set) }