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

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

Enums

Represents one component of a CRISPR array.

Functions

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