Skip to content

Commit

Permalink
site depth bug (#7910)
Browse files Browse the repository at this point in the history
  • Loading branch information
tedsharpe committed Jun 22, 2022
1 parent 6170e83 commit e81a361
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ public Writer<SiteDepth> makeSink( final GATKPath path,
final SAMSequenceDictionary dict,
final List<String> 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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ public FeatureOutputStream<SiteDepth> makeSink( final GATKPath path,
final SAMSequenceDictionary dict,
final List<String> 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,
Expand Down

0 comments on commit e81a361

Please sign in to comment.