Skip to content

Commit

Permalink
Change the default parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sandywang committed Mar 22, 2017
1 parent a860a10 commit 13d57ee
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
23 changes: 12 additions & 11 deletions GUI/gretna_GUI_NetAnalysisInterface.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function gretna_GUI_NetAnalysisInterface_OpeningFcn(hObject, eventdata, handles,
'Absolute'}};
handles.Para.ThresType={1,...
{'Network Sparsity';...
'Similarity Threshold'}};
'Value of Matrix Element'}};
handles.Para.Thres={0.05:0.05:0.5};
handles.Para.NetType={1,...
{'Binary';...
Expand Down Expand Up @@ -107,12 +107,13 @@ function gretna_GUI_NetAnalysisInterface_OpeningFcn(hObject, eventdata, handles,
% 'Nodal - Participant Coefficient', 8};
% Init Postprocess Procedures
handles.NodalModeCell={...
'Nodal - Community Index', 1;...
'Nodal - Participant Coefficient', 2;...
'Modular - Interaction', 3;...
'Nodal - Degree Centrality', 4;...
'Nodal - Betweenness Centrality', 5;...
'Nodal - Efficiency', 6};

'Nodal - Degree Centrality', 1;...
'Nodal - Betweenness Centrality', 2;...
'Nodal - Efficiency', 3;...
'Nodal - Community Index', 4;...
'Nodal - Participant Coefficient', 5;...
'Modular - Interaction', 6};

handles.Para.CIndex={'<-X'};
% Init Mode List Index
Expand Down Expand Up @@ -1263,13 +1264,13 @@ function UpdateConfigInterface(hObject)
NameStr=[NameStr; {'Network Configuration'}];
DataStr=[DataStr; {''}];

NameStr=[NameStr; {' . Identify How to Manipulate the Sign of Matrix'}];
NameStr=[NameStr; {' . Sign of Matrix'}];
DataStr=[DataStr; {''}];
[tmp_name_str, tmp_data_str]=GenOptionalStr(Para.NetSign, ' . . Sign: ');
NameStr=[NameStr; tmp_name_str];
DataStr=[DataStr; tmp_data_str];

NameStr=[NameStr; {' . Identify the Method to Thresholding'}];
NameStr=[NameStr; {' . Thresholding Method'}];
DataStr=[DataStr; {''}];
[tmp_name_str, tmp_data_str]=GenOptionalStr(Para.ThresType, ' . . Method: ');
NameStr=[NameStr; tmp_name_str];
Expand All @@ -1284,13 +1285,13 @@ function UpdateConfigInterface(hObject)
end
DataStr=[DataStr; {tmp_data_str}];

NameStr=[NameStr; {' . Identify Network Type'}];
NameStr=[NameStr; {' . Network Type'}];
DataStr=[DataStr; {''}];
[tmp_name_str, tmp_data_str]=GenOptionalStr(Para.NetType, ' . . Type: ');
NameStr=[NameStr; tmp_name_str];
DataStr=[DataStr; tmp_data_str];
if any(~cellfun(@isempty, strfind(Str, 'Global -')))
NameStr=[NameStr; {' . Generate Random Networks'}];
NameStr=[NameStr; {' . Random Network Generation'}];
DataStr=[DataStr; {''}];
NameStr=[NameStr; {' . . Random Network Number: '}];
DataStr=[DataStr; {num2str(Para.RandNum{1})}];
Expand Down
8 changes: 4 additions & 4 deletions GUI/gretna_GUI_PreprocessInterface.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ function gretna_GUI_PreprocessInterface_OpeningFcn(hObject, eventdata, handles,
'Realign', 4;...
'Normalize', 5;...
'Spatially Smooth', 6;...
'Regress Out Covariates', 7;...
'Temporally Detrend', 8;...
'Temporally Detrend', 7;...
'Regress Out Covariates', 8;...
'Temporally Filter', 9;...
'Scrubbing', 10};

Expand Down Expand Up @@ -101,7 +101,7 @@ function gretna_GUI_PreprocessInterface_OpeningFcn(hObject, eventdata, handles,
{'Register to first'; 'Register to mean'}};

% Normalize
handles.Para.NormSgy={3, ...
handles.Para.NormSgy={1, ...
{'EPI Template'; 'T1 Unified Segmentation'; 'DARTEL'}};

handles.Para.SourPath={'Same To Fun', '', 'D'};
Expand Down Expand Up @@ -194,7 +194,7 @@ function gretna_GUI_PreprocessInterface_OpeningFcn(hObject, eventdata, handles,

% DFC
handles.Para.SWL={50};
handles.Para.SWS={2};
handles.Para.SWS={1};

% Init Mode List Index
handles.UnselPreInd=(1:10)';
Expand Down

0 comments on commit 13d57ee

Please sign in to comment.