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
In [1]: from cyvcf2 import VCF
In [2]: reader = VCF("./single_gt.vcf.gz")
In [3]: v = next(iter(reader))
In [4]: v.format("GT")
---------------------------------------------------------------------------
UnicodeDecodeError Traceback (most recent call last)
Cell In [4], line 1
----> 1 v.format("GT")
File /usr/local/lib/python3.10/dist-packages/cyvcf2/cyvcf2.pyx:1353, in cyvcf2.cyvcf2.Variant.format()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x81 in position 1: ordinal not in range(128)
The text was updated successfully, but these errors were encountered:
If a VCF has a single GT value, cyvcf2 crashes out with:
UnicodeDecodeError: 'ascii' codec can't decode byte 0x81 in position 1: ordinal not in range(128)
VCF spec says
Example file:
single_gt.vcf.gz
Test code (using vcf above)
The text was updated successfully, but these errors were encountered: