Menu

SPM design matrix doesn't match with the data

QingYuan
2021-06-22
2021-08-23
  • QingYuan

    QingYuan - 2021-06-22

    Dear experts:
    Hello, I have a problem when I want to get Temporal Sorting Components. My data has two runs, and each run has 120 scans. The nscan of the SPM.mat shows [120,120]. But when I use these two runs to do ICA, the diffTimePoint shows 240, when I use one run, it shows 120. So I wonder how to match these two files? I will be sincerely grateful to receive your reply, thank you.

     
  • QingYuan

    QingYuan - 2021-06-22

    I think I haven't describe my question clearly, because there are 30 participants, and I make a group level ICA, so the diffTimePoints is a matrix:1x30 double, and each element here is 240. The nscan of the SPM.mat shows [120,120].
    I'm looking forward to receive your reply!
    Best regards!
    Qingyuan

     
  • Srinivas Rachakonda

    Hi Qingyuan,

    When you select the data, you can select "no" for Is your data stored in one group directory? and select number of subjects and sessions. This will let you select files for each subject and session. Optionally you can use batch template icatb/icatb_batch_files/Input_spatial_ica.m and run batch script or gica_cmd tool (Instructions in the manual)

    Thanks,
    Srinivas

     
    • QingYuan

      QingYuan - 2021-06-23

      Dear experts:
      I'm so grateful to receive your prompt reply! I read the manual and change some parameters and directory path based on the Input_spatial_ica.m . I'd like to clarify something further:

      1. Is the word "session" in your letter means "run"? Every subject has 2 runs so each subject has 2 sessions?
      2. I am accustomed to choose "yes" for "Do you want to estimate the number of independent components?". If I write"doEstimation = 1",what about the "numOfPC1" and "numOfPC2"?
      3. Should I select Semi-blind ICA algorithm and write the refFunNames if I want to do Temporal Sorting?
      4. If I choose Semi-lind ICA, could I ignore the refFiles? (What I want to do is make a group ICA based on spatial information, then do Temporal Sorting.)

      Looking forward to your reply, Thank you!
      Best regards!
      QingYuan

       
      • Srinivas Rachakonda

        Hi QingYuan,

        1. Yes run or session means the same when selecting data.
        2. Estimation tool only gives an approximate number of components in the data. You can select slightly higher number for PC1 compared to PC2 like 40 for PC1 and 30 for PC2 assuming there are 40 timepoints or degrees of freedom in the data.
        3. Yes refFunNames is used when doing semi blind ica. For temporal sort, you can click on the display GUI and select yes for temporal sort when the analysis is finished.
        4. Yes refFiles is used for constrained ica or moo-icar algorithms. you can comment field refFiles or leave it as it is . Variable will not be used in the analysis.

        Thanks,
        Srinivas

         
  • QingYuan

    QingYuan - 2021-06-28

    Dear experts:
    Thank you for your answer, my problem about timporal sorting has been solved perfectly! But there are another question:
    After finding the spacial components which correlate with design matrix, I need to label these component. Before I selected the RSN.zip in icatb_templates file as template, but now I can't use it, Matlab show that 'File "\icatbtemplates\RSN.zip" is not of a recognised type', how can I solve this?

    Looking forward to your reply, Thank you!
    Best regards!
    QingYuan

     
    • Srinivas Rachakonda

      Hi QingYuan,

      Tried it on my end. Component labeler should work fine with RSN.zip file. 'File "\icatbtemplates\RSN.zip" path shows icatbtemplates instead of icatb_templates. Try fixing it if you are using command line.

      Thanks,
      Srinivas

       
  • QingYuan

    QingYuan - 2021-06-29

    Dear experts:

    That's useful, I've got what I want.

    Thanks!
    Best regards!
    QingYuan

     
  • QingYuan

    QingYuan - 2021-07-06

    Dear expert:
    I'm confused that what determines the number of row of the mask_ind in 'ica_parameter_info.mat'? All IC have same number of mask_ind, but the number is different between conditions. I have two group of subjects, which recept different conditions. Both groups of subjects were treated with group ICA. Now I find that in these two groups, the number of columns of ic matrix in 'icac1-1.mat'is different. Is there any way to make them the same?

    Looking forward your reply, thank you!
    Best regards!

     
  • Srinivas Rachakonda

    Hi QingYuan,

    Number of rows in mask_ind is from default mask or custom mask specified. This value should be the same across components unless you are running group ica for each group separately.

    Thanks,
    Srinivas

     

Log in to post a comment.