pub fn decompress_sequence(
compressed: &[u8],
sequence_length: usize,
) -> Result<String>
Expand description
Decompresses a vector of bytes into a DNA sequence string.
The compressed data starts with a 4-byte (u32) integer representing the length of the original DNA sequence, followed by the compressed sequence data. Each base (A, C, T, G) is represented by 2 bits.
§Arguments
compressed
- A slice of bytes containing the compressed DNA sequence.
§Returns
A string containing the decompressed DNA sequence.