Skip to content

Commit

Permalink
add column headers, reorg output
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjohnhaas committed Sep 21, 2018
1 parent f3738f4 commit 071e3de
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Inchworm/src/fastaToKmerCoverageStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand All @@ -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;

Expand Down

0 comments on commit 071e3de

Please sign in to comment.