[−][src]Function fmlrc::ropebwt2_util::create_bwt_from_strings
pub fn create_bwt_from_strings(data: &[&str]) -> Result<String, Box<dyn Error>>
Wrapper function for using ropebwt2 with collection of strings.
This is primarily for performing easy tests within the Rust environment.
For production, we recommend running the ropebwt2
command separately.
IMPORTANT: This requires that ropebwt2
is installed locally and on the PATH
.
Arguments
data
- a string instance where individual strings are separated by newline characters ('\n')
Examples
use fmlrc::ropebwt2_util::create_bwt_from_strings; let data: Vec<&str> = vec!["CCGT", "ACG"]; assert_eq!(create_bwt_from_strings(&data).unwrap(), "GT$$ACCCG\n".to_string());