-
Notifications
You must be signed in to change notification settings - Fork 91
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
4766517
commit b8c2329
Showing
3 changed files
with
92 additions
and
50 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,45 @@ | ||
import msprime | ||
|
||
import stdpopsim | ||
|
||
|
||
_species = stdpopsim.get_species("PhoSin") | ||
|
||
|
||
def Robinson2022_TwoEpoch(): | ||
id = "QC-Vaquita2Epoch_1R22" | ||
|
||
populations = [ | ||
stdpopsim.Population(id="Vaquita", description=""), | ||
] | ||
|
||
# Time of second epoch | ||
T_2 = 2162 | ||
# population sizes | ||
N_ANC = 4485 | ||
N_2 = 2807 | ||
|
||
return stdpopsim.DemographicModel( | ||
id=id, | ||
description=id, | ||
long_description=id, | ||
generation_time=_species.generation_time, | ||
mutation_rate=5.83e-9, | ||
populations=populations, | ||
population_configurations=[ | ||
msprime.PopulationConfiguration( | ||
initial_size=N_2, metadata=populations[0].asdict() | ||
), | ||
], | ||
demographic_events=[ | ||
msprime.PopulationParametersChange( | ||
time=T_2, initial_size=N_ANC, population_id=0 | ||
), | ||
], | ||
population_id_map=[{"Vaquita": 0}] * 2, | ||
) | ||
|
||
|
||
_species.get_demographic_model("Vaquita2Epoch_1R22").register_qc( | ||
Robinson2022_TwoEpoch() | ||
) |
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ | |
from . import PanTro # NOQA | ||
from . import OrySat # NOQA | ||
from . import MusMus # NOQA | ||
from . import PhoSin # NOQA |
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