Skip to content
Snippets Groups Projects
Commit 7a8fc9fb authored by nfontrod's avatar nfontrod
Browse files

src/find_interaction_cluster/community_figures/fig_functions.py: fix get_permutation_mean function

parent 661d27aa
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,7 @@ def get_permutation_mean(df_ctrl: pd.DataFrame,
:return: The list of mean frequencies of `nt` in each subsample
"""
return [
float(np.mean(df_ctrl[cpnt].sample(size, replace=True).values))
float(np.mean(df_ctrl[cpnt].sample(int(size), replace=True).values))
for _ in range(iteration)
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment