Closed athos closed 4 weeks ago
I think you're correct. The pseudocode was added later and while I tried to get it correct obviously, this is a mistake as BF is "BAM flags" and adheres to the same bit-fields used in SAM/BAM. Thanks for reporting it.
On reviewing outstanding issues I noticed I'd completely forgotten about this one. My apologies.
Thanks for reporting it. There's now a PR to fix this problem which I'll merge once I've verified the build works (a formality I'm sure).
In the CRAM specification, Section 10.6 has the following pseudocode:
I think
(BF AND 4) != 0
in the code should be(BF AND 4) = 0
, as the0x04
bit of theBF
flag means "unmapped". Or am I misunderstanding something?