Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dena.dinesh
    Member
    • Feb 2013
    • 58

    #1

    EOF marker is absent in samtools

    HI,

    In my RNAseq raw data, I filtered out adapter sequence using fastx and later removed rRNA reads by mapping to rRNA reference file. When I tried to convert unaligned reads from rRNA mapping to bam format, It throws me an error that
    [bam_header_read] EOF marker is absent. The input is probably truncated.
    [bam_header_read] invalid BAM binary header (this is not a BAM file).
    [main_samview] fail to read the header from xxx.sam

    I don’t what is the problem and how to tackle it.

    Any Ideas or suggestions?
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    What's the exact command you used?

    Comment

    • dena.dinesh
      Member
      • Feb 2013
      • 58

      #3
      Hi Ryan,

      I initially used
      samtools view -b control_1.sam > control_1.bam and got the error

      then later when I used -T option and providing the path of fasta file

      samtools view -b -T /path/to/reference/fasta_file control_1.sam > control_1.bam

      it worked but I am not sure whether this approach is right or wrong?

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        The input is SAM formatted, so you need the -S switch:
        Code:
        samtools view -Sb control_1.sam > control_1.bam

        Comment

        • dena.dinesh
          Member
          • Feb 2013
          • 58

          #5
          Thank you Ryan. I tried -Sb option and it worked

          Is using -T option and providing reference Transcriptome file is correct?

          Comment

          • dpryan
            Devon Ryan
            • Jul 2011
            • 3478

            #6
            No, that'll produce a non-functional file (it's surprising that it didn't produce an error). The purpose of the -T option is if you have a BAM file that doesn't have a header for some reason. Then you can replace it with the information from an indexed fasta file (hopefully the reads were aligned to that fasta file...otherwise the alignments will be to the wrong chromosomes).

            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, Yesterday, 11:13 AM
            0 responses
            17 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, Yesterday, 10:48 AM
            0 responses
            18 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...