Skip to content

Commit 36dad5f

Browse files
committed
Refs #124. Fix mann-whitney less/greater swap.
1 parent d045133 commit 36dad5f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/FilterParameters.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public enum FilterType {
1818
NO_FILTER("-- no filter --", 0.0),
1919
HYPERGEOM("Hypergeometric Test", 0.05),
2020
MANN_WHIT_TWO_SIDED("Mann-Whitney (Two-Sided)", 0.05),
21-
MANN_WHIT_GREATER("Mann-Whitney (One-Sided Less)", 0.05),
22-
MANN_WHIT_LESS("Mann-Whitney (One-Sided Greater)", 0.05),
21+
MANN_WHIT_GREATER("Mann-Whitney (One-Sided Greater)", 0.05),
22+
MANN_WHIT_LESS("Mann-Whitney (One-Sided Less)", 0.05),
2323
NUMBER("Overlap has at least X genes", 5),
2424
PERCENT("Overlap is X percent of EM gs", 25),
2525
SPECIFIC("Overlap is X percent of Sig gs", 25);

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/mannwhit/MannWhitneyUTestSided.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private double calculateAsymptoticPValue(final double Umin,
200200
return p;
201201
}
202202

203-
if(side == Type.GREATER) {
203+
if(side == Type.LESS) {
204204
if(z > 0) {
205205
return 0.5 * p;
206206
} else {

0 commit comments

Comments
 (0)