KMer

Represents k-mer of ACGT bases of length no more than 32.

Constructors

this
this(S id)

Construct by ID

this
this(S sequence)

Construct from sequence. Takes bases from the provided sequence until K symbols 'A/C/G/T' are found. That is, 'N' and other ambiguous bases are skipped.

Members

Functions

id
ulong id()

Unique ID

sequence
KMerSequence sequence()

Sequence corresponding to the k-mer

Static functions

char2code
int char2code(char base)
Undocumented in source. Be warned that the author may not have intended to support it.
code2base
Base5 code2base(int code)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

KMerSequence
struct KMerSequence
Undocumented in source.

Meta