-
Notifications
You must be signed in to change notification settings - Fork 311
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
Allow +Inf and -Inf Float values when reading VCF #1512
Milestone
Comments
+Inf
and -Inf
Float values when reading VCF
@heuermh This is an upstream issue in htsjdk, no? |
In Scala number format parsing actually. I couldn't see a simple fix so I left it here. |
Oh, that's right. htsjdk just gives us Strings, that we then have to make sense of. LOVE IT. |
fnothaft
added a commit
to fnothaft/adam
that referenced
this issue
Sep 13, 2017
fnothaft
added a commit
to fnothaft/adam
that referenced
this issue
Oct 8, 2017
heuermh
pushed a commit
that referenced
this issue
Oct 9, 2017
* [ADAM-1512] Support VCFs with +Inf/-Inf float values. Resolves #1512. * fix inf float values, add test file
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Per the VCF 4.3 specification,
Float (32-bit, formatted to match the regular expression
^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$
,NaN
, or+/-Inf
)From what I can tell, Scala float parsing delegates to the implementation in java, which uses
Thus we may need to special case
+Inf
and-Inf
. Reported by @tangxuan_twitter on Gitter.The text was updated successfully, but these errors were encountered: