Class CramRecordReader
java.lang.Object
htsjdk.samtools.cram.encoding.reader.CramRecordReader
A reader used to consume and populate encoded
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.-
Field Summary
-
Constructor Summary
ConstructorDescriptionCramRecordReader
(Slice slice, CompressorCache compressorCache, ValidationStringency validationStringency) Initialize a Cram Record Reader -
Method Summary
Modifier and TypeMethodDescriptionreadCRAMRecord
(long sequentialIndex, int prevAlignmentStart) Read a CRAMCompressionRecord, using this reader's data series readers.
-
Field Details
-
validationStringency
-
-
Constructor Details
-
CramRecordReader
public CramRecordReader(Slice slice, CompressorCache compressorCache, ValidationStringency validationStringency) Initialize a Cram Record Reader- Parameters:
slice
- the slice into which the records should be readvalidationStringency
- how strict to be when reading this CRAM record
-
-
Method Details
-
readCRAMRecord
Read a CRAMCompressionRecord, using this reader's data series readers.- Parameters:
prevAlignmentStart
- the alignmentStart of the previous record, for position delta calculation- Returns:
- the newly-read CRAMCompressionRecord
-