Class ReadBase
- java.lang.Object
-
- htsjdk.samtools.cram.encoding.readfeatures.ReadBase
-
- All Implemented Interfaces:
ReadFeature,Serializable
public class ReadBase extends Object implements Serializable, ReadFeature
A read feature representing a single base with associated quality score.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static byteoperator
-
Constructor Summary
Constructors Constructor Description ReadBase(int position, byte base, byte qualityScore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)bytegetBase()bytegetOperator()Read features are distinguished by operator, similar to cigar operator.intgetPosition()bytegetQualityScore()inthashCode()voidsetBase(byte base)StringtoString()
-
-
-
Field Detail
-
operator
public static final byte operator
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOperator
public byte getOperator()
Description copied from interface:ReadFeatureRead features are distinguished by operator, similar to cigar operator.- Specified by:
getOperatorin interfaceReadFeature- Returns:
- type of the read feature
-
getPosition
public int getPosition()
- Specified by:
getPositionin interfaceReadFeature- Returns:
- zero-based position in the read
-
getQualityScore
public byte getQualityScore()
-
getBase
public byte getBase()
-
setBase
public void setBase(byte base)
-
-