We're running TBSS analyses.
The first time around, we renamed the FA files based on their group (in this case genotype) so that they are in alphabetical/logical order. For example,
valmet_tr01_dti_FA.nii.gz
valmet_tr02_dti_FA.nii.gz
valmet_tr03_dti_FA.nii.gz
valval_tr01_dti_FA.nii.gz
valval_tr02_dti_FA.nii.gz
valval_tr03_dti_FA.nii.gz
Now we want to test another gene but don't want to rename/rerun the entire process again because the registration (tbss_2_reg -T) takes hours to run. Instead we'd tried to use Glm to create the matrix and contrast files (design.con & design.mat). We made these in Glm and the design.mat file looks like this:
-bash-4.1$ more design.mat
/NumWaves 2
/NumPoints 52
/PPheights 1.000000e+00 1.000000e+00
/Matrix
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
1.000000e+00 0.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
0.000000e+00 1.000000e+00
However, when we ran randomise, we got the following error:
-bash-4.1$ randomise -i all_FA_skeletonised -o tbss -m mean_FA_skeleton_mask -d design.mat -t design.con -n 500 --T2 -V
randomise options: -i all_FA_skeletonised -o tbss -m mean_FA_skeleton_mask -d design.mat -t design.con -n 500 --T2 -V
Loading Data: ERROR: Program failed
An exception has been thrown
number of rows in design matrix doesn't match number of "time points" in input data!
Exiting
-bash-4.1$
Any help is much appreciated!
|