QualityValue

#include <pbbam/QualityValue.h>
class PacBio::BAM::QualityValue

The QualityValue class represents a FASTQ-compatible quality value.

Integers are clamped to [0, 93] (corresponding to ASCII printable chars [!-~]).

Use QualityValue::FromFastq for constructing entries from FASTQ encoding characters. Otherwise, the resulting QualityValue will be interpreted using the character’s numeric value (ignoring the FASTQ offset of 33).

Conversion Methods

static QualityValue FromFastq(const char c)

Creates a QualityValue from a FASTQ-encoding character.

Return
quality value representing (c - 33)
Parameters
  • c: FASTQ character

char Fastq() const

Return
the FASTQ-encoding char for this QualityValue

operator uint8_t() const

Return
the integer value of this QualityValue

Constructors & Related Methods

QualityValue(const uint8_t value = 0)

Creates a QualityValue with specified value.

Parameters
  • value: quality value

QualityValue(const QualityValue &other)
QualityValue(QualityValue &&other)
QualityValue &operator=(const QualityValue &other)
QualityValue &operator=(QualityValue &&other)
~QualityValue()

Public Static Attributes

const uint8_t MAX