I have changed the logic to set to missing -S . those genotypes that are not included in that expression.
So that if the genotype has DP >= threshold & GQ>= certain threshold it will not be set to missing but if it does not match that expression then It'll be set to missing. This allows for the removal of genotypes that have bad quality by including just the good ones. Notice that we used & instead of && since the criteria needs to be met within the same sample. For reference look at here.
I have changed the logic to set to missing
-S .
those genotypes that are not included in that expression. So that if the genotype has DP >= threshold & GQ>= certain threshold it will not be set to missing but if it does not match that expression then It'll be set to missing. This allows for the removal of genotypes that have bad quality by including just the good ones. Notice that we used&
instead of&&
since the criteria needs to be met within the same sample. For reference look at here.