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.

HaplotypeScore not annotated?

flescaiflescai Member ✭✭
edited October 2012 in Ask the GATK team

Hi there,
I'm running into an issue with my Queue pipeline, with variants called with HaplotypeCaller.
Once I get the raw VCF file, I use VariantAnnotator before VQSR: however, no HaplotypeScore annotation is being produced, resulting in a failure of the VariantRecalibrator step where 'HaplotypeScore' was indicated as an annotation.

I tried to correct the issue by indicating to VariantAnnotator to use all annotations

  class AnnotationArguments (t: Target) extends VariantAnnotator with UNIVERSAL_GATK_ARGS {
this.reference_sequence = qscript.referenceFile
// Set the memory limit to 7 gigabytes on each command.
    this.memoryLimit = 7
    this.input_file :+= qscript.bamFile
    this.useAllAnnotations
    this.D = qscript.dbSNP_b37
  }

But I still can't get any output in the annotated VCF of that parameter. Here an example of a variant

 AC=5;AF=0.078;AN=64;ActiveRegionSize=179;ClippingRankSum=-0.568;DB;DP=2025;EVENTLENGTH=0;FS=4.139;InbreedingCoeff=-0.0847;MLEAC=5;MLEAF=0.078;MQ=69.98;MQRankSum=-1.428;NVH=1;NumHapAssembly=15;NumHapEval=13;QD=17.20;QDE=17.20;ReadPosRankSum=-1.762;TYPE=SNP;extType=SNP

Any suggestions on what I might be doing wrong?

thanks very much for your help,
Francesco

Best Answer

  • ebanksebanks Broad Institute ✭✭✭✭
    Accepted Answer

    Exactly. The Haplotype Score is inherently embedded inside the guts of the Haplotype Caller, which means it's no longer an appropriate annotation for that tool.

Answers

  • ebanksebanks Broad InstituteMember, Broadie, Dev ✭✭✭✭

    Hi Francesco,

    Our recommendation is that you follow the best practices for variant detection. It looks like you aren't doing that in your pipeline.
    That being said, you can always use the Variant Annotator to add the Haplotype Score to your VCF records if you really want to do that.

  • flescaiflescai Member ✭✭

    Hi Eric,
    thanks very much, I didn't quite notice the covariates changed in the new best practice to

     -an QD -an MQRankSum -an ReadPosRankSum -an FS -an MQ -an InbreedingCoeff -an ClippingRankSum
    

    thanks for flagging it up!
    before using "this.useAllAnnotations" I used

     this.annotation ++= List("QD", "QDE", "HaplotypeScore", "MQRankSum", "ReadPosRankSum", "FS", "MQ")
    

    but 'HaplotypeScore' was not added anyway.
    is that because of the output of HaplotypeCaller is different?

    thanks for your help,
    Francesco

  • ebanksebanks Broad InstituteMember, Broadie, Dev ✭✭✭✭
    Accepted Answer

    Exactly. The Haplotype Score is inherently embedded inside the guts of the Haplotype Caller, which means it's no longer an appropriate annotation for that tool.

  • rpoplinrpoplin Member ✭✭✭

    In the upcoming release of GATK v2.2 we restored this functionality and so you'll be getting HaplotypeScore again in your variant calls!

    Cheers,

Sign In or Register to comment.