-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b82d6d5
commit 4fb9614
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import stdpopsim | ||
|
||
_species = stdpopsim.get_species("DroMel") | ||
|
||
########################################################### | ||
# | ||
# DFEs | ||
# | ||
########################################################### | ||
|
||
|
||
def _HuberDFE(): | ||
id = "Gamma_H17" | ||
description = "Deleterious Gamma DFE" | ||
long_description = """ | ||
Return neutral and negative MutationType()s representing a drosophila DFE. | ||
Huber et al. (2017), https://doi.org/10.1073/pnas.1619508114. | ||
DFE parameters are based on the Full model described in Table S2, in which | ||
singletons are excluded and a recent mutation rate estimate is used | ||
(mu=3x10e-9, Keightley 2014). | ||
""" | ||
citations = [ | ||
stdpopsim.Citation( | ||
author="Huber et al.", | ||
year=2017, | ||
doi="https://doi.org/10.1073/pnas.1619508114", | ||
reasons="to be defined", # include the dfe_model reason | ||
) | ||
] | ||
neutral = stdpopsim.ext.MutationType() | ||
gamma_shape = 0.33 # shape | ||
gamma_mean = -3.96e-04 # expected value | ||
h = 0.5 # dominance coefficient | ||
negative = stdpopsim.ext.MutationType( | ||
dominance_coeff=h, | ||
distribution_type="g", # gamma distribution | ||
distribution_args=[gamma_mean, gamma_shape], | ||
) | ||
|
||
return stdpopsim.DFE( | ||
id=id, | ||
description=description, | ||
long_description=long_description, | ||
mutation_types=[neutral, negative], | ||
proportions=[0.26, 0.74], # LNS = 2.85 x LS | ||
citations=citations, | ||
) | ||
|
||
|
||
_species.add_dfe(_HuberDFE()) |