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.
We will be out of the office on November 11th and 13th 2019, due to the U.S. holiday(Veteran's day) and due to a team event(Nov 13th). We will return to monitoring the GATK forum on November 12th and 14th respectively. Thank you for your patience.
SelectVariants on AF
I'm trying to do what I think should be pretty straightforward, which is to select sites in a VCF (generated by GATK) where the AF > 0.1. I have in my SelectVariants statement:
java -jar -Xmx8g /path/to/gatk-3.3-0/GenomeAnalysisTK.jar -T SelectVariants \
-R /path/to/ref/ref.fa \
-V /path/to/vcf/variants.vcf \
-select "AF > 0.1" \
However I get the following message:
Invalid JEXL expression detected for select-0 with message ![0,8]: 'AF > 0.1;' > error
I'm wondering if the reason for this is because in my VCF there are some sites with multiple alleles (and hence multiple AFs) and is therefore an array? This is from my VCF header:
INFO=<ID=AF,Number=A,Type=Float,Description="Allele Frequency, for each ALT allele, in the same order as listed">
If this is the case, what would be the syntax to get GATK to look at the whole array of AFs? Or do I have to get rid of the multi-alleleic sites from my VCF? Or maybe I'm misinterpreting the error message?