samtools / bcftools

This is the official development repository for BCFtools. See installation instructions and other documentation here http://samtools.github.io/bcftools/howtos/install.html
http://samtools.github.io/bcftools/
Other
649 stars 240 forks source link

bcftools norm don't move some variants to the far left. #2050

Closed tanger-code closed 9 months ago

tanger-code commented 9 months ago

Hi. I am using bcftools norm command to norm my VCF, but something error happen.

If the vcf file contains the two variants bellow: image

Then I use bcftools norm to norm them, and get the following results: image

But in fact the del variant can keep moving to the left, like this: image

Are there some ways to do this?

pd3 commented 9 months ago

Alas, no. The normalization does not take into account modifications introduced by upstream variants. Although this seems desirable at first glance, it becomes less clear when one considers variants in trans.