Skip to content

Commit d7dee7b

Browse files
committed
Weigh the group_hit_counts by EC counts
1 parent 59fe08c commit d7dee7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/Likelihood.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class LL_WOR21 : public Likelihood<T> {
117117
// Create mask identifying groups that have at least 1 alignment
118118
for (size_t i = 0; i < num_ecs; ++i) {
119119
for (size_t j = 0; j < n_groups; ++j) {
120-
group_hit_counts[j] += (alignment(j, i) > 0);
120+
group_hit_counts[j] += (alignment(j, i) > 0) * alignment.reads_in_ec(i);
121121
}
122122
}
123123
for (size_t i = 0; i < n_groups; ++i) {

0 commit comments

Comments
 (0)