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 Mar 12, 2019
1 parent a17266d commit 69f3a99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,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 69f3a99

Please sign in to comment.