-
Notifications
You must be signed in to change notification settings - Fork 93
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
move PhoSin QC where it should go #1561
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1561 +/- ##
=======================================
Coverage 99.83% 99.83%
=======================================
Files 131 131
Lines 4334 4340 +6
Branches 595 595
=======================================
+ Hits 4327 4333 +6
Misses 3 3
Partials 4 4 ☔ View full report in Codecov by Sentry. |
Looks like the parameters for the gamma disagree:
This issue was flagged by @igronau in #1548:
@ckyriazis, can you confirm/clarify? |
ah oops sorry about the directory issue! yes, this is what I was expecting - the gamma mean in the original PR was incorrect, -0.0257 is the correct value. |
Hm, I do see that in the paper:
Thanks! I will fix this and merge; if @igronau disagrees, we can discuss and fix it up separately. |
Ah, it looks like it was a case of just grabbing the wrong number - the number previously in the code was from the lower mutation rate:
|
@@ -48,7 +48,7 @@ def _RobinsonDFE(): | |||
# is defined in fitDadi and in SLiM ] | |||
# Since the inferred value of Na is not reported in the supplement, we use | |||
# here the value of the mean as reported in the supp info | |||
gamma_mean = -0.00971 # mean of gamma (see bottom of page 12 in supp) | |||
gamma_mean = -0.0257 # mean of gamma (see bottom of page 12 in supp) |
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.
Yes, this is correct. Thanks, @petrelharp for fixing this.
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.
Looks good.
There was a whoopsie in #1560 I didn't notice - the code was in
qc/PhoSin.py
notstdpopsim/qc/PhoSin.py
. Fixing this.