Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added standalone-mode for lead_connectome
you can now start lead_connectome directly by typing lead connectome It can be used as a fully functional connectomics pipeline completely outside the DBS context.
- Loading branch information
1 parent
e3aaa47
commit 32ef0da
Showing
16 changed files
with
489 additions
and
262 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
function ea_addnormmethods(handles,options,mstr) | ||
|
||
if ~exist('mstr','var') | ||
mstr=''; % no macaque mode | ||
end | ||
|
||
% add normalization methods to menu | ||
cnt=1; | ||
|
||
earoot=ea_getearoot; | ||
ndir=dir([earoot,mstr,'ea_normalize_*.m']); | ||
|
||
for nd=length(ndir):-1:1 | ||
[~,methodf]=fileparts(ndir(nd).name); | ||
try | ||
[thisndc,spmvers]=eval([methodf,'(','''prompt''',')']); | ||
if ismember(spm('ver'),spmvers) | ||
ndc{cnt}=thisndc; | ||
normmethod{cnt}=methodf; | ||
if strcmp(ndc{cnt},eval([options.prefs.normalize.default,'(','''prompt''',')'])) | ||
defentry=cnt; | ||
end | ||
cnt=cnt+1; | ||
end | ||
end | ||
end | ||
|
||
|
||
|
||
try | ||
setappdata(handles.leadfigure,'normmethod',normmethod); | ||
set(handles.normmethod,'String',ndc); | ||
catch | ||
if isempty(which('spm')) | ||
warning('It seems that SPM is not installed.'); | ||
end | ||
end | ||
try % set selection of normmethod to default entry (specified in ea_prefs). | ||
if defentry<=length(get(handles.normmethod,'String')) | ||
set(handles.normmethod,'Value',defentry); | ||
end | ||
end | ||
clear defentry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
function ea_addrecentpatient(handles,uipatdir,patsub,chosenix) | ||
earoot=ea_getearoot; | ||
if ~exist('patsub','var') | ||
patsub='patients'; | ||
end | ||
load([earoot,'ea_recentpatients.mat']); | ||
if strcmp(fullrpts,['No recent ',patsub,' found']) | ||
fullrpts={}; | ||
end | ||
|
||
if ~exist('chosenix','var') | ||
try | ||
chosenix=fullrpts{get(handles.recentpts,'Value')}; | ||
catch | ||
chosenix=['Recent ',patsub,':']; | ||
end | ||
end | ||
|
||
try | ||
fullrpts=[uipatdir';fullrpts]; | ||
catch % calls from lead_group could end up transposed | ||
fullrpts=[uipatdir;fullrpts]; | ||
end | ||
|
||
[fullrpts]=unique(fullrpts,'stable'); | ||
if length(fullrpts)>10 | ||
|
||
fullrpts=fullrpts(1:10); | ||
end | ||
[~,nuchosenix]=ismember(chosenix,fullrpts); | ||
save([earoot,'ea_recentpatients.mat'],'fullrpts'); | ||
|
||
ea_updaterecentpatients(handles,patsub,nuchosenix); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.