Function barcode_count::info::build_format_string[][src]

pub fn build_format_string(format_data: &str) -> Result<String, Box<dyn Error>>
Expand description

Builds the format string from the file format

Example

use barcode_count::info::build_format_string;
let format_data = "[8]AGCTAGATC{6}TGGA{6}TGGA{6}TGATTGCGC(6)NNNNAT";

assert_eq!(build_format_string(&format_data).unwrap(),  "NNNNNNNNAGCTAGATCNNNNNNTGGANNNNNNTGGANNNNNNTGATTGCGCNNNNNNNNNNAT".to_string())