Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Heisman
    Senior Member
    • Dec 2010
    • 534

    #1

    GATK IndelRealigner error

    Hey all,
    I am attempting to use this for the first time. Here are my commands:

    java -Xmx2000M -jar /Tools/GenomeAnalysisTK-1.0.2885/GenomeAnalysisTK.jar -T RealignerTargetCreator -R Path/hg18_reference_seq.fa -o Test_Output_File_21_Step1 -I Test_ID.21.bam


    java -Xmx4000M -jar /Tools/GenomeAnalysisTK-1.0.2885/GenomeAnalysisTK.jar -T IndelRealigner -I Test_ID.21.bam -R Path/hg18_reference_seq.fa -targetIntervals Test_Output_File_21_Step1 -o Test_21_newAligned.bam

    The first command runs fine. The second command gives this error:

    The following error has occurred:

    org.broadinstitute.sting.utils.StingException: First element of the alt consensus cigar must be M or I. Actual: 3H7M1D91M:

    I'm pretty new to all of this. What is an "alt consensus cigar", and how should I go about trying to fix this? My first data set were a sample of 1 million paired end reads that I aligned with Novoalign, output in SAM format, sorted, removed duplicates using Picard, sorted, and then tried to do this.
  • swbarnes2
    Senior Member
    • May 2008
    • 910

    #2
    Originally posted by Heisman View Post
    Hey all,
    I am attempting to use this for the first time. Here are my commands:

    java -Xmx2000M -jar /Tools/GenomeAnalysisTK-1.0.2885/GenomeAnalysisTK.jar -T RealignerTargetCreator -R Path/hg18_reference_seq.fa -o Test_Output_File_21_Step1 -I Test_ID.21.bam


    java -Xmx4000M -jar /Tools/GenomeAnalysisTK-1.0.2885/GenomeAnalysisTK.jar -T IndelRealigner -I Test_ID.21.bam -R Path/hg18_reference_seq.fa -targetIntervals Test_Output_File_21_Step1 -o Test_21_newAligned.bam

    The first command runs fine. The second command gives this error:

    The following error has occurred:

    org.broadinstitute.sting.utils.StingException: First element of the alt consensus cigar must be M or I. Actual: 3H7M1D91M:

    I'm pretty new to all of this. What is an "alt consensus cigar", and how should I go about trying to fix this? My first data set were a sample of 1 million paired end reads that I aligned with Novoalign, output in SAM format, sorted, removed duplicates using Picard, sorted, and then tried to do this.
    Well, try the obvious thing first. GATK is claiming not to like the fact that your read was hard clipped. That's what the H in the first bit of the CIGAR means.

    So redo the .sam file without hard clipping.

    Comment

    • Heisman
      Senior Member
      • Dec 2010
      • 534

      #3
      Originally posted by swbarnes2 View Post
      Well, try the obvious thing first. GATK is claiming not to like the fact that your read was hard clipped. That's what the H in the first bit of the CIGAR means.

      So redo the .sam file without hard clipping.
      Thanks for the reply. Assuming hard clipping is only done by adding -H when running Novoalign, I'm not doing any hard clipping. Here are the commands I used:

      novoalign -o SAM -r none -e 1 -k -t 200 -a AGATCGGAAGAGCG -d ref_seq.novoindex -f Read1 Read2 1> Aligned.sam 2> Aligned.txt

      samtools import ref_seq.samtoolsIndex Aligned.sam Aligned.bam

      samtools sort Aligned.bam Aligned_sort

      Java -Xmx16000m -jar picard-tools-1.26/MarkDuplicates.jar INPUT=Aligned_sort.bam OUTPUT=Aligned_sort_noDup.bam METRICS_FILE=Aligned_sort_noDup.txt REMOVE_DUPLICATES=True ASSUME_Sorted=True &

      samtools sort Aligned_sort_noDup.bam Aligned_sort_noDup_sort

      samtools index Aligned_sort_noDup_sort.bam

      Are there any good links to explain what CIGAR means? I tried googling it in a sequencing context and found nothing.

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
        by SEQadmin2



        Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

        Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
        ...
        10-14-2026, 09:55 AM
      • SEQadmin2
        New Genomics Technologies Take Aim at Long-Standing Limits
        by SEQadmin2


        Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

        We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
        ...
        09-28-2026, 10:25 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 10-22-2026, 11:13 AM
      0 responses
      31 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-22-2026, 10:48 AM
      0 responses
      22 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-15-2026, 10:52 AM
      0 responses
      39 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-14-2026, 05:39 AM
      0 responses
      45 views
      0 reactions
      Last Post SEQadmin2  
      Working...