USAGE:(1)
πΈ NAME πΈ
okay bestie, welcome to the usage: manual page β section 1, User Commands, the whole vibe π
it's the man page for usage: tff_manipulate_datatype [-h], so if you came here looking for how to change the datatype of stuff inside a TRX file, you are SO in the right place π«Ά
β¨ DESCRIPTION β¨
so here's the whole invocation, laid out exactly like the tool prints it:
usage: tff_manipulate_datatype [-h]
[--positions_dtype {float16,float32,float64}]
[--offsets_dtype {uint32,uint64}] [--dpv NAME DTYPE] [--dps NAME
DTYPE] [--groups NAME DTYPE] [--dpg GROUP NAME DTYPE] [-f]
in_tractogram out_tractogram
Manipulate a TRX file internal array to change their data type. that's the whole point of this icon β¨
now the part you actually need to know, no cap: every single instance of --dps, --dpv and --groups wants 2 arguments (FILE, DTYPE). and --dpg? she's extra, she wants 3 arguments (GROUP, FILE, DTYPE) π
and the DTYPE menu, your choices are:
(u)int8,(u)int16,(u)int32,(u)int64float16,float32,float64bool
here's the example command, copied exactly, do not @ me:
tff_manipulate_datatype.py input.trx output.trx
--position float16 --offsets uint64 --dpv color_x uint8 --dpv
color_y uint8 --dpv color_z uint8 --dpv fa float16 --dps algo uint8
--dps clusters_QB uint16 --dps commit_colors uint8 --dps
commit_weights float16 --group CC uint64 --dpg CC mean_fa float64
π positional arguments: π
in_tractogramβ your Input TRX file πout_tractogramβ the Output filename. the format has to be one oftrk,tck,vtk,fib,dpy,trx. pick one bestie, those are the options π¦
π§ options: π§
-h,--helpβ show this help message and exit, the classic π«Ά-fβ Force overwriting of the output files. yes she will bulldoze your old file, that's the point π
π Data type options: π
--positions_dtype {float16,float32,float64}β Specify the datatype for positions for trx.[float16, float32, float64]--offsets_dtype {uint32,uint64}β Specify the datatype for offsets for trx.[uint32, uint64]
π Streamlines metadata options: π
--dpv NAME DTYPEβ Specify the datatype for a specificdata_per_vertex.--dps NAME DTYPEβ Specify the datatype for a specificdata_per_streamline.--groups NAME DTYPEβ Specify the datatype for a specific group.--dpg GROUP NAME DTYPEβ Specify the datatype for a specificdata_per_group.
and then, because argparse loves to repeat herself, here's that usage block one more time:
[--positions_dtype {float16,float32,float64}]
[--offsets_dtype {uint32,uint64}] [--dpv NAME DTYPE] [--dps NAME
DTYPE] [--groups NAME DTYPE] [--dpg GROUP NAME DTYPE] [-f]
in_tractogram out_tractogram
and the moment we all fear β forgetting your positionals:
tff_manipulate_datatype: error: the following arguments are required:
in_tractogram, out_tractogram
fr fr, if you see that error it's because you left outin_tractogramandout_tractogram. the tool is not being mysterious, she is telling you exactly what's missing π
okay that's the whole page, mwah π this came from the usage: source, version tff_manipulate_datatyp..., dated September 2025 β love that for her, periodt π
β¨π
π¦ where this page comes from
- fedora 43: python3-trx-python 0.3-9.fc43 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms