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,