Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion +nla/+net/+result/+plot/PermutationTestPlotter.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function plotProbabilityVsNetworkSize(obj, parameters, axes, plot_title)
function plotProbabilityHistogram(obj, axes, histogram_data, statistic_input, no_permutations_network_result, test_method,...
probability_max)
import nla.HistBin

empirical_fdr = cumsum(double(histogram_data) ./ sum(histogram_data));

[~, minimum_index] = min(abs(probability_max - empirical_fdr));
Expand Down
4 changes: 2 additions & 2 deletions +nla/+net/+result/NetworkTestResult.m
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ function fullConnectomePlotting(obj, network_atlas, edge_test_options, edge_test
if obj.is_noncorrelation_input
plot_figure = createFigure(1000, 900);
plotter.plotProbabilityHistogram(subplot(2,2,2), p_value_histogram, obj.full_connectome.p_value.v,...
obj.permutation_results.p_value_permutations.v(:,1), obj.test_display_name, updated_test_options.prob_max);
obj.no_permutations.p_value.v, obj.test_display_name, updated_test_options.prob_max);
plotter.plotProbabilityVsNetworkSize(p_value_vs_network_size_parameters, subplot(2,2,3),...
"Non-permuted P-values vs. Network-Pair Size");
plotter.plotProbabilityVsNetworkSize(full_connectome_p_value_vs_network_size_parameters, subplot(2,2,4),...
Expand All @@ -355,7 +355,7 @@ function fullConnectomePlotting(obj, network_atlas, edge_test_options, edge_test
plotter.plotProbabilityVsNetworkSize(full_connectome_p_value_vs_network_size_parameters, subplot(2,3,6),...
"Permuted P-values vs. Net-Pair Size");
plotter.plotProbabilityHistogram(subplot(2,3,4), p_value_histogram, obj.full_connectome.p_value.v,...
obj.permutation_results.p_value_permutations.v(:,1), obj.test_display_name, updated_test_options.prob_max);
obj.no_permutations.p_value.v, obj.test_display_name, updated_test_options.prob_max);
x_coordinate = 75;
end

Expand Down