Skip to content

Commit

Permalink
Corrected wrong p-value for output of neg. effects in cat_vol_slice_o…
Browse files Browse the repository at this point in the history
…verlay.m
  • Loading branch information
ChristianGaser committed Feb 11, 2025
1 parent 00bd649 commit 033e42b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cat_vol_pbtsimple.m
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@
opt.extendedrange = opt.extendedrange * opt.range;

% additional correction map for values behind tissue boundary, e.g.,
% for the WMD we stimate the distance from the GM/CSF boundary to
% for the WMD we estimate the distance from the GM/CSF boundary to
% limit WMD values to the maximal thickness value
% same idea as below
if opt.extendedrange
Expand Down
9 changes: 7 additions & 2 deletions cat_vol_slice_overlay.m
Original file line number Diff line number Diff line change
Expand Up @@ -641,14 +641,19 @@
fprintf('%7s\t%12s\t%15s\t%s\n\n',valname,'Cluster-Size',' xyz [mm] ','Overlap of atlas region');
end

if logP, val = 10^(-maxZ(j)); else val = maxZ(j); end
if maxZ(j) < 0
maxZ(j) = -maxZ(j);
end

if logP val = 10^(-maxZ(j));
else val = maxZ(j); end

if length(Zj{j}) >= min_extent
fprintf('%7.2g\t%12d\t%4.0f %4.0f %4.0f',val,length(Zj{j}),XYZmmj{j}(:,indZ));
for m=1:numel(labk{j})
if Pl{j}(m) >= min_overlap
if m==1, fprintf('\t%3.0f%%\t%s\n',Pl{j}(m),labk{j}{m});
else fprintf('%7s\t%12s\t%15s\t%3.0f%%\t%s\n',' ',' ',' ',...
else, fprintf('%7s\t%12s\t%15s\t%3.0f%%\t%s\n',' ',' ',' ',...
Pl{j}(m),labk{j}{m});
end
end
Expand Down

0 comments on commit 033e42b

Please sign in to comment.