-
Notifications
You must be signed in to change notification settings - Fork 7
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
bool object has no attribute split when running vcf2zarr explode #297
Comments
Thanks for the report here @no7ren. I think this probably is a bug, and it would really be helpful to have a minimal example to provoke it. Do you think you could concoct a very small VCF (i.e., one data line, if possible) that provokes the issue please? What do you get when running this through cyvcf2? We don't actually access the VCF data but depend on htslib/cyvcf2 to do the parsing. |
Hi, You can find the test file in the attachment. And one more thing I found is that the type of field matters a lot. It has no error when I change from String to Float. Here is the error I got: The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Thanks for the test case @no7ren, this is very helpful. I'm afraid I won't get to this until the new year, but will pick it up then. |
I run into the problem when converting one vcf file with command vcf2zarr explode. After some debugs, it turns out that the problem was caused by some of the 'INFO' field where at some positions they don't have any value and more important is they even don't have "=" like the following:
MQ=4.61443;AN=120;AC=6,26;MQRankSum=1.656;ReadPosRankSum;DP=2423
Can you take this into account like if there is no delimiter (=), you can skip split function?
Thank you!
The text was updated successfully, but these errors were encountered: