Given a list of peaks to ignore, this will remove the given peaks from the .code ignore_peaks and .code ignore_pmat slots. Note that the matrix and peaks would be reordered.
Arguments
- atac
an ScPeaks or McPeaks object
- ig_peaks
a PeakIntervals object, or vector of peak names to ignore
- reset
rest the current ignore policy if exists. When set to
TRUE
, the current ignore policy will be removed, otherwise the new ignore policy will be appended to the current one.
Examples
if (FALSE) {
max_peak_length <= 1000
peak_stats <- get_peak_coverage_stats(atac_sc, scale = 100)
too_long_peaks <- peak_stats$peak_name[peak_stats$len > max_peak_length]
atac_sc_filtered <- atac_ignore_peaks(atac_sc, too_long_peaks)
}