Skip to content

Commit

Permalink
Add smudge button in ea_checkstructures to open smudge module
Browse files Browse the repository at this point in the history
  • Loading branch information
simonoxen committed Feb 5, 2020
1 parent 40038de commit 95a8e41
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
Binary file modified ea_checkstructures.fig
Binary file not shown.
26 changes: 24 additions & 2 deletions ea_checkstructures.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@

% Edit the above text to modify the response to help ea_checkstructures

% Last Modified by GUIDE v2.5 21-May-2019 11:39:05
% Last Modified by GUIDE v2.5 04-Feb-2020 14:57:52

% Begin initialization code - DO NOT EDIT
gui_Singleton = 0;
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @ea_checkstructures_OpeningFcn, ...
Expand Down Expand Up @@ -852,3 +852,25 @@ function smoothgzip(pathn,filen)
movefile(fullfile(pathn,['s',filen]),fullfile(pathn,filen));
gzip(fullfile(pathn,filen));
delete(fullfile(pathn,filen));


% --- Executes on button press in pushbutton6.
function pushbutton6_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

options = getappdata(handles.checkstructures,'options');
subject_path = fullfile(options.root,options.patientname);
% check for new outputs
if ~isfile(fullfile(subject_path,'glanatComposite.nii.gz'))
errordlg('Didn''t found .nii.gz composite transform. Re-run subject to generate it.');
return
end
slicer_path = ea_runslicer(options,5);
module_script = fullfile(ea_getearoot,'ext_libs','SmudgeModule','SmudgeModule.py');
command = [slicer_path ' --no-main-window --python-script ' module_script ' ' subject_path ' ' ea_getearoot];
system(command);



0 comments on commit 95a8e41

Please sign in to comment.