public final class CramRecordReader
extends java.lang.Object
CRAMCompressionRecord
s from a set of streams representing data
series/blocks in a Slice. This is essentially a bridge between the various data series streams associated in
a Slice
and the corresponding CRAMCompressionRecord
fields.Modifier and Type | Field and Description |
---|---|
protected ValidationStringency |
validationStringency |
Constructor and Description |
---|
CramRecordReader(Slice slice,
CompressorCache compressorCache,
ValidationStringency validationStringency)
Initialize a Cram Record Reader
|
Modifier and Type | Method and Description |
---|---|
CRAMCompressionRecord |
readCRAMRecord(long sequentialIndex,
int prevAlignmentStart)
Read a CRAMCompressionRecord, using this reader's data series readers.
|
protected final ValidationStringency validationStringency
public CramRecordReader(Slice slice, CompressorCache compressorCache, ValidationStringency validationStringency)
slice
- the slice into which the records should be readvalidationStringency
- how strict to be when reading this CRAM recordpublic CRAMCompressionRecord readCRAMRecord(long sequentialIndex, int prevAlignmentStart)
prevAlignmentStart
- the alignmentStart of the previous record, for position delta calculation