Skip to content

qc_tractogram

Extract a couple of QC metric based on a tractogram. - Compute DICE score between the tractogram density mask and WM mask. - Calculate the total number of streamlines from a tractogram. - Produce a QC figure showing the tractogram density image and GM mask.

Keywords : tractogram, qc, dice


Format : tuple val(meta), path(tractogram), path(wm), path(gm)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
tractogramfileTractogram file in .trk format.True*.{trk}
wmfileWhite matter mask in NIfTI format.True*.nii.gz
gmfileGray matter mask in NIfTI format.True*.nii.gz

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

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*__tractogram_mask.nii.gzfileNifti volume - Tractogram mask.True*__tractogram_mask.nii.gz

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

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*__TDI.nii.gzfileTrack Density Image (TDI) volume.True*__TDI.nii.gz

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

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*__dice.txtfileDice score between tractogram mask and white matter mask.True*__dice.txt

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

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*__sc.txtfileStreamline count.True*__sc.txt

Format : tuple val(meta), path(*__coverage_overlay_mqc.png)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*__coverage_overlay_mqc.pngfile.png file containing quality control image for the tractogram coverage overlay. Made for use in MultiQC report.True*__coverage_overlay_mqc.png

Format : path(versions.yml)

TypeDescriptionMandatoryPattern
versions.ymlfileFile containing software versionsTrueversions.yml

TypeDescriptionDefaultChoices
sh_basisstringSpherical harmonics basis to use for FODF fitting.False
spherestringSphere used for the angular discretization.repulsion724
sh_orderintegerSpherical harmonics order to use for FODF fitting.8
normalize_per_voxelbooleanIf set, normalize each SF/SH at each voxel.False
smooth_todibooleanIf set, smooth TODI (angular and spatial).False
asymmetricbooleanIf set, compute asymmetric TODI. Cannot be used with —smooth_todi.False
n_stepsintegerNumber of steps for streamline segments subdivision prior to binning.1

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


Last updated : 2025-12-22