Thanks a lot Pierre,
It works fine now !
Reading the source code can help obvously...
FB
Hi, I would like to extract variants for on sample only if its genotype quality (GQ) is above cutoff.
I have tried this:
$pathToGATK \
-T SelectVariants \
-R ref \
--variant inVCF \
-sn mylib \
-select "vc.getGenotype('mylib').GQ > 10.0" \
--selectTypeToInclude SNP \
--out outVCF
Unfortunately, this command outputs absolutely no variant (the VCF header is ok). No error message occured. Is some one could help me?
Fred
As far as I understand, the GATK function getGenotype returns a java object 'Genotype':
The class contains a function: getPhredScaledQual()
can you try
-select "vc.getGenotype('mylib').getPhredScaledQual() > 10.0" \
Thanks a lot Pierre,
It works fine now !
Reading the source code can help obvously...
FB
Log in to answer this question.