Unconfigured Ad

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

    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
        Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by SEQadmin2



        Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
        ...
        07-09-2026, 11:10 AM
      • SEQadmin2
        Cancer Drug Resistance: The Lingering Barrier to Rising Survival
        by SEQadmin2



        Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

        There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
        07-08-2026, 05:17 AM
      • GATTACAT
        Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by GATTACAT
        Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
        07-01-2026, 11:43 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 07-13-2026, 10:26 AM
      0 responses
      18 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-09-2026, 10:04 AM
      0 responses
      30 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-08-2026, 10:08 AM
      0 responses
      16 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-07-2026, 11:05 AM
      0 responses
      34 views
      0 reactions
      Last Post SEQadmin2  
      Working...