]> git.donarmstrong.com Git - samtools.git/blobdiff - bcftools/call1.c
bcftools view: always output the header, even when no other arguments are given
[samtools.git] / bcftools / call1.c
index 14a1570a13d6820152359e583c9c69d42d1021dd..5f32c34bf1850b840c5f250c0ad0c690fe1a2f88 100644 (file)
@@ -436,7 +436,7 @@ int bcfview(int argc, char *argv[])
                        vc.sublist = calloc(vc.n_sub, sizeof(int));
                        hout = bcf_hdr_subsam(hin, vc.n_sub, vc.subsam, vc.sublist);
                }
-               if (vc.flag & VC_CALL) write_header(hout);
+               write_header(hout); // always print the header
                vcf_hdr_write(bout, hout);
        }
        if (vc.flag & VC_CALL) {