Skip to content

Commit

Permalink
Merge pull request #979 from apragsdale/kim_fix
Browse files Browse the repository at this point in the history
Fix the dominance coefficient in Kim DFE
  • Loading branch information
grahamgower committed Jul 14, 2021
2 parents a8bc8bd + 317049b commit e97b67e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/selection_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def KimDFE():
neutral = stdpopsim.ext.MutationType()
gamma_shape = 0.186 # shape
gamma_mean = -0.01314833 # expected value
h = 0.5 / (1 - 7071.07 * gamma_mean) # dominance coefficient
h = 0.5 # dominance coefficient
negative = stdpopsim.ext.MutationType(
dominance_coeff=h,
distribution_type="g",
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ and MutationTypes have the same arguments as in SLiM.
neutral = stdpopsim.ext.MutationType()
gamma_shape = 0.186 # shape
gamma_mean = -0.01314833 # expected value
h = 0.5 / (1 - 7071.07 * gamma_mean) # dominance coefficient
h = 0.5 # dominance coefficient
negative = stdpopsim.ext.MutationType(
dominance_coeff=h,
distribution_type="g", # gamma distribution
Expand Down

0 comments on commit e97b67e

Please sign in to comment.