extern crate hmm_tblout; fn main() -> Result<(), Box> { // get the command line args, only parse the // first one which should be a fasta file let args: Vec = std::env::args().collect(); if args.len() < 2 { println!("Usage: print_coordinates "); std::process::exit(1); } let reader = hmm_tblout::Reader::from_path(args[1].clone())?; for record in reader.into_records() { let r = record?; let tname = r.target_name(); let strand = r.strand().unwrap(); let alifrom = r.ali_from().unwrap(); let alito = r.ali_to().unwrap(); println!("{}\t{}\t{}\t{}", tname, strand, alifrom, alito); } Ok(()) }