Crates.io | minced |
lib.rs | minced |
version | 1.0.0 |
source | src |
created_at | 2023-02-05 19:00:32.823552 |
updated_at | 2023-02-05 19:00:32.823552 |
description | A parser for the output of the MinCED CRISPR array annotation tool |
homepage | https://github.com/jimrybarski/minced |
repository | https://github.com/jimrybarski/minced |
max_upload_size | |
id | 777325 |
size | 51,332 |
A Rust parser for the MinCED CRISPR array annotation tool.
Add the following to Cargo.toml:
minced = 1.0.0
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());
}
}