Fixelcfestats: error in number of input files

I am trying to run fixelcfestats and I keep getting an error message:
[Error] number of input files does not match number of rows in design matrix.

Here are the contents of the input files:

Here are the contents of the design:

Contrast is 0 1

I have run the -debug mode and the error was as follows:

fixelcfestats: [DEBUG] found 44x2 matrix in file "exact_hitrate_designmat.txt"

fixelcfestats: [DEBUG] deleting scratch buffer for image "scratch fixel mask"...

fixelcfestats: [DEBUG] image "scratch fixel mask" unloaded

fixelcfestats: [DEBUG] unmapping file "fd/index.mif"

fixelcfestats: [DEBUG] image "fd/index.mif" unloaded

fixelcfestats: **[ERROR] number of input files does not match number of rows in design matrix**

Could you let me know what I am doing wrong?

Best,
Alex

That’s an odd one – but I have a vague recollection that sometimes the omission of a newline at the end of the file listing caused problems. Can you try adding (or maybe removing) a blank line at the end of the file listing?

Hi,

I tried both adding and removing blank lines at the end of the text files, but that didn’t work. I managed to get it to work by making a new text file and copying the file names there. There may have been some kind of text encoding differences in my original files.txt that I couldn’t detect.

Thanks!

Good to hear. Yes, this kind of issue has been reported before. Glad you got it worked out.

Parsing of input text files containing filesystem paths for statistical inference input data should be more robust in the next MRtrix3 update.