Commit 0f30746
committed
Correct writing CRAM alignment span field for unmapped data.
The specification states unmapped data must have alignment start and
alignment span both zero. Previously span was 1 (from end-start+1).
We now adhere to the specification for 3.1 onwards, but it is left
as-is (incorrect) for 3.0.
See previous commit for implications on reading. Outputting spec
compliant CRAM files would make older builds of htslib/samtools fail
to return unmapped data from a CRAM index query. This is not helpful,
so in this case we feel the specification is best amended to permit
other values in the alignment span field (albeit to keep the existing
values as recommendations).1 parent 5dc29e9 commit 0f30746
3 files changed
+29
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1397 | 1397 | | |
1398 | 1398 | | |
1399 | 1399 | | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
1400 | 1403 | | |
1401 | 1404 | | |
1402 | 1405 | | |
| |||
1526 | 1529 | | |
1527 | 1530 | | |
1528 | 1531 | | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
1529 | 1538 | | |
1530 | 1539 | | |
1531 | 1540 | | |
| |||
1923 | 1932 | | |
1924 | 1933 | | |
1925 | 1934 | | |
1926 | | - | |
1927 | | - | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
1928 | 1944 | | |
1929 | 1945 | | |
1930 | 1946 | | |
| |||
2592 | 2608 | | |
2593 | 2609 | | |
2594 | 2610 | | |
2595 | | - | |
| 2611 | + | |
2596 | 2612 | | |
2597 | 2613 | | |
2598 | 2614 | | |
2599 | 2615 | | |
2600 | 2616 | | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
| 2620 | + | |
| 2621 | + | |
| 2622 | + | |
2601 | 2623 | | |
2602 | 2624 | | |
2603 | 2625 | | |
| |||
2632 | 2654 | | |
2633 | 2655 | | |
2634 | 2656 | | |
2635 | | - | |
| 2657 | + | |
2636 | 2658 | | |
2637 | 2659 | | |
2638 | 2660 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5342 | 5342 | | |
5343 | 5343 | | |
5344 | 5344 | | |
5345 | | - | |
| 5345 | + | |
5346 | 5346 | | |
5347 | 5347 | | |
5348 | 5348 | | |
| |||
5449 | 5449 | | |
5450 | 5450 | | |
5451 | 5451 | | |
5452 | | - | |
| 5452 | + | |
5453 | 5453 | | |
5454 | 5454 | | |
5455 | 5455 | | |
| |||
0 commit comments