Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Truncated BAM files from 1000GP

    I got this error message from SAMTOOLS:

    samtools view -q 30 NA12878.chrom1.SLX.maq.SRP000032.2009_07.bam 1:532036-533055
    [bam_header_read] EOF marker is absent. The input is probably truncated.
    V_0003_FC3009KAAXX:2:22:1481:1181 99 1 531990 72 47M = 532035 92 TTAGGGTGCCTGGGTAATAGCAGAGGAAGAAAAAGGCTTAGAGTTGG +>5@?>+A::BA@=::7<8@78?3@<8:<88:::=:2<1.<.;5-93 RG:Z:SRR001134 MF:i:18 Aq:i:0 NM:i:1 UQ:i:30 H0:i:0 H1:i:6


    when using this BAM file from the 1000GP: ftp://ftp.1000genomes.ebi.ac.uk/vol1...32.2009_07.bam

    Is a truncated file a sign of something seriously wrong? I am using SAMTOOLS v. 0.1.16 if that helps.

  • #2
    A truncated file means it didn't get copied properly - check the size (in bytes) matches the original. I would further suggest verifying the md5 checksum, but it doesn't look like these are provided at ftp://ftp.1000genomes.ebi.ac.uk/vol1...878/alignment/

    I've also seen this "EOF marker is absent" on a valid BAM file when using an old version of samtools. Can you double check which version of samtools you are running?

    Comment


    • #3
      from samtools NEWS file ...

      Beta Release 0.1.6 (2 September, 2009)
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      Notable changes:
      ...

      * BAM files now have an end-of-file (EOF) marker to facilitate
      truncation detection. A warning will be given if an on-disk BAM file
      does not have this marker. The warning will be seen on BAM files
      generated by an older version of samtools. It does NO harm.

      Comment


      • #4
        Ah - so it would be nice if instead of this:

        [bam_header_read] EOF marker is absent. The input is probably truncated.

        it said this:

        [bam_header_read] EOF marker is absent. The input is probably truncated, or was from samtools prior to v0.1.6.

        Given the samtools 0.1.6 was released about a year and a half ago, I guess it is uncommon to fall over this issue unless re-analysing old data.

        Comment


        • #5
          Hi,

          I am using tophat to align my reads and created a non-sorted bam files to do the sorting separately.

          When I run
          samtools view -h tophat_out_dilp/accepted_hits.bam | head -n 30

          I also get the error message
          "[bam_header_read] EOF marker is absent. The input is probably truncated."

          I am using the samtools Version: 0.1.16 (r963:234)
          Does tophat uses a different version of samtools?

          I can't explain this message otherwise.

          Does it means anything about the file or can I still work with it normally?

          Thanks

          Assa

          Comment

          Latest Articles

          Collapse

          • seqadmin
            Recent Advances in Sequencing Analysis Tools
            by seqadmin


            The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
            05-06-2024, 07:48 AM
          • 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

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, Yesterday, 06:35 AM
          0 responses
          14 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-09-2024, 02:46 PM
          0 responses
          18 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-07-2024, 06:57 AM
          0 responses
          17 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-06-2024, 07:17 AM
          0 responses
          19 views
          0 likes
          Last Post seqadmin  
          Working...
          X