From 2fcdf894eb3144111021f06e47c60009ccea9d38 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Fri, 12 Jun 2020 15:42:50 -0400 Subject: [PATCH] FilterIntervals now filters out any singleton intervals (#6559) * FilterIntervals now filters out any singleton intervals, that have no other intervals on their contigs. --- .../tools/copynumber/FilterIntervals.java | 26 ++++++-- .../PostprocessGermlineCNVCalls.java | 25 ++++++-- .../CopyNumberArgumentValidationUtils.java | 5 +- .../FilterIntervalsIntegrationTest.java | 64 +++++++++++-------- 4 files changed, 81 insertions(+), 39 deletions(-) diff --git a/src/main/java/org/broadinstitute/hellbender/tools/copynumber/FilterIntervals.java b/src/main/java/org/broadinstitute/hellbender/tools/copynumber/FilterIntervals.java index dc9ec062100..f9341c0c4fb 100644 --- a/src/main/java/org/broadinstitute/hellbender/tools/copynumber/FilterIntervals.java +++ b/src/main/java/org/broadinstitute/hellbender/tools/copynumber/FilterIntervals.java @@ -40,15 +40,16 @@ * {@link CollectReadCounts}, outputs a filtered Picard interval list. The set intersection of intervals from the * specified intervals, the annotated intervals, and the first count file will be taken as the initial set of intervals * on which to perform filtering. Parameters for filtering based on the annotations and counts can be adjusted. - * Annotation-based filters will be applied first, followed by count-based filters. The result may be passed via -L to - * other tools (e.g., {@link DetermineGermlineContigPloidy} and {@link GermlineCNVCaller}) to mask intervals from - * analysis. + * Annotation-based filters will be applied first, followed by count-based filters. In the end, any singleton intervals + * (i.e., those being by themselves on their corresponding contigs) found after applying other filters will be filtered + * out. The result may be passed via -L to other tools (e.g., {@link DetermineGermlineContigPloidy} and + * {@link GermlineCNVCaller}) to mask intervals from analysis. * *

Inputs

* *