bitnuc

Function split_packed

Source
pub fn split_packed(
    ebuf: &[u64],
    slen: usize,
    idx: usize,
    lbuf: &mut Vec<u64>,
    rbuf: &mut Vec<u64>,
) -> Result<(), NucleotideError>
Expand description

Splits a packed nucleotide sequence into two subsequences at the given index.

§Arguments

  • ebuf - The encoded sequence buffer
  • slen - The total length of the sequence in bases
  • idx - The position to split at (included in right sequence)
  • lbuf - Buffer to store the left subsequence
  • rbuf - Buffer to store the right subsequence

§Errors

Returns an error if the index is out of bounds