This command works, but when trying to look at the resulting file in mrview I get the following error:
[ERROR] invalid first line for key/value file “/Volumes/dml/ajbarnett/Halle_DTI/s220/dti_pasternak_mb3_vx2_PA/R_uncinate.tck” (expected “mrtrix tracks”)
mrview is able to open up older .tck files that I made about a month ago, but any new ones created with tckedit do not work. In between this time, I ran brew update && brew upgrade which updated mrtrix.
How can I get tckedit/mrview back to working?
Any help on why this is happening would be greatly appreciated.
ls -l R_uncinate.tck
-rwx------ 1 alexbarnett staff 8940608 Jan 17 12:24 R_uncinate.tck
tckinfo -debug R_uncinate.tck
tckinfo: [DEBUG] No config file found at "/etc/mrtrix.conf"
tckinfo: [DEBUG] No config file found at "/Users/alexbarnett/.mrtrix.conf"
tckinfo: [DEBUG] reading key/value file "R_uncinate.tck"...
tckinfo: [ERROR] invalid first line for key/value file "R_uncinate.tck" (expected "mrtrix tracks")
I’ve had a quick look at your file: it contains 8.6MB of zeros. I have no idea what could cause this. What version of MRtrix3 are you running? What does tckedit -version report? And does tckgen produce usable output? Is its version the same as tckedit (i.e. do you get the same version with tckgen -version)?
Below is the version information, but the wholebrain.tck I was using was likely from a previous version of tckgen. I hadn’t thought to re-run tckgen. I just re-ran it now, and then performed tckedit and the resulting file is now functional and fine.