---
name: "tff_convert_tractogram.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_convert_tractogram.py"
---

# tff\_convert\_tractogram.py(1)

convert tractograms files to updated file format

## NAME

tff\_convert\_tractogram.py - convert tractograms files to updated file format

## DESCRIPTION

usage: tff\_convert\_tractogram.py \[-h\] \[--reference REFERENCE\]

- \[--positions\_dtype {float16,float32,float64}\]

  \[--offsets\_dtype {uint32,uint64}\] \[-f\] IN\_TRACTOGRAM OUT\_TRACTOGRAM

Conversion of '.tck', '.trk', '.fib', '.vtk', '.trx' and 'dpy' files using updated file format standard. TCK file always needs a reference file, a NIFTI, for conversion. The FIB file format is in fact a VTK, MITK Diffusion supports it.

### positional arguments:

- IN\_TRACTOGRAM

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

- OUT\_TRACTOGRAM

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

### options:

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

  show this help message and exit

- **--reference** REFERENCE

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

- **-f**

  Force overwriting of the output files.

### Data type options:

- **--positions\_dtype** {float16,float32,float64}

  Specify the datatype for positions for trx. \[float32\]

- **--offsets\_dtype** {uint32,uint64}

  Specify the datatype for offsets for trx. \[uint64\]
