Thank you for the hint. I have done this, but became [bam_header_read] EOF marker is absent. The input is probably truncated. I have downloaded my.bam from the galaxy server. So my next question is whether i can manipulate my.bam to get rid of this error.
Error Bam File Is Malformed: Premature End Of File Using Gatk Tool Baserecalibrator
1 answer
try to run samtools view -c your.bam just to check that your file is OK.
• 0 views
•
link
• 0 views
•
link
You probably can't. The most likely explanation is that the download went wrong somehow. You can give a look to this post for clarifications: error: EOF marker is absent when processing a BAM file
• 0 views
•
link
Thanks for the tips! Came across an identical issue and used samtools quickcheck your.bam to identify malformed files
• 0 views
•
link
Log in to answer this question.