Calculate portion of a sequence that is either the G or C nucleotide, on a scale of 0 to 1.
A compact binary deserialization of our sequence. Useful for file storage.
The first four bytes is sequence length, big endian; we need this, since one of our nucleotides necessarily serializes
to 0b00.
todo: Is this MSB or LSB?
Insert a segment of one sequence into another. For example, for cloning.
Note that insert_loc uses 1-based indexing.
Reverse direction, and swap C for G, A for T.
Convert a string to bytes associated with ASCII letters. For compatibility with external libraries.
Convert a nucleotide sequence to string.
Sequence weight, in Daltons. Assumes single-stranded.
A compact binary serialization of our sequence. Useful for file storage.
The first four bytes is sequence length, big endian; we need this, since one of our nucleotides necessarily serializes
to 0b00.