Closed arouette closed 4 years ago
It's a problem with your VCF file.
As far as I understand Some FORMAT/GL
have some missing values https://github.com/samtools/htsjdk/blob/master/src/main/java/htsjdk/variant/variantcontext/GenotypeLikelihoods.java#L266 , I'm pretty sure you would get the same kind of error if you would use another htsjdk-based tool like gatk or picard needing a genotype.
For a try, try to remove the GL field using bcftools annotate
bcftools annotate -x 'FORMAT/GL' input.vcf > output.vcf
may be related to this: https://github.com/samtools/htsjdk/pull/1372
sorry I don't have the time to look at this for now.
It was a problem with my VCF file, you are right. It worked well after removing the GL field.
Thank you for your help! Alexandre
Verify
openjdk version "13.0.1" 2019-10-15 OpenJDK Runtime Environment (build 13.0.1+9) OpenJDK 64-Bit Server VM (build 13.0.1+9, mixed mode, sharing)
Subject of the issue
I ran bcftools merge for a dozen of vcfs for which variants were called using freebayes. The merged_vcf was used as input for FixVcfMissingGenotypes. Unfortunately, the scripts fails after a few seconds and outputs the following error: "partial missing values for GL field". It fails on the 103th entry of the vcf.
Your environment
${JAVA_HOME}
: /cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/java/13.0.1Error message