Skip to content

Commit

Permalink
write script
Browse files Browse the repository at this point in the history
  • Loading branch information
petrelharp committed Jul 7, 2024
1 parent a087382 commit 6d84bae
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_slim_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ def verify_slim_sim(self, ts, num_samples):
@pytest.mark.usefixtures("tmp_path")
def test_dfe_no_demography(self, tmp_path):
fname = tmp_path / "test_dfe_no_demography.trees"
cmd = (
f"-q -e slim --slim-scaling-factor 50 --slim-path {slim_path} "
"--slim-script "
f"HomSap -c chr22 -l 0.02 -o {fname} --dfe Gamma_K17 -s 24 "
f"pop_0:5"
).split()
capture_output(stdpopsim.cli.stdpopsim_main, cmd)
cmd = (
f"-q -e slim --slim-scaling-factor 50 --slim-path {slim_path} "
f"HomSap -c chr22 -l 0.02 -o {fname} --dfe Gamma_K17 -s 24 "
Expand All @@ -122,6 +129,13 @@ def temp_file():

with temp_file() as fn:
f, fname = fn
cmd = (
f"-q -e slim --slim-scaling-factor 20 --slim-path {slim_path} "
"--slim-script "
f"HomSap -c chr22 -l 0.01 -o {fname} --dfe Gamma_K17 -s 984 "
f"pop_0:5"
).split()
capture_output(stdpopsim.cli.stdpopsim_main, cmd)
cmd = (
f"-q -e slim --slim-scaling-factor 20 --slim-path {slim_path} "
f"HomSap -c chr22 -l 0.01 -o {fname} --dfe Gamma_K17 -s 984 "
Expand Down

0 comments on commit 6d84bae

Please sign in to comment.