Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • gaurabSEQanswers
    Junior Member
    • Oct 2017
    • 2

    BWA alignment- Indexing of sorted BAM file

    Hi,

    I have a problem with indexing the sorted BAM file in bwa alignment. I gave the command like this

    samtools index ~/Desktop/Ruelliasorted.sorted.BAM and says that

    EOF marker is absent. The input is probably truncated.
    [bam_header_read] invalid BAM binary header (this is not a BAM file).
    [bam_index_core] Invalid BAM header.[bam_index_build2] fail to index the BAM file.

    I need help to figure it out. Anybody out there???? Thanks in advance
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    See this old thread. How did you make your SAM/BAM file?

    Comment

    • gaurabSEQanswers
      Junior Member
      • Oct 2017
      • 2

      #3
      bwa mem ~/Desktop/Tri.fasta ~/Desktop/R4A2R1.fastq ~/Desktop/R4A2R2.fastq >~/Desktop/RSAM.SAM for SAM file[

      samtools view -b -S -o ~/Desktop/RBAM.BAM ~/Desktop/RSAM.SAM for BAM file

      sorting- samtools sort ~/Desktop/RBAM.BAM >~/Desktop/RBAM.sorted.BAM

      and i dont know how to figure out the problem in indexing.

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        What version of samtools are you using? Use the latest (v.1.5) if possible. Sorting with that version is done as follows
        Code:
        samtools sort -o sorted.bam original.bam
        #then index
        samtools index sorted.bam
        Last edited by GenoMax; 10-27-2017, 11:09 AM.

        Comment

        Latest Articles

        Collapse

        • 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
        • SEQadmin2
          Nine Things a Sample Prep Scientist Thinks About Before Sequencing
          by SEQadmin2


          I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

          Here are nine questions we think about, in roughly the order they matter, before...
          06-18-2026, 07:11 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 07-02-2026, 11:08 AM
        0 responses
        25 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-30-2026, 05:37 AM
        0 responses
        23 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-26-2026, 11:10 AM
        0 responses
        23 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-17-2026, 06:09 AM
        0 responses
        55 views
        0 reactions
        Last Post SEQadmin2  
        Working...