unravel.cluster_stats.fdr_range module#
Use cstats_fdr_range
(fr
) from UNRAVEL to output a list of FDR q values that yeild clusters.
- Inputs:
p value map (e.g., vox_p_*stat.nii.gz from vstats)
- Next command:
cstats_fdr
to correct for multiple comparisons (use the q values fromcstats_fdr_range
).
Usage:#
cstats_fdr_range -i path/vox_p_tstat1.nii.gz -mas path/mask.nii.gz [-q 0.00001 0.00005 0.0001 0.0005 0.001 0.005 0.01 0.05 0.1 0.15 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.95 0.99 0.999 0.9999] [-th 22] [-v]
- unravel.cluster_stats.fdr_range.smart_float_format(value, max_decimals=9)[source]#
Format float with up to max_decimals places, but strip unnecessary trailing zeros.