Biostar Beta. Not for public use.
How to get GQX annotation in vcf file
0
Entering edit mode
2.5 years ago
Clare • 120
United States

I need to analyze both variant and nonvariant sites from a vcf. I produced this with GaTK Haplotype caller (v 3.7), but I'm struggling to know how to filter the variant and nonvariant sites 'fairly'. Illumina states you can do this using the GQX value, but my GATK gvcfs and vcfs don't have that annotation. Does anyone know if it is only the isaac variant caller software that produces GQX values? And is it possible for me to calculate it post hoc?

-- Here is the description of GQX from illumina: Genotype Quality for Variant and Non-variant Sites

The gVCF file uses an adapted version of genotype quality for variant and non-variant site filtration. This value is associated with the key GQX. The GQX value is intended to represent the minimum of {Phred genotype quality assuming the site is variant, Phred genotype quality assuming the site is non-variant}. The reason for using this value is to allow a single value to be used as the primary quality filter for both variant and non-variant sites. Filtering on this value corresponds to a conservative assumption appropriate for applications where reference genotype calls must be determined at the same stringency as variant genotypes, i.e.:

• An assertion that a site is homozygous reference at GQX >= 30 is made assuming the site is variant. • An assertion that a site is a non-reference genotype at GQX >= 30 is made assuming the site is non-variant.

SNP filtering • 606 views
ADD COMMENTlink
0
Entering edit mode

Hi Clare, I have a similar question. Were you able to find a solution?

ADD REPLYlink
0
Entering edit mode
13 months ago
Republic of Ireland

Is GQX not just the minimum of the QUAL and FORMAT::GQ values? You can just filter using a single value using BCFtools. Here, I require that, if either QUAL or GQ has a value below 30, then exclude the variant.

bcftools filter --exclude 'QUAL<30 || GQ<30' Variants.vcf

That does the same as filtering on FORMAT::GQX

Kevin

ADD COMMENTlink

Login before adding your answer.

Similar Posts
Loading Similar Posts
Powered by the version 2.1