A parser for the output of the PILER-CR CRISPR annotation tool.
Add the following to Cargo.toml:
pilercr-parser = 1.0.1
```rust use std::fs::File; use std::io::{BufReader, Read};
fn main() { let file = File::open("examples/example.txt").unwrap(); let mut reader = BufReader::new(file); let mut input = String::new(); reader.readtostring(&mut input).unwrap(); let arrays = pilercrparser::parse(&input).unwrap(); for array in arrays { println!( "{} has {} arrays", array.accession, array.repeatspacers.len() ); } } ```