Skip to content

Commit

Permalink
Store positions to integrers
Browse files Browse the repository at this point in the history
  • Loading branch information
SeviJordi committed Sep 13, 2023
1 parent 0fb3a93 commit f8d28e7
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 @@ -105,7 +105,7 @@ def calc_fst_weir_cockerham(hs:float, ht:float) -> float:

def get_dif_n(df:pd.DataFrame, COV1:str, COV2:str, reference:str, freq:dict) -> float:

positions = df["POS"].unique().tolist()
positions = df["POS"].astype("Int64").unique().tolist()
if len(positions) == 0:
return 0

Expand Down

0 comments on commit f8d28e7

Please sign in to comment.