Fixes GitHub issue #43. Note that any QUAL value that cannot be parsed as
int or float is stored as None.
Also note that explicit string searching for certain characters first might be faster. I don't think a regular expression for recognizing float values would be faster and I do think this patch is a more Pythonic solution.
Parse float QUAL values in exponent syntax
I agree that regexp would likely be slower.
To play devil's advocate, how much of a disadvantage would it be to store every QUAL as a float?
I don't know, but for one thing it makes reading and writing no longer the identity function (and that might also not be a problem).
Minor quibble: I would like to keep the example vcfs as they are on the VCF spec site, if possible, and provide alternate files for other test cases.