Utilities for working with genomic bases, cigar strings, and phred scores.
Bases
wraps aVector[Base]
, and implementsBasesBuffer
, withInt
length- well-suited for sub-contig-sized genomic-sequences, e.g. reads.
BasesBuffer
is a more general interface that can also be implemented for contig-sized sequences (often withLong
length); seeContig
.Base
wraps aByte
, and only a maximum of 5 are instantiated (A
,C
,G
,T
, andN
).- All "wrapping" referenced above uses value classes and carries no run-time cost.