Skip to content

Commit

Permalink
Merge pull request astheeggeggs#139 from szhan/allow_invariant_sites
Browse files Browse the repository at this point in the history
Allow for invariant sites in input data
  • Loading branch information
szhan authored Jun 24, 2024
2 parents 4f9e966 + 47dad7f commit b095f74
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lshmm/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,6 @@ def check_inputs(
query_unraveled[:, i] = np.array([core.MISSING, core.MISSING])
num_alleles = core.get_num_alleles(reference_panel, query_unraveled)

if not np.all(num_alleles > 1):
err_msg = "Some sites have less than two distinct alleles."
raise ValueError(err_msg)

# Calculate the emission probability matrix.
if ploidy == 1:
emission_matrix = core.get_emission_matrix_haploid(
Expand Down

0 comments on commit b095f74

Please sign in to comment.