minced

Crates.iominced
lib.rsminced
version1.0.0
sourcesrc
created_at2023-02-05 19:00:32.823552
updated_at2023-02-05 19:00:32.823552
descriptionA parser for the output of the MinCED CRISPR array annotation tool
homepagehttps://github.com/jimrybarski/minced
repositoryhttps://github.com/jimrybarski/minced
max_upload_size
id777325
size51,332
Jim Rybarski (jimrybarski)

documentation

README

minced

A Rust parser for the MinCED CRISPR array annotation tool.

Installation

Add the following to Cargo.toml:

minced = 1.0.0

Usage

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

fn main() {
    let file = File::open("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());
    }
}
Commit count: 10

cargo fmt