Skip to content

reconst_shmetrics

shmetrics

Compute FODF metrics from given FODF or SH map.

Keywords : FODF, SH, Metrics


Format : tuple val(meta), path(sh), path(mask), path(fa), path(md)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]
True
shfileSH or FODF map.True*.{nii,nii.gz}
maskfileB0 mask.True*.{nii,nii.gz}
fafileFA map.True*.{nii,nii.gz}
mdfileMD map.True*.{nii,nii.gz}

Format : tuple val(meta), path(*peaks.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]
True
*peaks.nii.gzfilePeaks file.True*peaks.nii.gz

Format : tuple val(meta), path(*peak_indices.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]
True
*peak_indices.nii.gzfilePeak indices file.True*peak_indices.nii.gz

Format : tuple val(meta), path(*peak_values.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]
True
*peak_values.nii.gzfilePeaks values file.True*peak_values.nii.gz

Format : tuple val(meta), path(*afd_max.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]
True
*afd_max.nii.gzfileMaximum Apparent Fiber Density (AFDmax) map.True*afd_max.nii.gz

Format : tuple val(meta), path(*afd_total.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]
True
*afd_total.nii.gzfileTotal Apparent Fiber Density (AFDtotal) map.True*afd_total.nii.gz

Format : tuple val(meta), path(*afd_sum.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]
True
*afd_sum.nii.gzfileSum of all Apparent Fiber Density (Afdsum) map.True*afd_sum.nii.gz

Format : tuple val(meta), path(*nufo.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]
True
*nufo.nii.gzfileNumber of Fiber Orientation (NuFO) map.True*nufo.nii.gz

Format : tuple val(meta), path(*ventricles_mask.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]
True
*ventricles_mask.nii.gzfileVentricles mask.True*ventricles_mask.nii.gz

Format : path(versions.yml)

TypeDescriptionMandatoryPattern
versions.ymlfileFile containing software versionsTrueversions.yml

TypeDescriptionDefaultChoices
sh_basisstringSH basis of the input SH/FODF map.tournier07- tournier07
- descoteaux07
- csa
- fibernav
relative_thresholdfloatRelative threshold to apply to the FODF peaks when computing the metrics. This is a value between 0 and 1 that represents the percentage of the maximum FODF value to use as a threshold for peak detection. For example, if the maximum FODF value in a voxel is 1 and the relative threshold is 0.5, then only peaks with a value greater than 0.5 will be considered for metric computation.0.1
fodf_metrics_a_factorfloatA-factor for the AFD metrics. This is a parameter that controls the sensitivity of the AFD metrics to the FODF values. A higher A-factor will make the AFD metrics more sensitive to higher FODF values, while a lower A-factor will make them more sensitive to lower FODF values. The default value is 8, which is a commonly used value in the literature.8.0
fa_thresholdfloatFA threshold to apply to the FA map when computing the metrics. This is a value between 0 and 1 that represents the minimum FA value for a voxel to be included in the metric computation. For example, if the FA threshold is set to 0.2, then only voxels with an FA value greater than 0.2 will be included in the metric computation.0.2
md_thresholdfloatMD threshold to apply to the MD map when computing the metrics. This is a value in mm^2/s that represents the maximum MD value for a voxel to be included in the metric computation. For example, if the MD threshold is set to 0.001, then only voxels with an MD value less than 0.001 mm^2/s will be included in the metric computation.0.001
absolute_peaksbooleanIf true, the absolute values of the FODF peaks will be used to compute the metrics instead of the relative values. This means that the metrics will be computed based on the actual FODF values at the peaks rather than their values relative to the maximum FODF value in the voxel. This can be useful in cases where the FODF values are not normalized or when comparing across subjects with different FODF scaling.False
single_threadbooleanIf true, the command will be run in single-threaded mode. By default, the command will use multiple threads based on the number of CPUs allocated to the task.False

DescriptionDOI
scilpyThe Sherbrooke Connectivity Imaging Lab (SCIL) Python dMRI processing toolbox.


Last updated : 2026-05-12