Notice:
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.

Variant Filtration isn't working

je_bje_b Member
edited May 2017 in Ask the GATK team

I'm trying to filter a vcf file with SNPs using the following code:
java -jar GenomeAnalysisTK.jar \
-T VariantFiltration \
-R reference.fasta \
-V My_Snps.vcf \
--filterExpression "DP < 10 || DP > 300 " \
--filterName "Filter" \
-o My_filtered_Snps.vcf

But absolutely all lines in my output get a PASS. I've (1) visually inspected the file and I'm sure some lines must get the FILTER mark and (2) run an equivalent command in vcftools. The output has less lines than the original file. In other words, VariantFiltration is failing to get my lines right. Am I missing something in my code? (Outside the scope of the question: I could switch to another program, but I'd prefer to stick to GATK for several reason).

Thanks!

Best Answer

Answers

Sign In or Register to comment.