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:
  • Field Details

  • Constructor Details

    • ReadBase

      public ReadBase(int position, byte base, byte qualityScore)
  • Method Details

    • getOperator

      public byte getOperator()
      Description copied from interface: ReadFeature
      Read features are distinguished by operator, similar to cigar operator.
      Specified by:
      getOperator in interface ReadFeature
      Returns:
      type of the read feature
    • getPosition

      public int getPosition()
      Specified by:
      getPosition in interface ReadFeature
      Returns:
      zero-based position in the read
    • getQualityScore

      public byte getQualityScore()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getBase

      public byte getBase()
    • setBase

      public void setBase(byte base)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object