yjx1217 / simuG

simuG: a general-purpose genome simulator
MIT License
86 stars 12 forks source link

Argument "QUAL" isn't numeric in numeric ge (>=) at simuG.pl line 815, <$fh> line 6. #12

Closed mattbird567 closed 1 year ago

mattbird567 commented 1 year ago

Hi,

This may be a simple fix but i am trying to create some synthetic data with pre-defined SNPs using a .vcf file. I assume my .VCF file is the problem so i have included what it looks like below (as a .txt file as i can't upload a .vcf). Please let me know if there is a specific format i need the vcf in.

Many Thanks, Matt

myfile.txt

yjx1217 commented 1 year ago

Hi Matt,

Thanks for providing the input vcf file that you used, which is very helpful. The error was triggered due to the lack of a leading '#' character in the vcf header line "CHROM POS ID REF ALT QUAL FILTER INFO" (note that you have two such lines in your file but one of them does not start with '#').

Best, Jia-Xing

mattbird567 commented 1 year ago

Thanks Jia-Xing! I now have a simulated output!

yjx1217 commented 1 year ago

Great! :-)

I will close this thread then.

Best, Jia-Xing