3dMVM help

Hello AFNI Gurus,

I am hoping to get some help on two issues I have run into while running 3dMVM

3dMVM -prefix 3dMVM_Intervention_Visit_Contrast -jobs 4
-bsVars ‘Intervention’
-wsVars “Visit”
-SS_type 2
-mask mask_resamp+tlrc
-num_glt 1
-gltLabel 1 Con1-Con2_v2-v1 -gltCode 1 ‘Intervention : 1Con1 -1Con2 Visit: 1v2 -1v1’
-dataTable
Subj Visit Intervention InputFile
sub1 v1 Con1 stats.sub-1_REML+tlrc[34]
sub2 v1 Con2 stats.sub2-1_REML+tlrc[34]

The following error comes out:

Error in outList[[1]][[n]] : subscript out of bounds
Calls: process.MVM.opts → gl_Constr

I am unsure what this means to even attempt to search for a fix.

Secondly I was trying to run another GLT not listed above I ran into the error:

** Error:
Inappropriate coding in test No.1!

for trying to use:

-gltLabel 1 v2-v1 -gltCode 1 ‘Visit : 1v2 -1v1’

am I missing something in the incorrect coding above?

Thanks in advance,

Change this line

-gltCode 1 ‘Intervention : 1Con1 -1Con2 Visit: 1v2 -1v1’ \

to

-gltCode 1 ‘Intervention : 1Con1 -1Con2 Visit : 1v2 -1v1’ \

Also, you may need to add quotes around the square brackets for those input files:

stats.sub-1_REML+tlrc’[34]’

Hi Gang,

Thanks for the quick response, I didn’t notice the lack of space between the colon. I made the recommended changes, but same error falls out.

Error in outList[[1]][[n]] : subscript out of bounds
Calls: process.MVM.opts → gl_Constr

3dMVM -prefix 3dMVM_Intervention_Visit_Contrast -jobs 4
-bsVars ‘Intervention’
-wsVars “Visit”
-SS_type 2
-mask mask_resamp+tlrc
-num_glt 1
-gltLabel 1 Con1-Con2_v2-v1 -gltCode 1 ‘Intervention : 1Con1 -1Con2 Visit : 1v2 -1v1’
-dataTable
Subj Visit Intervention InputFile
sub1 v1 Con1 stats.sub-1_REML+tlrc’[34]’
sub2 v1 Con2 stats.sub2-1_REML+tlrc’[34]’

It’s probably some misspelling in the following line:

-gltCode 1 ‘Intervention : 1Con1 -1Con2 Visit : 1v2 -1v1’ \

See if you could use the following to sort it out:

https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/tutorials/3dMVM_validator/main_toc.html