Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #2
    What's the exact command you used?

    Comment


    • #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


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

        Comment


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

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

          Comment


          • #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

            • seqadmin
              Essential Discoveries and Tools in Epitranscriptomics
              by seqadmin




              The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
              04-22-2024, 07:01 AM
            • seqadmin
              Current Approaches to Protein Sequencing
              by seqadmin


              Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
              04-04-2024, 04:25 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 05-02-2024, 08:06 AM
            0 responses
            16 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-30-2024, 12:17 PM
            0 responses
            20 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-29-2024, 10:49 AM
            0 responses
            25 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-25-2024, 11:49 AM
            0 responses
            28 views
            0 likes
            Last Post seqadmin  
            Working...
            X