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
        Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
        by SEQadmin2



        CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

        Despite this, “CRISPR helped turn genome editing from a specialized technique into
        ...
        Yesterday, 11:01 AM
      • SEQadmin2
        Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
        by SEQadmin2


        Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

        The systematic characterization of the human proteome has
        ...
        07-20-2026, 11:48 AM
      • 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

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Yesterday, 02:55 AM
      0 responses
      12 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-24-2026, 12:17 PM
      0 responses
      12 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-23-2026, 11:41 AM
      0 responses
      13 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-20-2026, 11:10 AM
      0 responses
      24 views
      0 reactions
      Last Post SEQadmin2  
      Working...