Skip to content

Commit

Permalink
Fix argument typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmig committed Oct 3, 2023
1 parent d73e316 commit d1a4c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/scripts/weighted_distances.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def build_cache(df: pd.DataFrame, reference: Seq):
if sample not in cache["hz"]:
cache["hz"][sample] = {}
cache["freq"][sample][pos] = get_frequencies_in_position(site_df, pos, reference)
cache["hz"][sample][pos] = heterozygosity(cache[sample][pos])
cache["hz"][sample][pos] = heterozygosity(cache["freq"][sample][pos])
return cache


Expand Down

0 comments on commit d1a4c76

Please sign in to comment.