Skip to content

Commit

Permalink
Merge pull request #13 from seqan/coverage
Browse files Browse the repository at this point in the history
[FIX] Output median.
  • Loading branch information
MitraDarja committed Nov 19, 2021
2 parents b276186 + abde7a1 commit d82c2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void compare_cov(std::filesystem::path sequence_file, urng_t kmer_view, urng_t2
get_mean_and_var(avg_islands, mean_avg_island, stdev_avg_island);

std::nth_element(covereage_avg.begin(), covereage_avg.begin() + covereage_avg.size()/2, covereage_avg.end());
int median{};
int median = covereage_avg[covereage_avg.size()/2];

// Store speed and compression
outfile.open(std::string{args.path_out} + method_name + "_coverage.out");
Expand Down

0 comments on commit d82c2b9

Please sign in to comment.