-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tolerate mixed case NaNs and Infinities in VCF (#1364)
* Different languages convert floating point numbers to String representations in different ways. We now accept NAN, INF, or INFINITY in any case instead of only NaN and Inf when reading VCFs. * See samtools/hts-specs#409 for more discussion.
- Loading branch information
1 parent
f68108d
commit 37ea940
Showing
13 changed files
with
129 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
##fileformat=VCFv4.1 | ||
##FORMAT=<ID=GQ,Number=1,Type=Integer,Description="Genotype Quality"> | ||
##contig=<ID=chr1,length=14640000> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA12878 | ||
chr1 1 . C T NaN . . GT:GQ ./.:NaN | ||
chr1 2 . C T nan . . GT:GQ ./.:nan | ||
chr1 3 . C T -nan . . GT:GQ ./.:-nan | ||
chr1 4 . C T +nan . . GT:GQ ./.:+nan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
##fileformat=VCFv4.1 | ||
##FORMAT=<ID=GQ,Number=1,Type=Integer,Description="Genotype Quality"> | ||
##contig=<ID=chr1,length=14640000> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA12878 | ||
chr1 1 . C T -Infinity . . GT:GQ ./.:-Infinity | ||
chr1 2 . C T -infinity . . GT:GQ ./.:-infinity | ||
chr1 3 . C T -Inf . . GT:GQ ./.:-Inf | ||
chr1 4 . C T -inf . . GT:GQ ./.:-inf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
##fileformat=VCFv4.1 | ||
##FORMAT=<ID=GQ,Number=1,Type=Integer,Description="Genotype Quality"> | ||
##contig=<ID=chr1,length=14640000> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA12878 | ||
chr1 1 . C T +Infinity . . GT:GQ ./.:+Infinity | ||
chr1 2 . C T +infinity . . GT:GQ ./.:+infinity | ||
chr1 3 . C T +Inf . . GT:GQ ./.:+Inf | ||
chr1 4 . C T +inf . . GT:GQ ./.:+inf | ||
chr1 5 . C T Infinity . . GT:GQ ./.:Infinity | ||
chr1 6 . C T infinity . . GT:GQ ./.:infinity | ||
chr1 7 . C T Inf . . GT:GQ ./.:Inf | ||
chr1 8 . C T inf . . GT:GQ ./.:inf |