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
            Latest Developments in Precision Medicine
            by seqadmin



            Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

            Somatic Genomics
            “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
            05-24-2024, 01:16 PM
          • 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

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, Yesterday, 06:55 AM
          0 responses
          12 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-30-2024, 03:16 PM
          0 responses
          24 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-29-2024, 01:32 PM
          0 responses
          29 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-24-2024, 07:15 AM
          0 responses
          215 views
          0 likes
          Last Post seqadmin  
          Working...
          X