Closed Rahmmy closed 1 year ago
This is a strange behavior. Could you try to run it with any other VCF file you own?
Sure When I try my own vcf file, I get a different error.
[Fri Oct 20 09:57:00 2023] Reading SNPs Traceback (most recent call last): File "/Users/abdurahman/jloh/src/stats", line 331, in <module> main(args) File "/Users/abdurahman/jloh/src/stats", line 253, in main Hetero_lines, Homo_lines = hetero_and_homo_snps(args.vcf) File "/Users/abdurahman/jloh/src/stats", line 77, in hetero_and_homo_snps Vcf_lines = [ line for line in INPUT if line[0] != "#" ] File "/Users/abdurahman/jloh/src/stats", line 77, in <listcomp> Vcf_lines = [ line for line in INPUT if line[0] != "#" ] File "/Users/abdurahman/anaconda3/lib/python3.10/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
Hi, sorry I was away for a few days. Is your file g-zipped by any chance? the input must be a normal uncompressed VCF file.
I have tested it with three different VCF files from three different calles (freebayes, GATK, bcftools call) and I don't get such error. I am unable to reproduce it, sorry! First of all check if the file is zipped or not, and if not, maybe attach it here so I can test it with your file!
Hi, I have managed to reproduce the issue and (in my case) I have fixed it. You will have to download the new commit (v1.0.2) which is not yet the one in docker hub.
Clone it from github here, or wait a few days for the dockerhub version :)
Hello @MatteoSchiavinato ,
Following a successfull installation of the tool, I was able to do a test run with
jloh sim --fasta S_para.chrXII.fa
which had no errors.However with the
stats
option it failed. Please see the code and error below. Please advise. Kind regards,