help > RE: conditions: matrix exceeds dimensions-problem
Jul 30, 2012  03:07 PM
RE: conditions: matrix exceeds dimensions-problem
Hi Niels,

I believe I see how that could be a problem for the current version of the toolbox (the toolbox expects to perform task-related analyses of connectivity so it will have a problem with some task conditions not being defined for a subset of subjects). In any way, for your purposes (where you are not trying to perform task-related analyses of connectivity but rather would like to simply remove any task-related effects from the BOLD timeseries) you should be able to simply import the SPM task information as first-level covariates (instead of as conditions). I have modified the conn_importspm.m script (attached) to allow you to do just that. Before performing the import step go to the matlab command line and type:
 
  global CONN_x;
  CONN_x.Setup.spmascovariate=true;

and then run the 'import from SPM' process as usual. That should import any task-related effects (as defined in SPM) as 'first-level covariates', instead of importing them as 'conditions', into the conn toolbox project information. Then fill-in manually the 'conditions' information (simply select all subjects and add a new condition named 'rest' and set 'onset' to 0 and 'duration' as inf). Last simply make sure that the newly created covariates (named 'SPM effects', for task effects, and possibly another named 'SPM covariates' or 'realignment', for subject movement effects) are present in the confounds list during the preprocessing step (and that will remove these task-related effects from the BOLD timeseries before computing any connectivity measures, implementing the process described in Fair et al.)

Let me know if you run into any issues (if this works fine I will add this as an option into the GUI and batch commands for the benefit of other users in the same or similar situation)

Best
Alfonso

Originally posted by Niels Foit:
Hi Alfonso

It is indeed the case that not all conditions are present in all subjects. my experiment consisted of three session, but unfortunaltey some patients were scanned only twice (event-related paradigm, slow, big interstimulus-intervals). My intention was to model a) task-related conn. and b) try to remove the task-effect as described in the neuroimage paper. to do so, i have to import all subjects, despite slight differences in the paradigm. if this doesn't work, i will exclude two or three pats.Originally posted by Alfonso Nieto-Castanon:
Hi Niels,

Re-reading your previous post it seems that perhaps not all of the conditions are present in all of the subjects? If this is the case, could you please tell me a bit more about your design? (what your conditions and subject sample are) I am thinking that perhaps you are attempting to model as within-subject effects (e.g. conditions) something that might be better modeled as between-subject effects (e.g. second-level regressors)...

Best
Alfonso

Originally posted by Niels Foit:
Hi Alphonso
 
thank you for the patch, unfortunately it did not solve the problem! any other suggestions?
 
cheers
 
niels
Attachment: conn_importspm.m reply reply with quote
Threaded View
TitleAuthorDate
conditions: matrix exceeds dimensions-problemNiels FoitJul 24, 2012
      RE: conditions: matrix exceeds dimensions-problemAlfonso Nieto-CastanonJul 24, 2012
            RE: conditions: matrix exceeds dimensions-problemNiels FoitJul 24, 2012
                  RE: conditions: matrix exceeds dimensions-problemAlfonso Nieto-CastanonJul 25, 2012
                        RE: conditions: matrix exceeds dimensions-problemNiels FoitJul 26, 2012
                              RE: conditions: matrix exceeds dimensions-problemAlfonso Nieto-CastanonJul 26, 2012
                                    RE: conditions: matrix exceeds dimensions-problemNiels FoitJul 28, 2012
                                          RE: conditions: matrix exceeds dimensions-problemAlfonso Nieto-CastanonJul 30, 2012