Commit 38fea75
committed
CramComparison: ignore mapQ on unmapped reads
SAM spec leaves mapQ undefined for unmapped reads; in practice unaligned
inputs (PacBio CCS, ONT basecaller output) commonly emit mapQ=255 ("not
available") while both htsjdk and samtools normalize it to 0 on CRAM
decode. Without this, every unmapped-read record in a roundtrip against
such input fails on mapQ even though the data is otherwise identical.
Skip the mapQ check when the record is unmapped; the lenient flag
comparison already catches any mismatch in mapped/unmapped status.1 parent 8a4cb98 commit 38fea75
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
205 | 208 | | |
206 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
207 | 212 | | |
208 | 213 | | |
209 | 214 | | |
| |||
0 commit comments