Skip to content

Commit

Permalink
Use BinaryMutationModel to ensure biallelic sites
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Jun 21, 2024
1 parent c7f2125 commit 75b8525
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/lsbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ def get_ts_simple_n10_no_recomb(self, seed=42):
recombination_rate=0.0,
random_seed=seed,
),
model=msprime.BinaryMutationModel(),
rate=0.5,
random_seed=seed,
)
Expand All @@ -220,6 +221,7 @@ def get_ts_simple(self, num_samples, seed=42):
random_seed=seed,
),
rate=5.0,
model=msprime.BinaryMutationModel(),
random_seed=seed,
)
assert ts.num_sites > 5
Expand All @@ -235,6 +237,7 @@ def get_ts_simple_n8_high_recomb(self, seed=42):
random_seed=seed,
),
rate=5.0,
model=msprime.BinaryMutationModel(),
random_seed=seed,
)
assert ts.num_trees > 15
Expand All @@ -251,6 +254,7 @@ def get_ts_custom_pars(self, num_samples, seq_length, mean_r, mean_mu, seed=42):
random_seed=seed,
),
rate=mean_mu,
model=msprime.BinaryMutationModel(),
random_seed=seed,
)
return ts
Expand Down

0 comments on commit 75b8525

Please sign in to comment.