From 2cc5c6df2afcd68a3e6f9668827f490b029d24e0 Mon Sep 17 00:00:00 2001 From: Tom White Date: Mon, 21 Jan 2019 14:27:05 +0000 Subject: [PATCH] Allow VCF index creation for stream output. --- .../variantcontext/writer/VariantContextWriterBuilder.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/htsjdk/variant/variantcontext/writer/VariantContextWriterBuilder.java b/src/main/java/htsjdk/variant/variantcontext/writer/VariantContextWriterBuilder.java index d809d3aff0..a02703e50d 100644 --- a/src/main/java/htsjdk/variant/variantcontext/writer/VariantContextWriterBuilder.java +++ b/src/main/java/htsjdk/variant/variantcontext/writer/VariantContextWriterBuilder.java @@ -476,9 +476,6 @@ else if (STREAM_TYPES.contains(this.outType)) writer = createBCFWriter(outPath, outStreamFromFile); break; case VCF_STREAM: - if (options.contains(Options.INDEX_ON_THE_FLY)) - throw new IllegalArgumentException("VCF index creation not supported for stream output."); - writer = createVCFWriter(null, outStreamFromFile); break; case BCF_STREAM: