Skip to content

Add FDR-correction snippets to graph-analysis scripts #1804

@yu-wei-c

Description

@yu-wei-c

Is your feature request related to a problem? Please describe.
In the graph-analysis example scripts (e.g., example_CON_WU, example_FUN_BUD), the script shows how to calculate measures and run group comparisons (differences and p-values). However, it does not show how to apply FDR correction, even though the GUI tutorial covers this step.

Describe the solution you'd like
Add a minimal FDR-correction snippet to each example script that performs group comparisons, demonstrating how to obtain FDR-adjusted p-values and a significance mask

Additional context
For instance, in example_CON_WU, after computing p-values for degree:

% FDR correction 
q = 0.05; % Typical choices: 0.01, 0.05, 0.10
[p_adj_p1, mask_deg_WU_p1] = fdr(cell2mat(degree_WU_p1).', q);
[p_adj_p2, mask_deg_WU_p2] = fdr(cell2mat(degree_WU_p2).', q);

This feedback is from Alexander Kvist alexander.kvist@ki.se during the Neuroimaging Methods Symposium (NEMES) 2025.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededtestUnit tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions