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
If I understand correctly, -2147483648 corresponds to missing values (#195 (comment)), but here I also have -2147483647.
If the values are missing, it would make sense to me to either set them as 0 or as explicit missing values.
What would be a reliable and clean way to do that ?
Hi, for speed, cyvcf2 returns a numpy array where all rows must have the same dimension.
-2147483648 is missing and -2147483647 is vector end.
Using that, you can go through with a list comprehension or numpy expression depths[depths < 0] = 0 but that's not done internally again for speed. I just reads directly from htslib which reads directly from the file.
remember that the rec.gt_* attributes only work for bi-allelic variants and should not be used for multi-allelics.
I came upon a vcf record that failed to pass a sanity check I had put in my code.
Here is a minimal example using test.vcf.gz:
If I understand correctly,
-2147483648
corresponds to missing values (#195 (comment)), but here I also have-2147483647
.If the values are missing, it would make sense to me to either set them as 0 or as explicit missing values.
What would be a reliable and clean way to do that ?
The record:
(This is extracted from a file produced by freebayes, then snpEFF, if that matters.)
The text was updated successfully, but these errors were encountered: