Dear FSL list,
I have been having problems with performing a successful randomise command after using the setup_masks command. It kept giving me the error:
An exception has been thrown
number of columns in t-contrast matrix doesn't match number of columns in design matrix
I therefore tried several trial versions and finally got it to work when my design matrix was made up of only one EV and a contrast of 1. However, when I made my design matrix and contrast more complex and therefore more informative (Matrix=patient group, control group, age; Contrast = 1 -1 0, -1 1 0) I once again got the same error.
I loaded up both contrast files that were output from the setup_masks scripts and noticed something odd. I should mention that I have 60 subjects with 60 corresponding lesion masks and in the contrast file that worked it showed that I had 61 = Numwaves which is correct. In the contrast that failed it showed I only had 33 waves and the lesion masks were not represented in the second contrast see below.
/NumWaves 33
/NumPoints 2
/Matrix
1.00000e+00 -1.0000e+00 0.00000e+00 0 0 0 0 0 0 0 0 0 .... (This continues for 60 0's)
-1.00000e+00 1.0000e+00 0.00000e_00 (This part was blank)
After manually fixing the NumWaves from 33 to 63 and adding the second row of 0's my randomise script seemed to work as intended but I am curious if this is a problem in the setup_masks script itself or I made an error that I am unaware of.
Thank you,
Jeremy
|