Skip to content

Commit

Permalink
A minor fix to header
Browse files Browse the repository at this point in the history
  • Loading branch information
asylvz committed Sep 22, 2020
1 parent 0697288 commit 771fe74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variants.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ void print_vcf_header( FILE *fpOut, bam_info** in_bams, parameters *params)
fprintf(fpOut, "%s%s%s%s", header_info,header_filter,header_format,header_alt);

/* Contig field */
for( i = params->first_chr; i <= params->last_chr; i++)
for( i = params->first_chr; i < params->last_chr; i++)
fprintf(fpOut, "##contig=<ID=%s,length=%d>\n", params->this_sonic->chromosome_names[i], params->this_sonic->chromosome_lengths[i]);

fprintf(fpOut, "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s","#CHROM","POS","ID","REF","ALT","QUAL","FILTER","INFO","FORMAT");
Expand Down

0 comments on commit 771fe74

Please sign in to comment.