Closed rozaimirazali closed 5 years ago
Thanks for bringing this to my attention. It looks like you have a very long line in the header of your VCF, and this is breaking csv.reader
. Can you confirm that stripping out the header works as a temporary solution?
file_label=QGP_MALE_onlyGT
zcat ${file_label}.vcf.gz | grep -v '^##' > ${file_label}.no_header.vcf
callHaplogroups.py --input ${file_label}.no_header.vcf --ancDerCounts --haplogroupPaths --derSNPs --derSNPsDetail --ancSNPs --ancSNPsDetail
Assuming so, I'll patch yhaplo
to make it robust to this situation.
Thanks!
I've just pushed a fix to support VCF files with very long metadata lines. Please try running the updated version of yhaplo
on your original file, and let me know how it goes?
My command:
tail of the error message:
Why is it thinking that the input file is a csv file instead of vcf?