Skip to content

math

Module: tractogram/math

This module performs mathematical operations on tractograms. It can be used to concatenate multiple tractograms into a single file, compute the union of multiple tractograms, or perform other operations. The available operations are:

  • Concatenate: Combine multiple tractograms into a single file.
  • Union: Compute the union of multiple tractograms.
  • Intersection: Compute the intersection of multiple tractograms.
  • Difference: Compute the difference between two tractograms.
  • Lazy Concatenate: Concatenate multiple tractograms without loading them into memory.

Inputs

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'sample1', single_end:false ]true
trksfileList of tractograms to perform the operation on. e.g. [ path(trk1), path(trk2), path(trk3), ...]true*.trk
referencefileReference tractogram to use for the operation. e.g. [ path(reference) ]false*.{nii,nii.gz}

Outputs

TypeDescriptionPattern
metamapGroovy Map containing sample information e.g. [ id:'sample1', single_end:false ]
trkfileResulting tractogram after the operation. e.g. [ path(trk) ]*.trk
versionsfileFile containing software versionsversions.yml

Tools

DescriptionHomepageDOI
scilpyThe Sherbrooke Connectivity Imaging Lab (SCIL) Python dMRI processing toolbox.https://github.com/scilus/scilpy.git

Authors

@gagnonanthony

Maintainers

@gagnonanthony