From 4df3ed6b343c303992f3c13c56da5e8c2a4ac8dd Mon Sep 17 00:00:00 2001 From: Andrew D Smith Date: Thu, 25 Jul 2024 19:24:11 -0700 Subject: [PATCH] src/utils/merge-methcounts.cpp: fixing a bug that used greater than min reads instead of greater than or equal to min reads when filtering sites for using fractional in tabular output --- src/utils/merge-methcounts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/merge-methcounts.cpp b/src/utils/merge-methcounts.cpp index c597aa0..767f0ef 100644 --- a/src/utils/merge-methcounts.cpp +++ b/src/utils/merge-methcounts.cpp @@ -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";