Skip to content

Commit

Permalink
Generalise to multiallelic sites
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Sep 12, 2023
1 parent e30ee2a commit 65e7a1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/tests/beagle.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def interpolate_allele_probabilities(
imputed_cm = convert_to_genetic_map_position(imputed_pos)
weights = get_weights(genotyped_pos, imputed_pos)
assert x == len(weights)
p = np.zeros((x, 2), dtype=np.float64)
p = np.zeros((x, len(alleles)), dtype=np.float64)
# Compute allele probabilities as per Equation 1 in BB2016.
for a in alleles:
for i in np.arange(x):
Expand Down
2 changes: 1 addition & 1 deletion python/tests/beagle_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def interpolate_allele_probabilities(
imputed_cm = convert_to_genetic_map_position(imputed_pos)
weights = get_weights(genotyped_pos, imputed_pos)
assert x == len(weights)
p = np.zeros((x, 2), dtype=np.float64)
p = np.zeros((x, len(alleles)), dtype=np.float64)
# Compute allele probabilities as per Equation 1 in BB2016.
for a in alleles:
for i in np.arange(x):
Expand Down

0 comments on commit 65e7a1b

Please sign in to comment.