Save trk as nii file?

484 views
Skip to first unread message

j.cos...@jatneurolab.com

unread,
Mar 23, 2018, 4:09:37 PM3/23/18
to DSI Studio
Is it possible to save a trk file as nii that is registered correctly? I can save the tract as a nii.gz extension, however the location information is all off.

Alternatively, does anyone know a way to convert trk files to nii files?

- Jamie

j.cos...@jatneurolab.com

unread,
Mar 23, 2018, 4:15:20 PM3/23/18
to DSI Studio
Found a previous post, will try and come back.

Fang-Cheng Yeh

unread,
Mar 23, 2018, 4:42:11 PM3/23/18
to dsi-s...@googlegroups.com
You can export track density image using [Tract][Save Tract Density]
or convert tracks to ROI using [Track][Tract to ROI] and then save the
ROI as nifti file.

Best regards,
Frank
> --
> You received this message because you are subscribed to the Google Groups
> "DSI Studio" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dsi-studio+...@googlegroups.com.
> To post to this group, send email to dsi-s...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

j.cos...@jatneurolab.com

unread,
Mar 23, 2018, 6:45:53 PM3/23/18
to DSI Studio
Thank you Frank. To update, I am able to save the tracts as Nifti files, though the transformation matrix does not appear to be saved in the nifti file. So, I extracted the transformation matrix from the T1w nifti (that I registered to originally) and applied it using FLIRT -applyxfm.

On Friday, March 23, 2018 at 2:09:37 PM UTC-6, j.cos...@jatneurolab.com wrote:

yi lei

unread,
Jul 20, 2022, 11:18:08 AM7/20/22
to DSI Studio
Hi, i encounted the same problem. could u please tell me how to extract the transformation matrix?
is there any easy way as I'm not familar with coding

Frank Yeh

unread,
Jul 20, 2022, 11:22:43 AM7/20/22
to dsi-s...@googlegroups.com
[Tool][O1 View Images][Header][Set Transformation] -> copy the content and paste it to another to overwrite

yi lei

unread,
Jul 23, 2022, 2:05:15 PM7/23/22
to DSI Studio
thankyou
and is there anyway to convert nii back to trk?

Fang-Cheng Yeh

unread,
Jul 23, 2022, 2:34:39 PM7/23/22
to dsi-s...@googlegroups.com
Sorry there is no way to my best knowledge.
Frank
> --
> You received this message because you are subscribed to the Google Groups "DSI Studio" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dsi-studio+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dsi-studio/eb4566ae-31c9-445c-a2af-2436aaac6b31n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages