Skip to content

Commit 50c6773

Browse files
committed
added alpha to holm-bon correction
1 parent 50fbed2 commit 50c6773

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

+nla/+net/+mcc/HolmBonferroni.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
methods
77
function p_max = correct(obj, net_atlas, input_struct, prob)
8-
[~, adjusted_pvals, ~] = nla.lib.bonferroni_holm(prob.v);
9-
p_max = max(adjusted_pvals);
8+
[is_significant, adjusted_pvals, ~] = nla.lib.bonferroni_holm(prob.v, input_struct.prob_max);
9+
p_max = max(is_significant .* adjusted_pvals);
1010
end
1111
function correction_label = createLabel(obj, net_atlas, input_struct, prob)
1212
p_max = obj.correct(net_atlas, input_struct, prob);
124 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)