public class CramRecordReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
APDelta |
protected ValidationStringency |
validationStringency |
Constructor and Description |
---|
CramRecordReader(BitInputStream coreInputStream,
java.util.Map<java.lang.Integer,java.io.ByteArrayInputStream> externalInputMap,
CompressionHeader header,
ReferenceContext refContext,
ValidationStringency validationStringency)
Initialize a Cram Record Reader
|
Modifier and Type | Method and Description |
---|---|
int |
read(CramCompressionRecord cramRecord,
int prevAlignmentStart)
Read a Cram Compression Record, using this class's Encodings
|
protected final ValidationStringency validationStringency
protected final boolean APDelta
public CramRecordReader(BitInputStream coreInputStream, java.util.Map<java.lang.Integer,java.io.ByteArrayInputStream> externalInputMap, CompressionHeader header, ReferenceContext refContext, ValidationStringency validationStringency)
coreInputStream
- Core data block bit stream, to be read by non-external EncodingsexternalInputMap
- External data block byte stream map, to be read by external Encodingsheader
- the associated Cram Compression HeaderrefContext
- the reference context to assign to these recordsvalidationStringency
- how strict to be when reading this CRAM recordpublic int read(CramCompressionRecord cramRecord, int prevAlignmentStart)
cramRecord
- the Cram Compression Record to read intoprevAlignmentStart
- the alignmentStart of the previous record, for delta calculation