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:

Monospaced Font

LISTSERV Archives

LISTSERV Archives

SPM Home

SPM Home

SPM  April 2011

SPM April 2011

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: MEG forward model error 'subscript assignment dimension mismatch'

From:

Vladimir Litvak <[log in to unmask]>

Reply-To:

Vladimir Litvak <[log in to unmask]>

Date:

Wed, 27 Apr 2011 15:28:12 +0100

Content-Type:

multipart/mixed

Parts/Attachments:

Parts/Attachments

text/plain (136 lines) , channelposition.m (136 lines)

Hi Nela,

This error has to do with the fact that your set of Neuromag sensors
is not full. There are 303 instead of 306. This might have to do
either with some channels being permanently broken on your system or
with something MaxFilter did. I suggest that you talk to Sven just to
be sure about the reason. In any case I fixed the code to be robust to
that. If you put the attached function in both
/external/fieldtrip/private and /external/fieldtrip/plotting/private
that should fix the problem.

Best,

Vladimir

On Wed, Apr 27, 2011 at 1:10 PM, Nela Cicmil <[log in to unmask]> wrote:
> Thank you. I include the .mat and .dat files in attached zip folder. Maybe the answer is that the preprocessing steps (MaxMove and MaxFilter by Neuromag) that I used, which removed the fiducial info, are incompatible with SPM 3D source reconstruction.
>
> Best,
> Nela
> ----
> Nela Cicmil
> D.Phil Candidate, Neurophysiology
> Dept. Physiology, Anatomy & Genetics
> University of Oxford
>
> Tel: 01865 282274
> Internal: 82274
> ________________________________________
> From: Vladimir Litvak [[log in to unmask]]
> Sent: 27 April 2011 09:44
> To: Nela Cicmil
> Subject: Re: [SPM] MEG forward model error 'subscript assignment dimension mismatch'
>
> OK. Send me just the mat file of that problematic dataset and I'll look at it.
>
> Vladimir
>
> On Wed, Apr 27, 2011 at 9:33 AM, Nela Cicmil <[log in to unmask]> wrote:
>> Dear Vladimir,
>>
>> Thank you very much for your reply. I have just checked that the bad channels were definitely marked in the epoched files before averaging and that they are consistent in the subsequent averaged files and grand-mean file that I am using for 3D reconstruction. I am trying to think of other possibilities: Maybe it is relevant that a previous preprocessing step (MaxFilter/MaxMove) had removed the fiducials from the 'raw' data, so I had to add the fiducials to the grandmean file by the command D = fiducials(D, fids); save(D), after copying 'fids'  from D.fiducials of the relevant file that contained the fiducial information to which all sessions were aligned? Coregistration etc. looks fine on inspection.
>>
>> Also, I have noticed that in the data, I guess due to an error during data collection, between the sessions that are included in the grand mean, there are different channel 'types' associated with the channel numbers/labels: in some sessions the channels tab in the Display GUI shows:
>>
>> number label type
>>
>> 307 EOG061 ECG
>> 308 ECG063 EOG
>>
>> whilst in others:
>>
>> 307 EOG061 EOG
>> 308 ECG063 ECG
>>
>> It is the former description which is present in the grandmean file that I am using for source reconstruction. This hasn't been a problem so far as I did artefact removal on epoched files based upon channel 'type', which is correct wrt trace information, but could this label discrepancy somehow be causing the forward model to fail?  If so, what is the correction that I should make to the converted data?
>>
>> Thank you for your help,
>>
>> Best wishes,
>> Nela
>>
>>
>> ----
>> Nela Cicmil
>> D.Phil Candidate, Neurophysiology
>> Dept. Physiology, Anatomy & Genetics
>> University of Oxford
>>
>> Tel: 01865 282274
>> Internal: 82274
>> ________________________________________
>> From: Vladimir Litvak [[log in to unmask]]
>> Sent: 27 April 2011 08:45
>> To: Nela Cicmil
>> Cc: [log in to unmask]
>> Subject: Re: [SPM] MEG forward model error 'subscript assignment dimension mismatch'
>>
>> Dear Nela,
>>
>> Might it be that you first prepared the head model and then marked
>> some channels as bad? In that case try deleting the source
>> reconstruction and starting again with the 'Template' button.
>>
>> Best,
>>
>> Vladimir
>>
>> On Tue, Apr 26, 2011 at 11:46 PM, Nela Cicmil <[log in to unmask]> wrote:
>>> Dear SPMers,
>>>
>>> I wonder if anyone could point out what might be going wrong to cause the following error message during Forward Model processing in spm8 for M/EEG:
>>>
>>> ??? Subscripted assignment dimension mismatch.
>>>
>>> Error in ==> channelposition at 147
>>>        lab(i,:) = sens.label(sel)';
>>>
>>> Error in ==> ft_headmodelplot at 205
>>> [chan.pnt, chan.label] = channelposition(sens);
>>>
>>> Error in ==> spm_eeg_inv_checkforward at 74
>>> ft_headmodelplot(cfg);
>>>
>>> Error in ==> spm_eeg_inv_forward_ui at 44
>>> spm_eeg_inv_checkforward(D, val);
>>>
>>> Error in ==> spm_eeg_inv_imag_api>Forward_Callback at 87
>>> handles.D = spm_eeg_inv_forward_ui(handles.D);
>>>
>>> Error in ==> spm_eeg_inv_imag_api at 53
>>>        feval(varargin{:}); % FEVAL switchyard
>>>
>>> ??? Error while evaluating uicontrol Callback
>>>
>>>
>>> I am performing a source localization analysis on a single subject using MEG data only from the Electa Neuromag scanner system, running spm8 (with r4290 updates) on matlab r2009a on mac 10.5.8. The data in question is epoched, has been grand-averaged, and contains fiducials. I specified the MRI individual head mesh using the subject's structural scan and co-registered using nasion, lpa & rpa: all of these steps ran without error and the resultant displays of brain, sensors, etc looked fine when I checked them.
>>>
>>> I originally tried forward model with the single shell head model, but it fails with the same error (above) regardless of which head model I use. The same error also occurs if I use the 'Template' instead of subject's own MRI.
>>>
>>> So, I was just wondering if someone could help tell me what this error means and if it is something that I must go back to fix in the analysis process? There might be some obvious error but I can't work out what it is.
>>>
>>> Many thanks for your help!
>>> Nela
>>>
>>> ----
>>> Nela Cicmil
>>> D.Phil Candidate, Neurophysiology
>>> Dept. Physiology, Anatomy & Genetics
>>> University of Oxford
>>>
>>>
>>
>

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

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