minced-parser

Crates.iominced-parser
lib.rsminced-parser
version2.0.0
sourcesrc
created_at2023-02-05 19:56:38.426561
updated_at2023-02-15 20:08:12.781568
descriptionA parser for the output of the MinCED CRISPR array annotation tool
homepagehttps://github.com/jimrybarski/minced-parser
repositoryhttps://github.com/jimrybarski/minced-parser
max_upload_size
id777359
size53,327
Jim Rybarski (jimrybarski)

documentation

README

minced-parser

A Rust parser for the MinCED CRISPR array annotation tool.

Installation

Add the following to Cargo.toml:

minced-parser = 2.0.0

Usage

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 = minced_parser::parse(&input).unwrap();
    for contig in contigs {
        println!("{} has {} arrays", contig.accession, contig.arrays.len());
    }
}

Documentation

Docs are hosted here.

Commit count: 10

cargo fmt