From 8ac73b5e477798744408d2019ea6544cd2f1cffc Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Tue, 21 Apr 2020 12:37:22 -0400 Subject: [PATCH 1/2] FilterIntervals now filters out any singleton intervals, that have no other intervals on their contigs --- .../tools/copynumber/FilterIntervals.java | 20 +++++-- .../PostprocessGermlineCNVCalls.java | 30 ++++++++-- .../CopyNumberArgumentValidationUtils.java | 5 +- .../FilterIntervalsIntegrationTest.java | 55 +++++++++++-------- 4 files changed, 75 insertions(+), 35 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..2edebd13cba 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

* *