The current GATK version is 3.7-0
Examples: Monday, today, last week, Mar 26, 3/26/04

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Did you remember to?


1. Search using the upper-right search box, e.g. using the error message.
2. Try the latest version of tools.
3. Include tool and Java versions.
4. Tell us whether you are following GATK Best Practices.
5. Include relevant details, e.g. platform, DNA- or RNA-Seq, WES (+capture kit) or WGS (PCR-free or PCR+), paired- or single-end, read length, expected average coverage, somatic data, etc.
6. For tool errors, include the error stacktrace as well as the exact command.
7. For format issues, include the result of running ValidateSamFile for BAMs or ValidateVariants for VCFs.
8. For weird results, include an illustrative example, e.g. attach IGV screenshots according to Article#5484.
9. For a seeming variant that is uncalled, include results of following Article#1235.

Did we ask for a bug report?


Then follow instructions in Article#1894.

Formatting tip!


Surround blocks of code, error messages and BAM/VCF snippets--especially content with hashes (#)--with lines with three backticks ( ``` ) each to make a code block.
Powered by Vanilla. Made with Bootstrap.
Picard 2.9.0 is now available. Download and read release notes here.
GATK 3.7 is here! Be sure to read the Version Highlights and optionally the full Release Notes.

Rare variants from annotated vcf file

rohan1925rohan1925 New YorkMember Posts: 5
edited February 2014 in Ask the GATK team

Hi,

I have annotated my vcf file of 20 samples from Unified genotyper using the following steps.

Unified genotyper->Variantrecalibration->Applyrecalibration->VariantAnnotator

My question is how should I proceed if I have to select rare variants (MAF<1%) for the candidate genes that I have,for each of these 20 samples?

Post edited by rohan1925 on

Answers

  • Geraldine_VdAuweraGeraldine_VdAuwera Cambridge, MAMember, Administrator, Broadie Posts: 11,388 admin
    edited February 2014

    Hi there,

    If you're asking how you should design your analysis, I'm afraid this question is beyond our current scope of support. I can only point you to the variant manipulation tools (e.g. SelectVariants) and answer specific questions about how to use them.

    Geraldine Van der Auwera, PhD

  • rohan1925rohan1925 New YorkMember Posts: 5
    edited February 2014

    I want to use SelectVariants only since I have used all the tools from GATK until Variant Annotator for variants.So in this how should I get MAF (minor allele frequency) to be less than 1%,using -AF parameter?

    Also,I need to select variants only for candidate genes that I have.

  • Geraldine_VdAuweraGeraldine_VdAuwera Cambridge, MAMember, Administrator, Broadie Posts: 11,388 admin

    Ah, sorry to get back to you so late. I believe you should be able to do that simply using -select "AF < 0.01". Let me know if that doesn't work for you.

    Geraldine Van der Auwera, PhD

  • rohan1925rohan1925 New YorkMember Posts: 5

    Hi,

    Thanks for your response! I am using this command,and getting some error.

    java -Xmx2g -jar /GenomeAnalysisTK-2.7-4-g6f46d11/GenomeAnalysisTK.jar -T SelectVariants -R human_g1k_v37.fasta --variant annotated.vcf -o annotated.select.vcf -select "AF<0.01"

    ERROR ------------------------------------------------------------------------------------------
    ERROR stack trace

    java.lang.IllegalArgumentException: Invalid JEXL expression detected for select-0 with message ![0,9]: 'AF < 0.01;' < error

    In my VariantRecalibration,I had asked for following parameters to be included:
    -an DP -an QD -an FS -an MQRankSum -an ReadPosRankSum

    Do I have to include -an AF as well?

  • Geraldine_VdAuweraGeraldine_VdAuwera Cambridge, MAMember, Administrator, Broadie Posts: 11,388 admin

    No, if it was a problem of missing annotations the error would be different. Is there any chance some of your variants are multi-allelic? The problem is that for multi-allelic variants, AF is a list of numbers instead of a single number, so the JEXL expression I gave you won't work. Unfortunately there is currently no way to test AF for multi-allelic variants, so you need to skip them in order for this to work.

    Geraldine Van der Auwera, PhD

Sign In or Register to comment.