help
help > RE: Import first level SPM.mat into conn
Nov 28, 2013 04:11 AM | Alfonso Nieto-Castanon - Boston University
RE: Import first level SPM.mat into conn
Dear Hilary,
It seems that CONN is finding a first-level covariate defined in your original SPM analysis (typically defined in the field SPM.Sess(n).C) but that covariate is actually empty (which seems a bit strange but I guess not impossible depending on how you defined your original SPM.mat files).
I would suggest first making sure that the original SPM.mat files are correctly defined (e.g. run those analyses in SPM to make sure they run without a problem). If they do, then I would suggest trying the attached patch (this patch is for version 13.o; simply copy the attached file in the conn folder overwriting the file with the same name there; the patch simply disregards a covariate in the SPM.mat file if it is empty), and re-import your SPM.mat files, and I believe that should fix this issue. Otherwise please let me know.
Best
Alfonso
Originally posted by Hilary Marusak:
It seems that CONN is finding a first-level covariate defined in your original SPM analysis (typically defined in the field SPM.Sess(n).C) but that covariate is actually empty (which seems a bit strange but I guess not impossible depending on how you defined your original SPM.mat files).
I would suggest first making sure that the original SPM.mat files are correctly defined (e.g. run those analyses in SPM to make sure they run without a problem). If they do, then I would suggest trying the attached patch (this patch is for version 13.o; simply copy the attached file in the conn folder overwriting the file with the same name there; the patch simply disregards a covariate in the SPM.mat file if it is empty), and re-import your SPM.mat files, and I believe that should fix this issue. Otherwise please let me know.
Best
Alfonso
Originally posted by Hilary Marusak:
Dear all,
I am trying to import my individual subject SPM.mats into conn to do a task functional connectivity analysis (1 session/subject).
I am able to import the SPM.mats in the 'Setup', and when I click 'Done', there are some errors:
>>>
CONN: RUNNING SETUP STEP
SOME ERROR FOUNDS!: Please revise the Setup information
ERROR: Subject 1 Session 1 first-level covariate SPM covariates mismatched dimensions (0 rows, while functional data has 381 scans; the number of rows of a first-level covariate should equal the number of scans for this subject/session)
<<<
The first level covariate I added is the realignnment (rp) file for that participant, and it seems to be erroring out for some reason.
When I try preprocessing there is a second error:
>>>
Error using horzcat
Dimensions of matrices being concatenated are not
consistent.
Error in conn (line 1055)
conn_menu('updatehist',CONN_h.menus.m_preproc_00{16},{[b1(1),b1,b1(end)],[0,a1,0],[0,a0,0]});
Error in conn_menumanager (line 112)
feval(MM.MENU{n0}.callback{n1}{1},MM.MENU{n0}.callback{n1}{2:end});
Error while evaluating figure WindowButtonUpFcn
<<<
I would be very grateful if anyone could help me to understand why these errors are occurring- or if anyone has had success importing an SPM first level into Conn.
Thank you!
I am trying to import my individual subject SPM.mats into conn to do a task functional connectivity analysis (1 session/subject).
I am able to import the SPM.mats in the 'Setup', and when I click 'Done', there are some errors:
>>>
CONN: RUNNING SETUP STEP
SOME ERROR FOUNDS!: Please revise the Setup information
ERROR: Subject 1 Session 1 first-level covariate SPM covariates mismatched dimensions (0 rows, while functional data has 381 scans; the number of rows of a first-level covariate should equal the number of scans for this subject/session)
<<<
The first level covariate I added is the realignnment (rp) file for that participant, and it seems to be erroring out for some reason.
When I try preprocessing there is a second error:
>>>
Error using horzcat
Dimensions of matrices being concatenated are not
consistent.
Error in conn (line 1055)
conn_menu('updatehist',CONN_h.menus.m_preproc_00{16},{[b1(1),b1,b1(end)],[0,a1,0],[0,a0,0]});
Error in conn_menumanager (line 112)
feval(MM.MENU{n0}.callback{n1}{1},MM.MENU{n0}.callback{n1}{2:end});
Error while evaluating figure WindowButtonUpFcn
<<<
I would be very grateful if anyone could help me to understand why these errors are occurring- or if anyone has had success importing an SPM first level into Conn.
Thank you!
Threaded View
Title | Author | Date |
---|---|---|
Hilary Marusak | Nov 25, 2013 | |
Alfonso Nieto-Castanon | Nov 28, 2013 | |