Skip to content

Commit

Permalink
positive selection for HomSap
Browse files Browse the repository at this point in the history
  • Loading branch information
petrelharp committed Jan 19, 2025
1 parent 46ae171 commit f3ac566
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions stdpopsim/catalog/HomSap/dfes.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ def _ZhenDFE():
distribution_type="g", # gamma distribution
distribution_args=[gamma_mean, gamma_shape],
)
# p. 2 in supplement says that the total sequence length of synonymous sites LS
# related to the total sequence length LNS by LNS = 2.31 * LS
prop_synonymous = 1 / (1 + 2.31)

sel_coeff = 10 ** (-3.949)
prop_beneficial = 1.55e-2
positive = stdpopsim.MutationType(
Expand All @@ -248,10 +252,10 @@ def _ZhenDFE():
long_description=long_description,
mutation_types=[neutral, negative, positive],
proportions=[
0.3,
0.7 * (1 - prop_beneficial),
0.7 * prop_beneficial,
], # [0.3 and 0.7 are from Gamma_H17
prop_synonymous,
(1 - prop_synonymous) * (1 - prop_beneficial),
(1 - prop_synonymous) * prop_beneficial,
],
citations=citations,
)

Expand Down

0 comments on commit f3ac566

Please sign in to comment.