Skip to content

Commit a508dc3

Browse files
committed
Fix tsv convert bug
tsv_setter_chrom() expects a BCF header in its `usr` argument.
1 parent 0e2b777 commit a508dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vcfconvert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ static void gensample_to_vcf(args_t *args)
426426
if ( args->gen_3N6 )
427427
{
428428
tsv = tsv_init("CHROM,CHROM_POS_REF_ALT,ID,POS,REF_ALT,GT_GP");
429-
tsv_register(tsv, "CHROM", tsv_setter_chrom, args);
429+
tsv_register(tsv, "CHROM", tsv_setter_chrom, args->header);
430430
}
431431
else
432432
tsv = tsv_init("CHROM_POS_REF_ALT,ID,POS,REF_ALT,GT_GP");

0 commit comments

Comments
 (0)