Error with reduce in CallPeaks function if no peaks are called #614
zrcjessica
started this conversation in
Ideas
Replies: 1 comment
-
Thanks for reporting, it would make sense to do a check on the number of peaks returned for each cell type before trying to combine them to avoid this error. We'll try to add this in a future release |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using
CallPeaks
to call cell type-specific peaks and have bothgroup.by
andidents
arguments set. E.g.:In my example, no peaks were found for the cell type I was testing. Because the default value for
combine.peaks
isTRUE
, the function still attempted to callreduce
on the GRanges object that results from the peak calling. This leads to an error message:This could be fixed by setting
combine.peaks
toFALSE
; however, I wonder if it would be helpful for the function to automatically recognize when the GRanges object is empty and handle the error instead of crashing the job.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions