We’re moving the GATK website, docs and forum to a new platform. Read the full story and breakdown of key changes on this blog.
If you happen to see a question you know the answer to, please do chime in and help your fellow community members. We encourage our fourm members to be more involved, jump in and help out your fellow researchers with their questions. GATK forum is a community forum and helping each other with using GATK tools and research is the cornerstone of our success as a genomics research community.We appreciate your help!
Test-drive the GATK tools and Best Practices pipelines on Terra
Check out this blog post to learn how you can get started with GATK and try out the pipelines in preconfigured workspaces (with a user-friendly interface!) without having to install anything.
Filtering Not Generating Expected Result
As many members have suggested I am using a standard method of running through VariantFiltration to change samples with low depth to missing genotype using -G_filter "DP<4" -G_filterName "SampleDepthFilter4" --setFilteredGtToNocall.
Then using SelectVariants to filter by MAF and Missing%s using allele numbers with the resulting file using --selectexpressions "AF>0.1" --selectexpressions "AF<0.9" --selectexpressions "AN>140" --restrictAllelesTo BIALLELIC --selectTypeToExclude INDEL.
However when I'm not going through and looking at the results, I see that in almost all cases the missing percentages are much higher than what I was theoretically filtering for with Allele Number greater than 140, ie 70 individuals. It seems that it is not taking into account the genotypes that have been changed over to missing based on the sample depth filter, even though it is using the resulting file from the VariantFiltration step. Why is filtering not performing as anticipated?