Skip to content

giang-nghg/mccortex-parser-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mccortex-parser-rs

An eager McCortex parser. It streams a kmer out as soon as it's parsed. Currently it relies on callbacks (Rust closures) to do so. The drawback of this approach is subsequent code will be forced to built upon the callback structure as well. However, once generators make it to Rust stable, this should be rewritten to allow more freedom for users.

For example:

let file = File::open("sample.ctx").unwrap();

// 1st closure receives the header, 2nd closure receives the kmers
match mccortex(|s| print!("{:?}\n", s), |s| print!("{:?}\n", s))(&file) {
  Err(e) => panic!(e),
  _ => {}
};

About

McCortex parser written in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages