From 071e3de750fb4ce3cb38a39c338691692983f09f Mon Sep 17 00:00:00 2001 From: Brian Haas Date: Thu, 20 Sep 2018 20:49:03 -0400 Subject: [PATCH] add column headers, reorg output --- Inchworm/src/fastaToKmerCoverageStats.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Inchworm/src/fastaToKmerCoverageStats.cpp b/Inchworm/src/fastaToKmerCoverageStats.cpp index aeb5a28e..cd74526e 100644 --- a/Inchworm/src/fastaToKmerCoverageStats.cpp +++ b/Inchworm/src/fastaToKmerCoverageStats.cpp @@ -113,6 +113,12 @@ int runMe(int argc, char* argv[]) { int start_time = time(NULL); + cout << "acc" << "\t" + << "median_cov" << "\t" + << "mean_cov" << "\t" + << "stdev" << "\t" + << "tid" << endl; + #pragma omp parallel while (true) { @@ -131,14 +137,13 @@ int runMe(int argc, char* argv[]) { unsigned int median_cov = median_coverage(kmer_coverage); float mean_cov = mean(kmer_coverage); float stdev = stDev(kmer_coverage); - float pct_stdev_of_avg = stdev/mean_cov*100; stringstream stats_text; - stats_text << median_cov << "\t" + stats_text << fe.get_accession() << "\t" + << median_cov << "\t" << mean_cov << "\t" - << stdev << "\t" - << pct_stdev_of_avg << "\t" - << fe.get_accession(); + << stdev; + stats_text << "\tthread:" << myTid;