bamdst gives error "EOF marker is absent. The input is probably truncated."
Entering edit mode
12 months ago
shpak.max ▴ 20

I created a set of bam files from Poolseq data using bwa -aln, and all of the output files gave the following error when I ran bamdst to get summary statistics on read depth:

"EOF marker is absent. The input is probably truncated."

When I ran a search for the error message, i found nothing specific to bamdst but several boards noted that samtools would return this error on bam files generated with several output arguments, presumably when converting sam to bam, e.g.

Unfortunately the patch described goes to a dead link.

My main questions are: A. Why is bwa (or samtools conversion from sam to bam) generating bams with this missing EOF/truncation error? B. Is this something that I need to worry about? Apart from not being able to get summary stats from bamdst, the bam files seem to be processed without issue downstream in my pipeline. C. If the missing EOF is a problem, what can be done about it? I re-ran my alignment in case the truncation was due to termination prior to completion, but that wasn't the problem. I also attempted to convert bam to sam and back to bam again, but the error persists.

bwa samtools bamdst • 711 views
Entering edit mode

This is probably too late, but how exactly did you convert between sam and bam?


Login before adding your answer.

Traffic: 708 users visited in the last hour
Help About
Access RSS

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6