tskit icon indicating copy to clipboard operation
tskit copied to clipboard

write_vcf should use the reference sequence for REF, if present

Open hyanwong opened this issue 1 year ago • 0 comments

At the moment, the write_vcf() function simply outputs the 0th allele from variant.alleles (i.e. the ancestral state) as the REF. If we have defined a reference sequence, then presumably we should be using the actual REF instead, if it exists.

Either way, the behaviour should be documented.

hyanwong avatar Feb 07 '24 09:02 hyanwong