Skip to content

Commit

Permalink
Bugfix to robfit_parcelwise. pthr_i was incorrectly set.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Sun committed Sep 5, 2024
1 parent 2906dde commit 3e7dfa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CanlabCore/@fmri_data/robfit_parcelwise.m
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@
% all P-values 1, mafdr may not be suitable
fprintf('Warning:\n%s\nPrior prob of sig P-values is near 1. Using B-H FDR\n', names{i});
pthr_i = FDR(pvalues(:, i), .05);
if isempty(pthr_i), pthr_i(i) = -Inf; end
if isempty(pthr_i), pthr_i = -Inf; end
sig_q05 = pvalues(:, i) < pthr_i;
end

Expand Down

0 comments on commit 3e7dfa6

Please sign in to comment.