Yes this line exist in my vcf file
##fileformat=VCFv4.2
Hello everybody,
I am using Pharmcat to preprocess my vcf file, and for this I am running this command
python3 pharmcat_vcf_preprocessor.py -vcf NA12801.VCF
But I am getting this error
Error: ##fileformat=VCFv4.2 does not exist
I have generated my vcf file by using gatk Haplotypecaller
./gatk --java-options "-Xmx4g" HaplotypeCaller -R GCF_000001405.40_GRCh38.p14_genomic.fna -I sample.bam -O sample.VCF
Kindly help me out in resolving this issue.
Thanks in advance
Have a look in your VCF file if that line exists.
eg
grep fileformat *.VCF
It might be VCF 4.1 or 4.3 etc.
Yes this line exist in my vcf file
##fileformat=VCFv4.2
Look at the pharmcat_vcf_preprocessor.py program, post the code near the error Error: ##fileformat=VCFv4.2 does not existis.
Log in to answer this question.