Running samtools 1.17
OS: Darwin 22.4.0
arm64
gcc --version
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Steps to reproduce
- DL a bam & bai file from http://hgdownload.cse.ucsc.edu/goldenPath/hg19/encodeDCC/wgEncodeUwRepliSeq/ (wgEncodeUwRepliSeqBg02esG1bAlnRep1.bam)
- ls -lh to see it is 64K size
- Truncate it:
truncate -s 60K wgEncodeUwRepliSeqBg02esG1bAlnRep1.bam
samtools quickcheck wgEncodeUwRepliSeqBg02esG1bAlnRep1.bam and there is no error
samtools view wgEncodeUwRepliSeqBg02esG1bAlnRep1.bam | wc -l and you get [W::bam_hdr_read] EOF marker is absent
Running samtools 1.17
OS: Darwin 22.4.0
arm64
gcc --version
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Steps to reproduce
truncate -s 60K wgEncodeUwRepliSeqBg02esG1bAlnRep1.bamsamtools quickcheck wgEncodeUwRepliSeqBg02esG1bAlnRep1.bamand there is no errorsamtools view wgEncodeUwRepliSeqBg02esG1bAlnRep1.bam | wc -land you get [W::bam_hdr_read] EOF marker is absent