Skip to content

jimrybarski/minced-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Rust parser for the minCED CRISPR array annotation tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages