From 56a5abcc911956268786eba8ee111a9af93e4691 Mon Sep 17 00:00:00 2001 From: Jim Pollaro Date: Fri, 15 Aug 2025 09:34:08 -0500 Subject: [PATCH 1/2] remove hyphen from calling file --- +nla/+net/+result/NetworkResultPlotParameter.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+nla/+net/+result/NetworkResultPlotParameter.m b/+nla/+net/+result/NetworkResultPlotParameter.m index 16be532f..a72e8ad4 100644 --- a/+nla/+net/+result/NetworkResultPlotParameter.m +++ b/+nla/+net/+result/NetworkResultPlotParameter.m @@ -51,7 +51,7 @@ % Get the scale max and the labels if isstring(fdr_correction) || ischar(fdr_correction) - fdr_correction = nla.net.mcc.(fdr_correction)(); + fdr_correction = nla.net.mcc.(erase(fdr_correction, "-"))(); end p_value_max = fdr_correction.correct(obj.network_atlas, obj.updated_test_options, statistic_input); p_value_breakdown_label = fdr_correction.createLabel(obj.network_atlas, obj.updated_test_options,... From 7a90402706cf797acf6faf378787d1ed5f75b0bc Mon Sep 17 00:00:00 2001 From: Jim Pollaro Date: Wed, 3 Sep 2025 09:59:43 -0500 Subject: [PATCH 2/2] make consistent code --- +nla/+net/+result/+plot/NetworkTestPlot.m | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/+nla/+net/+result/+plot/NetworkTestPlot.m b/+nla/+net/+result/+plot/NetworkTestPlot.m index 6fc7a365..4e00a3af 100644 --- a/+nla/+net/+result/+plot/NetworkTestPlot.m +++ b/+nla/+net/+result/+plot/NetworkTestPlot.m @@ -131,14 +131,7 @@ function drawFigure(obj, plot_type) end obj.getPlotTitle(); - switch obj.current_settings.mcc - case "Benjamini-Hochberg" - mcc = "BenjaminiHochberg"; - case "Benjamini-Yekutieli" - mcc = "BenjaminiYekutieli"; - otherwise - mcc = obj.current_settings.mcc; - end + mcc = obj.current_settings.(erase(mcc, "-")); probability = NetworkTestResult().getPValueNames(obj.test_method, obj.network_test_result.test_name);