From 04d6ac940c8634835cb77f9c43d505ac367fd7fa Mon Sep 17 00:00:00 2001 From: ebanks Date: Mon, 23 Nov 2009 01:44:10 +0000 Subject: [PATCH] Always print out VCF header - not just when there is genotype data present. git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2114 348d0f76-0448-11de-a6fe-93d51630548a --- .../org/broadinstitute/sting/utils/genotype/vcf/VCFWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/org/broadinstitute/sting/utils/genotype/vcf/VCFWriter.java b/java/src/org/broadinstitute/sting/utils/genotype/vcf/VCFWriter.java index 7d7d173f5..34bbc0de1 100644 --- a/java/src/org/broadinstitute/sting/utils/genotype/vcf/VCFWriter.java +++ b/java/src/org/broadinstitute/sting/utils/genotype/vcf/VCFWriter.java @@ -60,8 +60,8 @@ public class VCFWriter { if (header.hasGenotypingData()) { b.append("FORMAT" + FIELD_SEPERATOR); for (String field : header.getGenotypeSamples()) b.append(field + FIELD_SEPERATOR); - mWriter.write(b.toString() + "\n"); } + mWriter.write(b.toString() + "\n"); } catch (IOException e) { throw new RuntimeException("IOException writing the VCF header", e);