Skip to content

Commit

Permalink
The changes to CRAM have introduced an incompatible change to CRAIEnt…
Browse files Browse the repository at this point in the history
…ry that

affects CramSource in Disq. See the note about incompatible CRAM changes
at https://github.com/samtools/htsjdk/releases/tag/2.17.0.

This commit uses the new CRAIEntry API introduced in samtools/htsjdk#1256
  • Loading branch information
tomwhite committed Jan 23, 2019
1 parent 90e088f commit 8802dee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private NavigableSet<Long> getContainerOffsetsFromIndex(
NavigableSet<Long> containerOffsets = new TreeSet<>();
CRAIIndex index = CRAMCRAIIndexer.readIndex(in);
for (CRAIEntry entry : index.getCRAIEntries()) {
containerOffsets.add(entry.containerStartOffset);
containerOffsets.add(entry.getContainerStartByteOffset());
}
containerOffsets.add(cramFileLength);
return containerOffsets;
Expand Down

0 comments on commit 8802dee

Please sign in to comment.