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 fce44e2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions stdpopsim/catalog/HomSap/dfes.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ 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
# so, this is 1 / (1 + 2.31) = 0.3021148036253776
prop_synonymous = 0.3

sel_coeff = 10 ** (-3.949)
prop_beneficial = 1.55e-2
positive = stdpopsim.MutationType(
Expand All @@ -248,10 +253,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 fce44e2

Please sign in to comment.