public class AbstractRecordAndOffset
extends java.lang.Object
SamLocusIterator.RecordAndOffset
implementation or one alignment block of
SAMRecord
for TypedRecordAndOffset
implementation.Modifier and Type | Class and Description |
---|---|
static class |
AbstractRecordAndOffset.AlignmentType
Classifies whether the given event is a match, insertion, or deletion.
|
Modifier and Type | Field and Description |
---|---|
protected AbstractRecordAndOffset.AlignmentType |
alignmentType
The
AbstractRecordAndOffset.AlignmentType of this object, which classifies whether the given event is a match, insertion, or
deletion when queried from a SamLocusIterator . |
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,
AbstractRecordAndOffset.AlignmentType alignmentType) |
Modifier and Type | Method and Description |
---|---|
AbstractRecordAndOffset.AlignmentType |
getAlignmentType()
The
AbstractRecordAndOffset.AlignmentType of this object, which classifies whether the given event is a match, insertion, or
deletion when queried from a SamLocusIterator . |
byte[] |
getBaseQualities() |
byte |
getBaseQuality() |
int |
getLength() |
int |
getOffset() |
byte |
getReadBase() |
java.lang.String |
getReadName() |
SAMRecord |
getRecord() |
protected void |
validateOffset(int offset,
byte[] array) |
protected final SAMRecord record
protected final int offset
protected final AbstractRecordAndOffset.AlignmentType alignmentType
AbstractRecordAndOffset.AlignmentType
of this object, which classifies whether the given event is a match, insertion, or
deletion when queried from a SamLocusIterator
.public AbstractRecordAndOffset(SAMRecord record, int offset)
record
- inner SAMRecordoffset
- from the start of the readpublic AbstractRecordAndOffset(SAMRecord record, int offset, AbstractRecordAndOffset.AlignmentType alignmentType)
record
- inner SAMRecordoffset
- from the start of the readalignmentType
- The AbstractRecordAndOffset.AlignmentType
of this object, which is used when queried in
a SamLocusIterator
.public int getOffset()
public SAMRecord getRecord()
SAMRecord
object.public AbstractRecordAndOffset.AlignmentType getAlignmentType()
AbstractRecordAndOffset.AlignmentType
of this object, which classifies whether the given event is a match, insertion, or
deletion when queried from a SamLocusIterator
.public byte getReadBase()
offset
.public int getLength()
public java.lang.String getReadName()
public byte[] getBaseQualities()
public byte getBaseQuality()
offset
.protected void validateOffset(int offset, byte[] array)