Crate minced_parser

Source
Expand description

Parses the output produced by MinCED (https://github.com/ctSkennerton/minced), a CRISPR array annotation tool.

§Example

use minced_parser::parse;
use std::fs::File;
use std::io::{BufReader, Read};

let file = File::open("examples/minced.txt").unwrap();
let mut reader = BufReader::new(file);
let mut input = String::new();
reader.read_to_string(&mut input).unwrap();
let contigs = parse(&input).unwrap();
for contig in contigs {
    println!("{} has {} arrays", contig.accession, contig.arrays.len());
}

Structs§

Array
A single CRISPR array.
Contig
Represents all of the CRISPR arrays in a single contig or genome.
RepeatOnly
A single repeat, without a spacer. This is the last repeat in the CRISPR array.
RepeatSpacer
A single repeat and spacer.

Enums§

Repeat
Represents one component of a CRISPR array.

Functions§

parse
Parses the output of minCED for a single contig/genome.