Closed cmnbroad closed 2 years ago
Fixed in refactoring branch.
Closing as fixed (see CRAMIndexPermutationsTests, which tests both CRAI and BAI index queries against CRAMs that were created with artificially small records-per-slice and minimum-single-reference-slice size values that result in multi-ref containers.
Most of the CRAM index tests use containers that consist of a single, multi-ref slice (created by providing fewer than the minimum number of records/container - which is defined by CRAMContainerStreamWriter.MIN_SINGLE_REF_RECORDS - but which span multiple reference sequences). Most of the test queries only resolve to the first reference in the series though; we need to add query tests (bai and crai) against a container with a multi-ref slice that resolve to the borders of the individual references in the slice to ensure the correct records are returned.