You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure about the bcftools convention on whether you should output valid VCFs from each command, or whether you can rely on users running sort. It's in your instructions but people will forget and leave it out (I did!) so I think it's best to output valid VCFs by default
Perhaps you could add an option to not sort, for efficiency if people have sort later in their pipelines
davmlaw
changed the title
Liftover should sort output VCF
Liftover should probably sort output VCF
May 2, 2024
BCFtools/liftover is designed as a BCFtools plugin which processes each VCF record independently so this would require a large change in the code. One possibility would be to implement in BCFtools the option to sort the output of a plugin but this would need to be a change within the BCFtools repository. I will change the examples when you run bcftools +liftover -h to reflect the need to sort
Thanks for the tool, it's extremely fast and seems to work well so far (currently evaluating it)
The output VCF appears to be written variant-by-variant from the source file
Sometimes, the relative order of variants can change. For instance:
GRCh38 input (correct order):
GRCh37 output:
This produces a file that has
Workaround
Don't use "-o" on liftover but instead pipe into bcftools sort then output to file
The text was updated successfully, but these errors were encountered: