Skip to content

connectivity_decompose

decompose

Divide a tractogram into its various connections using a brain parcellation(labels). The hdf5 output format allows to store other information required for connectivity, such as the associated labels.

Keywords : nifti, connectivity, decompose, scilpy


Format : tuple val(meta), path(trk), path(labels)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'sample1', single_end:false ]
True
trkfileTractogram to decompose.True*.{trk, tck, vtk, fib, dpy}
labelsfilebrain parcellation. Labels must have 0 as background. Volumes must have isotropic voxels.True*.nii.gz

Format : tuple val(meta), path(*__decomposed.h5)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'sample1', single_end:false ]
True
*__decomposed.h5fileOutput hdf5 file where each bundles is a group with key’LABEL1_LABEL2’. The array_sequence format cannot be stored directly in a hdf5, so each group is composed of ‘data’, ‘offsets’ and ‘lengths’ from the array sequence. The ‘data’ is stored in VOX/CORNER for simplicity and efficiency.
True*__decomposed.h5

Format : tuple val(meta), path(*__labels_list.txt)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'sample1', single_end:false ]
True
*__labels_list.txtfileSave the labels list as text file.True*__labels_list.txt

Format : path(versions.yml)

TypeDescriptionMandatoryPattern
versions.ymlfileFile containing software versionsTrueversions.yml

TypeDescriptionDefaultChoices
no_pruningbooleanIf set, will NOT prune on length. Length criteria in min_len, max_len.False
no_remove_loopsbooleanIf set, will NOT remove streamlines making loops. Angle criteria based on max_angleFalse
no_remove_outliersbooleanIf set, will NOT remove outliers using QuickBundle. Criteria based on —outlier_threshold.False
no_remove_curvbooleanIf set, will NOT remove streamlines that deviate from the mean curvature. Threshold based on max_curv.False
min_lennumberPruning minimal segment length.20.0
max_lennumberPruning maximal segment length.200.0
outlier_thresholdnumberOutlier removal threshold when using hierarchical QuickBundle.0.6
max_anglenumberMaximal winding angle over which a streamline is considered as looping.330
max_curvnumberClustering threshold for centroids curvature filtering with QuickBundle.10
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