Skip to content

Commit

Permalink
Update main.rs to print stats only, one per line
Browse files Browse the repository at this point in the history
  • Loading branch information
lonsbio authored Oct 28, 2024
1 parent 84193e8 commit 8df7e73
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl fmt::Display for FastaStats {
//"{}\t{}\t{:?}\t{}\t{}",
// "{}\t{:?}\t{:?}",

"{}\t{}",
"{}\n{}",
self.sum_gpu,
self.counts_gpu

Expand Down Expand Up @@ -384,7 +384,8 @@ fn compute_print_stats<R: io::Read>(options: &ArgMatches, filename: &String, rea
match FastaStats::new(*options.get_one::<u64>("minlen").unwrap(),*options.get_one::<u64>("long").unwrap(), reader) {
Ok(Some(stats)) => {
// Prefix the FASTA filename onto the front of the statistics
println!("{}\t{}", filename, stats);
//println!("{}\t{}", filename, stats);
println!("{}", stats);
}
Ok(None) => {
// We could not compute any statistics for the file because
Expand Down Expand Up @@ -527,7 +528,7 @@ fn main() {

// Display the output header.
//println!("FILENAME\tNUMSEQ\tTOTAL\tMIN\tAVG\tMAX");
println!("Filename\tStatistic\tQuality");
//println!("Filename\tStatistic\tQuality");


let files = match options.get_many("FASTQ_FILE") {
Expand Down

0 comments on commit 8df7e73

Please sign in to comment.