---
name: "tff_concatenate_tractograms.py"
section: "1"
platform: "linux"
package: "python3-trx-python"
version: "0.3-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tff_concatenate_tractograms.py"
---

# tff\_concatenate\_tractograms.py(1)

concatenate multiple tractograms into one

## NAME

tff\_concatenate\_tractograms.py - concatenate multiple tractograms into one

## DESCRIPTION

usage: tff\_concatenate\_tractograms.py \[-h\] \[--delete\_dpv\] \[--delete\_dps\]

- \[--delete\_groups\]

  \[--reference REFERENCE\] \[-f\] in\_tractograms \[in\_tractograms ...\] out\_tractogram

Concatenate multiple tractograms into one.

If the data\_per\_point or data\_per\_streamline is not the same for all tractograms, the data must be deleted first.

### positional arguments:

- in\_tractograms

  Tractogram filename. Format must be one of trk, tck, vtk, fib, dpy, trx.

- out\_tractogram

  Filename of the concatenated tractogram.

### options:

- **-h**, **--help**

  show this help message and exit

- **--delete\_dpv**

  Delete the dpv if it exists. Required if not all input has the same metadata.

- **--delete\_dps**

  Delete the dps if it exists. Required if not all input has the same metadata.

- **--delete\_groups**

  Delete the groups if it exists. Required if not all input has the same metadata.

- **--reference** REFERENCE

  Reference anatomy for tck/vtk/fib/dpy file support (.nii or .nii.gz).

- **-f**

  Force overwriting of the output files.
