CRAM: embedded references + multi-slice implies error
@jkbonfield is already working on this.
Since Apr 7, 2017.
Assessment
This issue has not been assessed yet.
Description
$ samtools view -O cram,seqs_per_slice=100,slices_per_container=3,embed_ref mpileup.1.bam -o _.cram
$ samtools view -f 0xffff _.cram
ERROR: md5sum reference mismatch for ref 0 pos 581..1515
CRAM: 4e96f155b96b5a96edd94baa663201f1
Ref : 83916a0a333f001225279539abe685fe
Failure to decode slice
[main_samview] truncated file.
With slices_per_container=1 it's fine, as is without embed_ref or with no_ref option. (Scramble has the same bug too.)
- Dominant language
- C
- Stars
- 950
- Forks
- 475
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 11
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from samtools/htslib
-
Difficulty 3/5 1-2 days Newbie friendliness 74/100
-
Difficulty 3/5 1-2 days Newbie friendliness 76/100
-
tabix performance Open
Similar issues
-
[adam] AdamNet network read doesn't cap to MAX_ADAM_PACKET_LEN, overflows client receive buffers Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
FujiNetWIFI/fujinet-firmware#1649 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
HarbourMasters/Shipwright#7229 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
riscv-software-src/riscv-isa-sim#2435 · 1 comment ·
-
bug Self Built Image SNAPSHOT Supported Device target/ramips
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100