Skip to content

Commit

Permalink
Merge pull request #241 from smithlabcode/merge-methcounts-bugfix
Browse files Browse the repository at this point in the history
Bugfix in min reads for fraction in merge command
  • Loading branch information
andrewdavidsmith authored Jul 26, 2024
2 parents f4468a0 + 4df3ed6 commit c193b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/merge-methcounts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ write_line_for_tabular(const bool write_fractional,
if (write_fractional) {
for (size_t i = 0; i < n_files; ++i) {
const size_t r = sites[i].n_reads;
if (to_print[i] && r > min_reads)
if (to_print[i] && r >= min_reads)
out << '\t' << sites[i].meth;
else
out << '\t' << "NA";
Expand Down

0 comments on commit c193b9b

Please sign in to comment.