-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0 coordinate overflows in VCF format #1475
Comments
pd3
added a commit
to pd3/htslib
that referenced
this issue
Jul 20, 2022
The 0 coordinate is valid in VCF specification, but the round-trip VCF -> BCF -> VCF turns MT:0 into MT:4294967296. Add a check to detect this overflow. See samtools#1475 and samtools/bcftools#1753
pd3
added a commit
to pd3/htslib
that referenced
this issue
Jul 20, 2022
The 0 coordinate is valid in VCF specification, but the round-trip VCF -> BCF -> VCF turns MT:0 into MT:4294967296. Add a check to detect this overflow. See samtools#1475 and samtools/bcftools#1753
Fixed by #1476 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As stated here: samtools/bcftools#1753. There is an overflow issue when treating a VCF file with zero positions. Here is an example:
Unsorted VCF
Commands
Sorted VCF
Note how the
0
from3110098432:1
has been wrongly changed to4294967296
.As described by @pd3 in samtools/bcftools#1753 (comment):
@daviesrob, could you check this out?
The text was updated successfully, but these errors were encountered: