From e81a361ceb35ea0d9874bdc5671070e615aeff9e Mon Sep 17 00:00:00 2001 From: tedsharpe Date: Wed, 22 Jun 2022 11:50:44 -0400 Subject: [PATCH] site depth bug (#7910) --- .../hellbender/utils/codecs/SiteDepthBCICodec.java | 5 ----- .../hellbender/utils/codecs/SiteDepthCodec.java | 5 ----- 2 files changed, 10 deletions(-) diff --git a/src/main/java/org/broadinstitute/hellbender/utils/codecs/SiteDepthBCICodec.java b/src/main/java/org/broadinstitute/hellbender/utils/codecs/SiteDepthBCICodec.java index 37895b00384..42426134a81 100644 --- a/src/main/java/org/broadinstitute/hellbender/utils/codecs/SiteDepthBCICodec.java +++ b/src/main/java/org/broadinstitute/hellbender/utils/codecs/SiteDepthBCICodec.java @@ -47,11 +47,6 @@ public Writer makeSink( final GATKPath path, final SAMSequenceDictionary dict, final List sampleNames, final int compressionLevel ) { - if ( sampleNames.size() != 1 ) { - throw new UserException("SiteDepth records do not encode their sample, and must all " + - "refer to a single sample, but the list of sample names is of " + - "size=" + sampleNames.size()); - } final String className = SiteDepth.class.getSimpleName(); return new Writer<>(path, new SVFeaturesHeader(className, SiteDepth.BCI_VERSION, dict, sampleNames), diff --git a/src/main/java/org/broadinstitute/hellbender/utils/codecs/SiteDepthCodec.java b/src/main/java/org/broadinstitute/hellbender/utils/codecs/SiteDepthCodec.java index 2500e98f50a..09bb9ba216b 100644 --- a/src/main/java/org/broadinstitute/hellbender/utils/codecs/SiteDepthCodec.java +++ b/src/main/java/org/broadinstitute/hellbender/utils/codecs/SiteDepthCodec.java @@ -58,11 +58,6 @@ public FeatureOutputStream makeSink( final GATKPath path, final SAMSequenceDictionary dict, final List sampleNames, final int compressionLevel ) { - if ( sampleNames.size() != 1 ) { - throw new UserException("SiteDepth records do not encode their sample, and must all " + - "refer to a single sample, but the list of sample names is of " + - "size=" + sampleNames.size()); - } return new FeatureOutputStream<>(path, getTabixFormat(), SiteDepthCodec::encode,