[][src]Module fmlrc::bwt_converter

Contains the function for reformating a BWT string into the expected run-length format or numpy file

Constants

COUNT_MASK

Contains the right-shifted number mask

LETTER_BITS

The number of bits for storing the character in a byte

MASK

Contains the character mask

NUMBER_BITS

The number of bit for storing quantity in a byte

NUM_POWER

Multiplier for multi-byte runs

VC_LEN

The number of characters in our alphabet

Functions

convert_to_vec

this function will convert a stream of characters into the compressed vector representation

save_bwt_numpy

This will take some iterable byte array and save it to a file in numpy format. This primarily adds a numpy data type and shape fields that occupies the first 96 bytes of the file. The intended use is to pass in a compressed BWT for saving them, but really any byte array can be stored this way.