Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dkrtndhkd
    Member
    • Jan 2012
    • 42

    #1

    GATK and SAM format

    I want to call SNP/indel using GATK tools.

    however, GATK occurs error because my input bam file is malformed

    because some of @HD, @SQ, @RG, @PG info are missing.

    I got the meaning of each component from 'the sam format specification(v1.4-r985)' pdf file from samtools,

    but i don't know exactly what should i type each information and wht's critical for GATK because there are many options to fill it.

    does anyone who knows it? is there any website to specify it automatically?
  • sdvie
    Member
    • Jul 2010
    • 68

    #2
    Hi!

    From which aligner do the bam files come from?

    I have never tried this but in samtools there is the option reheader, where you can replace (or add?) the header.
    You would have to prepare a file containing the header lines based on the information that is specific for your alignment = sam/bam file.
    You would have to include @HD (including the sort order of your alignments), @SQ (information on the reference sequence) and @PG (information on the program used for alignment).
    For the @RG lines, I think you could user the AddOrReplaceReadgroups command from picard.

    maybe that helps...
    cheers!
    Last edited by sdvie; 02-10-2012, 02:26 AM.

    Comment

    • dkrtndhkd
      Member
      • Jan 2012
      • 42

      #3
      I use both bwa and novoalign. i use data of illumina Hiseq, pair-end.

      Thank you for your reply, Sdvie.

      and if you don't mind, may i ask you a example sam file you had used without error?

      i do want the header section only, not aligned information.

      if you don't want to show others, please send me an email [email protected] ...

      Thank you

      Comment

      • sdvie
        Member
        • Jul 2010
        • 68

        #4
        I sent you an example of a header. You can see that the SQ line is multiplied because the reference sequence fasta and index has these subsections by chromosome etc. It is crucial that they coincide with the reference sequence you are using in all steps (alignment, GATK etc). Therefore, usually the aligner program itself adds these lines, I have never done this manually. bwa for sure does add the HD, SQ and PG headers, I have not worked with novoalign. As I said before, the read groups may be added either via a bwa argument (check the bwa documentation) during alignment or by picard afterwards.

        Comment

        Latest Articles

        Collapse

        • kinpict.com
          Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by kinpict.com
          The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
          Today, 06:37 PM
        • SEQadmin2
          16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by SEQadmin2





          NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
          10-30-2026, 06:46 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 11-12-2026, 07:59 AM
        0 responses
        27 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-05-2026, 09:25 AM
        0 responses
        35 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-03-2026, 11:54 AM
        2 responses
        56 views
        0 reactions
        Last Post kinpict.com  
        Started by SEQadmin2, 10-28-2026, 09:57 AM
        0 responses
        175 views
        0 reactions
        Last Post SEQadmin2  
        Working...