Skip to content

Commit

Permalink
proportion neutral
Browse files Browse the repository at this point in the history
  • Loading branch information
petrelharp committed May 16, 2023
1 parent 5f109bc commit 7d657ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion stdpopsim/qc/AraTha.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,16 @@ def Huber2018DFE():
# (1+s for homozygote in SLiM versus 1+2s in dadi)
distribution_args=[-2 * gamma_shape * gamma_scale, gamma_shape], # mean, shape
)
# proportion of single-nuc changes that are synonymous,
# from counting the codon table
prop_neutral = 330 / 1728

return stdpopsim.DFE(
id=id,
description=id,
long_description=id,
mutation_types=[neutral, negative],
proportions=[0.3, 0.7],
proportions=[prop_neutral, 1 - prop_neutral],
)


Expand Down
2 changes: 1 addition & 1 deletion stdpopsim/qc/HomSap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,7 @@ def Huber2017():
negative = stdpopsim.MutationType(
dominance_coeff=0.5,
distribution_type="g", # gamma distribution
distribution_args=[-0.014, 0.19],
distribution_args=[-0.014, 0.19], # mean, shape
)

return stdpopsim.DFE(
Expand Down

0 comments on commit 7d657ad

Please sign in to comment.