Skip to content

tractogram_removeinvalid

Remove invalid streamlines from a single or multiple tractograms/bundles.

Keywords : Invalid, Tractograms, Streamlines


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

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'sample1', single_end:false ]True
tractogramfileTractogram or list of tractograms from which to remove invalid streamlines.True*.{trk,tck}

Format : tuple val(meta), path(*.{trk,tck})

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'sample1', single_end:false ]True
*.{trk,tck}fileTractogram without invalid streamlinesTrue*.{trk,tck}

Format : path(versions.yml)

TypeDescriptionMandatoryPattern
versions.ymlfileFile containing software versionsTrueversions.yml

TypeDescriptionDefaultChoices
cut_invalidbooleanCut invalid streamlines rather than removing them. Keep the longest segment only.False
remove_single_pointbooleanConsider single point streamlines as invalid.False
remove_overlapping_pointsbooleanConsider streamlines with overlapping points as invalid.False
thresholdfloatMaximum distance between two points to be considered overlapping.0.001 mm
no_emptybooleanDo not save empty tractogram.False

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


Last updated : 2025-10-30