Package htsjdk.samtools.util
Class EdgingRecordAndOffset
- java.lang.Object
-
- htsjdk.samtools.util.AbstractRecordAndOffset
-
- htsjdk.samtools.util.EdgingRecordAndOffset
-
public abstract class EdgingRecordAndOffset extends AbstractRecordAndOffset
Holds a SAMRecord plus the zero-based offset into that SAMRecord's bases and quality scores that corresponds to the base and quality for the start of alignment block at the genomic position described by the AbstractLocusInfo. This is implementation for EdgeReadIterator, fieldtypeadded to indicate whether object represents the start or the end of an alignment block.Subclasses StartEdgingRecordAndOffset and EndEdgingRecordAndOffset are used in EdgeReadIterator to distinguish starting and ending of the alignment block as for each alignment block two objects of
EdgingRecordAndOffsetare created with two different types. The main idea of using EdgeReadIterator is to process alignment block starting from locus where BEGIN type occurs, aggregate information per locus and keep it until END type occurs, then remove alignment block from consideration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEdgingRecordAndOffset.TypeDescribes the type ofTypedRecordAndOffset, whether it represents the start or the end of an alignment block.
-
Field Summary
-
Fields inherited from class htsjdk.samtools.util.AbstractRecordAndOffset
offset, record
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static EdgingRecordAndOffsetcreateBeginRecord(SAMRecord record, int offset, int length, int refPos)static EdgingRecordAndOffsetcreateEndRecord(EdgingRecordAndOffset startRecord)abstract bytegetBaseQuality(int position)abstract intgetRefPos()abstract EdgingRecordAndOffsetgetStart()abstract EdgingRecordAndOffset.TypegetType()-
Methods inherited from class htsjdk.samtools.util.AbstractRecordAndOffset
getBaseQualities, getBaseQuality, getLength, getOffset, getReadBase, getReadName, getRecord, validateOffset
-
-
-
-
Method Detail
-
getStart
public abstract EdgingRecordAndOffset getStart()
-
getType
public abstract EdgingRecordAndOffset.Type getType()
-
getBaseQuality
public abstract byte getBaseQuality(int position)
-
getRefPos
public abstract int getRefPos()
-
createBeginRecord
public static EdgingRecordAndOffset createBeginRecord(SAMRecord record, int offset, int length, int refPos)
-
createEndRecord
public static EdgingRecordAndOffset createEndRecord(EdgingRecordAndOffset startRecord)
-
-