I have gone through filtering variants through VQSR
and hard-filter
from here
My understanding about VQSR
is that the we don't want to combine SNP
and INDEL
where as they are combined in Hard-filter
.
In VQSR, we run
VariantRecalibrator
with modeSNP
andINDEL
and we get.recal
files for both snp and indels.Next, we apply
ApplyVQSR
with modeINDEL
withindels.recal
file to generateindel.recalibrated.vcf
.In the next step, we apply
ApplyVQSR
forSNP
with vcf input asindel.recalibrated.vcf
and .recal file generated fromVariantRecalibrator
with modeSNP
.This step generate file with
snp.recalibrated.vcf.gz
which will contain bothSNP
andINDEL
as filtered and will be final filtered data fromVQSR
Is my understanding correct about variant filtering here ?
If this is right how do we deal with MIXED
type ?
If you look into the this tutorial
Note that mixed records are treated as indels.