From c857677f2a3af9da652dd6b5fc97249368e6e7d8 Mon Sep 17 00:00:00 2001 From: Petr Danecek Date: Fri, 1 Mar 2013 13:14:32 +0000 Subject: [PATCH] bcftools view: always output the header, even when no other arguments are given --- bam_tview.c | 2 +- bcftools/call1.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bam_tview.c b/bam_tview.c index ede6b0c..06d5e33 100644 --- a/bam_tview.c +++ b/bam_tview.c @@ -284,9 +284,9 @@ static void error(const char *format, ...) fprintf(stderr, "\n"); fprintf(stderr, "Usage: bamtk tview [options] [ref.fasta]\n"); fprintf(stderr, "Options:\n"); + fprintf(stderr, " -d display output as (H)tml or (C)urses or (T)ext \n"); fprintf(stderr, " -p chr:pos go directly to this position\n"); fprintf(stderr, " -s STR display only reads from this sample or group\n"); - fprintf(stderr, " -d display (H)tml or (C)urses or (T)ext \n"); fprintf(stderr, "\n\n"); } else diff --git a/bcftools/call1.c b/bcftools/call1.c index 14a1570..5f32c34 100644 --- a/bcftools/call1.c +++ b/bcftools/call1.c @@ -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) { -- 2.39.2