Mercurial > repos > bimib > cobraxy
changeset 320:4628889348bf draft
Uploaded
author | francesco_lapi |
---|---|
date | Fri, 13 Jun 2025 15:08:27 +0000 |
parents | 3730c835f475 |
children | a9d6e916ea6e |
files | COBRAxy/marea.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/COBRAxy/marea.py Mon Jun 09 12:47:39 2025 +0000 +++ b/COBRAxy/marea.py Fri Jun 13 15:08:27 2025 +0000 @@ -735,7 +735,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)