@@ -175,28 +175,41 @@ function getPlotTitle(app)
175175 methods (Access = private )
176176
177177 function cohens_d_filter = createSignificanceFilter(app )
178- cohens_d_filter = nla .TriMatrix(app .edge_test_options .net_atlas .numNets , " logical" , nla .TriMatrixDiag .KEEP_DIAGONAL );
179- if isequal(app .CohensDThresholdCheckBox .Enable , true ) && isequal(app .CohensDThresholdCheckBox .Value , true )
180- if isequal(app .test_method , " no_permutations" ) && ~isequal(app .network_test_result .no_permutations , false )
181-
182- end
183- if isequal(app .test_method , " full_connectome" ) && ~isequal(app .network_test_result .full_connectome , false )
184- cohens_d_filter.v = (app .network_test_result .full_connectome .d .v >= app .network_test_options .d_max );
185- end
186- if ~isequal(app .network_test_result .within_network_pair , false ) && isfield(app .network_test_result .within_network_pair , " d" )...
187- && ~isequal(app .test_method , " full_connectome" )
188- cohens_d_filter.v = (app .network_test_result .within_network_pair .d .v >= app .network_test_options .d_max );
189- end
190- else
191- cohens_d_filter.v = true(numel(cohens_d_filter .v ), 1 );
192- end
178+ % REMOVE COHENS D FILTERING UNTIL WE DETERMINE CORRECT CALCULATION FOR IT - ADE 2025MAR24
179+ num_nets = app .edge_test_options .net_atlas .numNets ;
180+ cohens_d_filter = nla .TriMatrix(num_nets , " logical" , nla .TriMatrixDiag .KEEP_DIAGONAL );
181+ cohens_d_filter.v = true(numel(cohens_d_filter .v ), 1 );
182+ return ;
183+
184+ % cohens_d_filter = nla.TriMatrix(app.edge_test_options.net_atlas.numNets, "logical", nla.TriMatrixDiag.KEEP_DIAGONAL);
185+ % if isequal(app.CohensDThresholdCheckBox.Enable, true) && isequal(app.CohensDThresholdCheckBox.Value, true)
186+ % if isequal(app.test_method, "no_permutations") && ~isequal(app.network_test_result.no_permutations, false)
187+ %
188+ % end
189+ % if isequal(app.test_method, "full_connectome") && ~isequal(app.network_test_result.full_connectome, false)
190+ % cohens_d_filter.v = (app.network_test_result.full_connectome.d.v >= app.network_test_options.d_max);
191+ % end
192+ % if ~isequal(app.network_test_result.within_network_pair, false) && isfield(app.network_test_result.within_network_pair, "d")...
193+ % && ~isequal(app.test_method, "full_connectome")
194+ % cohens_d_filter.v = (app.network_test_result.within_network_pair.d.v >= app.network_test_options.d_max);
195+ % end
196+ % else
197+ % cohens_d_filter.v = true(numel(cohens_d_filter.v), 1);
198+ % end
193199 end
194200
195201 function applyScaleChange(app )
196202 progress_bar = uiprogressdlg(app .UIFigure , " Title" , " Please Wait" , " Message" , " Applying Changes..." , " Indeterminate" , true );
197203 progress_bar.Message = " Chaning scale of existing TriMatrix..." ;
198204 app .matrix_plot .applyScale(false , false , app .UpperLimitEditField .Value , app .LowerLimitEditField .Value , app .PlotScaleDropDown .Value , app .ColormapDropDown .Value )
199205 end
206+
207+ function hideCohensDControls(app )
208+ app.CohensDThresholdEditField.Visible = false ;
209+ app.CohensDThresholdCheckBox.Visible = false ;
210+ app.CohensDThresholdEditFieldLabel.Visible = false ;
211+
212+ end
200213 end
201214
202215
@@ -213,6 +226,8 @@ function startupFcn(app, network_test_result, edge_test_result, flags, edge_test
213226 test_method = " within_network_pair" ;
214227 end
215228
229+ app .hideCohensDControls(); % keep cohens d controls in code, but hide from user until we get right calcluations - ADE2025MAR24
230+
216231 app.network_test_result = network_test_result ;
217232 app.edge_test_result = edge_test_result ;
218233 app.test_method = test_method ;
@@ -232,7 +247,7 @@ function startupFcn(app, network_test_result, edge_test_result, flags, edge_test
232247 app.ColormapDropDown.Items = app .colormap_choices ;
233248 app.ColormapDropDown.Value = app.colormap_choices{1 };
234249
235- app .drawTriMatrixPlot()
250+ app .drawTriMatrixPlot();
236251 end
237252
238253 % Callback function
@@ -451,13 +466,14 @@ function createComponents(app)
451466 % Create CohensDThresholdEditFieldLabel
452467 app.CohensDThresholdEditFieldLabel = uilabel(app .Panel );
453468 app.CohensDThresholdEditFieldLabel.HorizontalAlignment = ' right' ;
469+ app.CohensDThresholdEditFieldLabel.Enable = ' off' ;
454470 app.CohensDThresholdEditFieldLabel.Position = [195 237 118 22 ];
455471 app.CohensDThresholdEditFieldLabel.Text = ' Cohen'' s D Threshold' ;
456472
457473 % Create CohensDThresholdEditField
458474 app.CohensDThresholdEditField = uieditfield(app .Panel , ' numeric' );
475+ app.CohensDThresholdEditField.Enable = ' off' ;
459476 app.CohensDThresholdEditField.Position = [339 237 52 22 ];
460- app.CohensDThresholdEditField.Value = 0.5 ;
461477
462478 % Create ColormapDropDownLabel
463479 app.ColormapDropDownLabel = uilabel(app .Panel );
@@ -501,9 +517,9 @@ function createComponents(app)
501517
502518 % Create CohensDThresholdCheckBox
503519 app.CohensDThresholdCheckBox = uicheckbox(app .Panel );
520+ app.CohensDThresholdCheckBox.Enable = ' off' ;
504521 app.CohensDThresholdCheckBox.Text = ' Cohen'' s D Threshold' ;
505522 app.CohensDThresholdCheckBox.Position = [257 207 134 22 ];
506- app.CohensDThresholdCheckBox.Value = true ;
507523
508524 % Create ROIcentroidsonbrainplotsCheckBox
509525 app.ROIcentroidsonbrainplotsCheckBox = uicheckbox(app .Panel );
0 commit comments