Mercurial > repos > bimib > cobraxy
changeset 321:a9d6e916ea6e draft default tip
Uploaded
author | francesco_lapi |
---|---|
date | Fri, 13 Jun 2025 15:08:52 +0000 |
parents | 4628889348bf |
children | |
files | COBRAxy/flux_to_map.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/COBRAxy/flux_to_map.py Fri Jun 13 15:08:27 2025 +0000 +++ b/COBRAxy/flux_to_map.py Fri Jun 13 15:08:52 2025 +0000 @@ -638,7 +638,8 @@ if len(dataset1Data) != len(dataset2Data): raise ValueError("Datasets must have the same size for Wilcoxon signed-rank test.") # Perform Wilcoxon signed-rank test - _, p_value = st.wilcoxon(dataset1Data, dataset2Data) + np.random.seed(42) # Ensure reproducibility since zsplit method is used + _, p_value = st.wilcoxon(dataset1Data, dataset2Data, zero_method="zsplit") case "mw": # Perform Mann-Whitney U test _, p_value = st.mannwhitneyu(dataset1Data, dataset2Data)