unravel.cluster_stats.fdr_range module#

Use cstats_fdr_range 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 from cstats_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.parse_args()[source]#
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.

unravel.cluster_stats.fdr_range.fdr_range(input_path, mask_path, q_value)[source]#

Perform FDR correction on the input p value map using a mask.

Parameters:
  • input_path (-) – the path to the p value map

  • mask_path (-) – the path to the mask

  • q_value (-) – the q value for FDR correction

unravel.cluster_stats.fdr_range.main()[source]#