Skip to content

Conversation

@godotgildor
Copy link

@godotgildor godotgildor commented Jul 16, 2025

This PR is to address a potential bug in how pseudo-counts are handled in the denominator of enrichment ratios, as mentioned in #75.

In the current code, a single value of 0.5 is added to the sum of all values in the denominator while a value of 0.5 is added to each count in the numerator. I believe this will result in ratios summing to more than 1.

The PR updates the code so that the denominator adds 0.5 * num_elements where num_elements is the number of counts included in the numerator list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant