Skip to content

Commit

Permalink
Updated defaultnucleus entry for manual refinements.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreashorn committed Jan 9, 2020
1 parent 7e4a467 commit 9f0f821
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions ea_checkstructures.m
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,25 @@ function ea_checkstructures_OpeningFcn(hObject, eventdata, handles, varargin)
setappdata(handles.checkstructures,'modality',modality);
options.prefs=ea_prefs(options.patientname);
setappdata(handles.checkstructures,'options',options);

switch(options.prefs.machine.checkreg.default)
case 'DISTAL Minimal (Ewert 2017)@STN'
ea_preset_stn(handles)
case 'DISTAL Minimal (Ewert 2017)@GPi'
ea_preset_gpi(handles)
otherwise
parts=ea_strsplit(options.prefs.machine.checkreg.default,'@');
h.Parent.Label=parts{1};
h.Label=parts{2};
ea_setnewatlas(h,[],options,handles);
try
switch(options.prefs.machine.checkreg.default)
case 'DISTAL Minimal (Ewert 2017)@STN'
ea_preset_stn(handles)
case 'DISTAL Minimal (Ewert 2017)@GPi'
ea_preset_gpi(handles)
otherwise
parts=ea_strsplit(options.prefs.machine.checkreg.default,'@');
h.Parent.Label=parts{1};
h.Label=parts{2};
ea_setnewatlas(h,[],options,handles);
end
catch % default (e.g. when changing to a different space
sd=load([ea_space,'ea_space_def.mat']);
defaultnucleus=sd.spacedef.defaultnucleus;
parts=ea_strsplit(defaultnucleus,'@');
h.Parent.Label=parts{1};
h.Label=parts{2};
ea_setnewatlas(h,[],options,handles);
end

% UIWAIT makes ea_checkstructures wait for user response (see UIRESUME)
Expand Down
Binary file modified templates/space/MNI_ICBM_2009b_NLIN_ASYM/ea_space_def.mat
Binary file not shown.

0 comments on commit 9f0f821

Please sign in to comment.