Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

12 fix bug where if a pseudogene performs better than all real hits that the default pvalue threshold is set to zero #13

Conversation

noamteyssier
Copy link
Owner

  • $\min{X} - \epsilon$ : when direction is Some(Direction::Less)
  • $\max{X} - \epsilon$ : when direction is Some(Direction::Greater)
  • $\min \left[ \set{\min{X} - \epsilon}, 0 \right]$ : when direction is None.

This makes it so the fdr threshold is just out of range in the directional tests, and will be just out of range in the classic pvalue test but will be guaranteed non-negative.

… calculation with epsilon offset so that fdr will be either the min or max with the epsilon. also allows no nonzero results in the case where the direction is none. included tests as well
@noamteyssier noamteyssier merged commit 4ace89b into main May 17, 2023
4 checks passed
@noamteyssier noamteyssier deleted the 12-fix-bug-where-if-a-pseudogene-performs-better-than-all-real-hits-that-the-default-pvalue-threshold-is-set-to-zero branch May 17, 2023 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant