Commit e1ea5ba 1 parent 11aaa5c commit e1ea5ba Copy full SHA for e1ea5ba
File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,9 @@ InputBuffer get_input_buffer(const CommandLineOptions& opt) {
105
105
}
106
106
}
107
107
108
- void output_abundance (const std::vector<double >& abundances, const References& references){
108
+ void output_abundance (std::ostream& out, const std::vector<double >& abundances, const References& references){
109
109
for (size_t i = 0 ; i < references.size (); ++i) {
110
- std::cout << references.names [i] << ' \t ' << std::fixed << std::setprecision (6 ) << abundances[i] / double (references.sequences [i].size ()) << std::endl;
110
+ out << references.names [i] << ' \t ' << std::fixed << std::setprecision (6 ) << abundances[i] / double (references.sequences [i].size ()) << std::endl;
111
111
}
112
112
}
113
113
@@ -349,11 +349,8 @@ int run_strobealign(int argc, char **argv) {
349
349
abundances[j] += worker_abundances[i][j];
350
350
}
351
351
}
352
-
353
- // output the abundance file
354
- output_abundance (abundances, references);
352
+ output_abundance (out, abundances, references);
355
353
}
356
-
357
354
358
355
logger.info () << " Total mapping sites tried: " << tot_statistics.tot_all_tried << std::endl
359
356
<< " Total calls to ssw: " << tot_statistics.tot_aligner_calls << std::endl
You can’t perform that action at this time.
0 commit comments