public class AbstractRecordAndOffset
extends java.lang.Object
SamLocusIterator.RecordAndOffset
implementation or one alignment block of
SAMRecord
for TypedRecordAndOffset
implementation.Modifier and Type | Field and Description |
---|---|
protected int |
offset
Zero-based offset in the read corresponding to the current position in AbstractLocusInfo
|
protected SAMRecord |
record
A SAMRecord aligned to reference position
|
Constructor and Description |
---|
AbstractRecordAndOffset(SAMRecord record,
int offset) |
AbstractRecordAndOffset(SAMRecord record,
int offset,
int length,
int refPos) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBaseQualities() |
byte |
getBaseQuality() |
int |
getLength() |
int |
getOffset() |
byte |
getReadBase() |
java.lang.String |
getReadName() |
SAMRecord |
getRecord() |
int |
getRefPos() |
protected void |
validateOffset(int offset,
byte[] array) |
protected final SAMRecord record
protected final int offset
public AbstractRecordAndOffset(SAMRecord record, int offset, int length, int refPos)
record
- inner SAMRecordoffset
- from the start of the readlength
- of alignment blockrefPos
- corresponding to read offset reference positionpublic AbstractRecordAndOffset(SAMRecord record, int offset)
record
- inner SAMRecordoffset
- from the start of the readpublic int getOffset()
public SAMRecord getRecord()
SAMRecord
object.public byte getReadBase()
offset
.public int getLength()
public int getRefPos()
public java.lang.String getReadName()
public byte[] getBaseQualities()
public byte getBaseQuality()
offset
.protected void validateOffset(int offset, byte[] array)