Mercurial > repos > bimib > cobraxy
comparison COBRAxy/flux_to_map.py @ 321:a9d6e916ea6e draft
Uploaded
author | francesco_lapi |
---|---|
date | Fri, 13 Jun 2025 15:08:52 +0000 |
parents | 753347af8bc9 |
children | 3f8336f8072d |
comparison
equal
deleted
inserted
replaced
320:4628889348bf | 321:a9d6e916ea6e |
---|---|
636 case "wilcoxon": | 636 case "wilcoxon": |
637 # Datasets should have same size | 637 # Datasets should have same size |
638 if len(dataset1Data) != len(dataset2Data): | 638 if len(dataset1Data) != len(dataset2Data): |
639 raise ValueError("Datasets must have the same size for Wilcoxon signed-rank test.") | 639 raise ValueError("Datasets must have the same size for Wilcoxon signed-rank test.") |
640 # Perform Wilcoxon signed-rank test | 640 # Perform Wilcoxon signed-rank test |
641 _, p_value = st.wilcoxon(dataset1Data, dataset2Data) | 641 np.random.seed(42) # Ensure reproducibility since zsplit method is used |
642 _, p_value = st.wilcoxon(dataset1Data, dataset2Data, zero_method="zsplit") | |
642 case "mw": | 643 case "mw": |
643 # Perform Mann-Whitney U test | 644 # Perform Mann-Whitney U test |
644 _, p_value = st.mannwhitneyu(dataset1Data, dataset2Data) | 645 _, p_value = st.mannwhitneyu(dataset1Data, dataset2Data) |
645 | 646 |
646 # Calculate means and standard deviations | 647 # Calculate means and standard deviations |