Dear Mrtrix experts,
I am trying to run the tckedit command with -maxlength option:
tckedit WB_tractogram.tck -include ROI1.nii.gz -include ROI2.nii.gz -maxlength 100 OUTPUT.tck -force
The problem is that this works with a whole brain tractogram (WB_sift.tck) file but not with another (WB_scil.tck).
When I run the previous command with “WB_sift.tck”, everything works fine: when I visualize the fibers, none of them exceeds the 100mm length.
However, when I run the same command with “WB_scil.tck”, I dont get any error but when I visualize the fibers, some of them are 130mm-long. So the maxlength option is not working.
I checked the difference between both tractograms and the main difference is the header information:
For WB_sift.tck (this is the one that works):
Tracks file: “/Users/adminuser/Desktop/ANE/Data/RAW_DATA/sub01/WB_sift.tck”
ROI: seed sub_1.mif
And for WB_scil.tck (the one not working):
Tracks file: “/Users/adminuser/Desktop/ANE/Data/RAW_DATA/sub01/WB_scil.tck”
Could this problem be related to the fact that there is no stepsize information in the header? How could I add info to the header of tck files? (mrconvert allows adding header info to .mif files but I dont think there is an analog for tck files)
Thank you and congratulations for your work. It is really helpful for a lot of people