JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for SPM Archives


SPM Archives

SPM Archives


SPM@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

SPM Home

SPM Home

SPM  March 2022

SPM March 2022

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: ROI Analysis of surface measures

From:

Christian Gaser <[log in to unmask]>

Reply-To:

Christian Gaser <[log in to unmask]>

Date:

Wed, 30 Mar 2022 10:25:21 +0100

Content-Type:

multipart/mixed

Parts/Attachments:

Parts/Attachments

text/plain (178 lines) , cat_stat_analyze_ROIs.m (178 lines)

Dear João,

sorry that it took so long, but I couldn’t replicate that error which males search quite difficult. Anyway, it should work now hopefully. Please try the attached version and replace the old file in toolbox/cat12.

Best,

Christian

On Wed, 23 Mar 2022 18:59:09 +0000, João Duarte <[log in to unmask]> wrote:

>Dear Christian,
>
>Were you able to check this issue?
>I would very much appreciate any help.
>
>Best,
>João
>
>João Duarte <[log in to unmask]> escreveu no dia quinta, 20/01/2022 à(s)
>10:08:
>
>> Dear Christian,
>>
>> Here is the output of "whos" just before line 392.
>> Can you spot something wrong?
>>
>> Thanks!
>> Best,
>> João
>>
>> Name                      Size               Bytes  Class      Attributes
>>
>>   Beta                      6x72                3456  double
>>   HBcorr                    1x72                 576  double
>>   Ic                        1x1                    8  double
>>   P                        80x1                29280  cell
>>   Pcorr                     1x3                 2256  cell
>>   Psort0                   72x1                  576  double
>>   ROIids                   72x1                  576  double
>>   ROInames                 72x1                10212  cell
>>   ROIvalues                80x72               46080  double
>>   SPM                       1x1              2815400  struct
>>   X                        80x6                 3840  double
>>   Y                        80x72               46080  double
>>   Ze                       80x1                  640  double
>>   alpha                     1x1                    8  double
>>   atlas                     1x10                  20  char
>>   c_sort_unique             2x1                   16  double
>>   compare_two_samples       1x1                    8  double
>>   con                       6x4                  192  double
>>   corr                      1x3                  434  cell
>>   corr_short                1x3                  350  cell
>>   cwd                       1x55                 110  char
>>   data                      1x3                   24  cell
>>   dataBeta                 16x16                2048  cell
>>   defined_measure          72x1                   72  logical
>>   ext                       1x4                    8  char
>>   files                     1x1                  316  cell
>>   fname                    80x1                17120  cell
>>   found_inv                 1x1                    8  double
>>   hemi_code                72x1                  576  double
>>   hemi_ind                  1x2                  800  cell
>>   hemiabbr                  1x4                  478  cell
>>   hemistr                   1x4                  532  cell
>>   i                         1x1                    8  double
>>   indP0                    72x1                  576  double
>>   ind_con                  16x1                  128  double
>>   ind_inv                  20x1                  160  double
>>   measure                   1x9                   18  char
>>   mesh_detected             1x1                    8  double
>>   n                         1x1                    8  double
>>   n_corr                    1x1                    8  double
>>   n_hemis                   1x1                    8  double
>>   n_structures              1x1                    8  double
>>   nam                       1x47                  94  char
>>   p                        80x1                  640  double
>>   p_tissue                 72x72               41472  double
>>   pat                       1x1                10538  struct
>>   pattern                   1x8                   16  char
>>   pth                       0x0                    0  char
>>   pth_label                 1x75                 150  char
>>   roi_files_found           1x1                    8  double
>>   roi_names                 1x80               25280  cell
>>   sel_atlas                 1x1                    8  double
>>   sel_measure               1x1                    8  double
>>   sname                     1x20                  40  char
>>   spmmat                    1x63                 126  char
>>   statstr                   1x1                    2  char
>>   statval                  80x1                  640  double
>>   str_con                   1x23                  46  char
>>   strpos                    0x0                    0  double
>>   subfolder                 1x4                    8  char
>>   tmp                       1x606               1212  char
>>   write_beta                1x1                    8  double
>>   xCon                      1x2                18862  struct
>>   xml                       1x1               190070  struct
>>
>> Christian Gaser <[log in to unmask]> escreveu no dia domingo,
>> 16/01/2022 à(s) 21:08:
>>
>>> Dear João,
>>>
>>> please can you add a new line before line 392 (where the error occurs)
>>> with just that command:
>>> whos
>>>
>>> Then run cat_stat_analyze again and send me the output. I cannot see any
>>> error in line 392, so I need that information to check the parameters in
>>> your case.
>>>
>>> Best,
>>>
>>> Christian
>>>
>>> On Fri, 14 Jan 2022 17:46:47 +0000, João Duarte <[log in to unmask]>
>>> wrote:
>>>
>>> >Dear Christian Gaser,
>>> >Dear CAT12 users,
>>> >
>>> >I am trying to perform ROI Analysis of thickness (and other surface
>>> >measures) in CAT12 newest version (r1932). I have done all previous steps
>>> >successfully (segmentation, extraction of surface measures, smoothing,
>>> >building statistical model, estimate surface model, defining contrasts,
>>> >running TFCE).
>>> >However, for some reason, when trying "ROI Analysis", I can go through
>>> all
>>> >input parameters (select spm.MAT, selecting contrast, defining p-value,
>>> >selecting atlas, selecting measure), it even shows a progress bar of the
>>> >process that goes up to 100% but then it always throws the error below.
>>> >Can it be some bug in the code, or am I missing something?
>>> >I would very much appreciate your help. Thanks in advance!
>>> >Best,
>>> >João
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >*Loading files
>>>
>>> >................................................................................Unable
>>> >to perform assignment because the left and right sides have a different
>>> >number of elements.Error in cat_stat_analyze_ROIs (line 392)
>>> >Pcorr{3}(defined_measure) = p_tissue;Error in
>>> >cat12>pushROIAnalysis_Callback (line 236)cat_stat_analyze_ROIs;Error in
>>> >cat12>gui_mainfcn (line 1088)        feval(varargin{:});Error in cat12
>>> >(line 118)    gui_mainfcn(gui_State, varargin{:});Error in
>>>
>>> >cat12>@(hObject,eventdata)cat12('pushROIAnalysis_Callback',hObject,eventdata,guidata(hObject))
>>> >(line 710)
>>>
>>> >'Callback',@(hObject,eventdata)cat12('pushROIAnalysis_Callback',hObject,eventdata,guidata(hObject)),...
>>> >Error
>>> >while evaluating UIControl Callback.*
>>> >
>>>
>>>
>>>
>


Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

May 2024
April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003
2002
2001
2000
1999
1998


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager