-
Notifications
You must be signed in to change notification settings - Fork 92
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
gamma b21 QC #1669
base: main
Are you sure you want to change the base?
gamma b21 QC #1669
Conversation
It seems like the tests are failing bc I included more sig figs - is there a standard for how many to use? I just copy and pasted values from the provided supplementary tables |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1669 +/- ##
==========================================
- Coverage 99.84% 99.42% -0.43%
==========================================
Files 136 136
Lines 4656 4684 +28
Branches 470 470
==========================================
+ Hits 4649 4657 +8
- Misses 3 18 +15
- Partials 4 9 +5 ☔ View full report in Codecov by Sentry. |
Ah, I see: the second one is yours.
We don't have a standard. In general I'd think "as many digits as they report"? But, the third digit or so here is not going to make a difference, so what they had isn't wrong. I'd say change the main implementation to agree with yours, after checking they agree up to rounding? The other consideration is if the catalog looks ugly - but I think the values printed there are rounded? If not, maybe we shoudl round? |
That's not the isuse now:
|
If you look at your parameters again and still don't agree with what the original implementer put in, then ping them here (and maybe elsewhere too) to consult? |
Addresses #1649
I've replicated the Gamma DFE from Booker et al. (2021), using the shape and mean parameters from Table S2 and basing the neutral:negative proportion off of the transition:transversion ratio in Table S1.
The authors use PolyDFE to estimate the scaled selection coefficient:
I divided the scaled mean of the gamma distribution by the effective population size quoted in the paper (420,000) to obtain 2sd, then divided by two to get the s coefficient used for homozygotes in SLiM.