[][src]Function fmlrc::bwt_converter::convert_to_vec

pub fn convert_to_vec(bwt: impl Read) -> Vec<u8>

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

Arguments

  • bwt - the stream of characters to be compressed, allowed characters are "$ACGNT"; newline characters ('\n') are ignored

Examples

use fmlrc::bwt_converter::convert_to_vec;
use std::io::Cursor;
let seq = Cursor::new("ACGNT$");
let vec = convert_to_vec(seq);
assert_eq!(vec.len(), 6);