-
Notifications
You must be signed in to change notification settings - Fork 5
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
LIRASignificanceEstimator #57
Conversation
Thanks @infinitron, this is very nice functionality! My proposal would be to get this in as fast as possible and later we can improve docs and tests. So the minimal thing to do here for now is run locally:
This will highlight all the code style issues, which you can fix locally, push again and then the CI build should turn green... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @infinitron! It would be good to add some more documentation, but this can be done any time in future. I opened a reminder issue here #58
Otherwise looks good!
This PR adds a new class called
LIRASignificanceEstimator
to estimate the statistical significance of emission in user-specified regions. This class exposes a method calledestimate_p_values
which returns a dictionary with an upper bound on the p-value for each region.plot_xi_dist
produces a figure similar to Fig. 3 in Stein et al. 2015.