diff --git a/vcfconvert.c b/vcfconvert.c index 7b14d43c..c46d9c72 100644 --- a/vcfconvert.c +++ b/vcfconvert.c @@ -489,6 +489,7 @@ static void gensample_to_vcf(args_t *args) *se = 0; bcf_hdr_add_sample(args->header,samples[i]); } + bcf_hdr_add_sample(args->header,NULL); for (i=0; iref, chr, pos-1, pos+win_size, &fai_ref_len); + if ( !fai_ref ) + { + *nrep = 0; + *nlen = 0; + return alt_len - ref_len; + } for (i=0; i96 ) fai_ref[i] -= 32;