Skip to content

Commit

Permalink
Merge pull request #20 from gustavopamplona/gustavopamplona-patch-1
Browse files Browse the repository at this point in the history
Fixed bugs with manual selection and irregular ROI definition
  • Loading branch information
gustavopamplona authored Nov 18, 2020
2 parents f7bc3f1 + 3be9dc7 commit d1016e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Personode.m
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,11 @@ function ICACompChoose_press(src, evt)
[file,path] = uigetfile({ '*.nii', ['Select the ICA map (*.nii) for every subject to be included in the analysis']}, 'MultiSelect', 'on');
for i=1:P.NrSubj
pathName(i)=cellstr(path);
P.fileName(i)=cellstr(file(i));
if ~ischar(file)
P.fileName(i)=cellstr(file(i));
else
P.fileName(i)=cellstr(file);
end
end
file=char(file(1));
else
Expand Down
5 changes: 5 additions & 0 deletions findPeaks.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@
end
end

[min_pos,min_pos_idx]=min(firstValue(firstValue>0));
if min_pos_idx < n_vox
n_vox = min_pos_idx;
end

if peak_value(k)>=0.1
if sep == 1
im=m*(zica>=firstValue(round(n_vox)));
Expand Down

0 comments on commit d1016e1

Please sign in to comment.