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

        • 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
        25 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 10:48 AM
        0 responses
        20 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        36 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        42 views
        0 reactions
        Last Post SEQadmin2  
        Working...