Dear Peng,
Your system is quite standard Neuromag. The reason for your problem is
that correct assignment of channel types for Neuromag requires looking
at the original header. There is code to do that in spm_eeg_convert,
but not in spm_eeg_ft2spm. I now added it in the attached version.
What you should make sure is that the Fieldtrip header (that you sent
me) is attached to the Fieldtrip data struct that you pass to
spm_eeg_ft2spm i.e.
ftdata.hdr = hdr;
D = spm_eeg_ft2spm(ftdata, 'mydataset');
Let me know if it works.
Best,
Vladimir
2010/8/9 peng <[log in to unmask]>:
> I opened my spm data with the display/MEEG and all the channels are marked
> as type Other, no bad channels. Should I change them all to the type MEG?
>
> I thought the MEG channel would be recognized automatically.
>
> --------------------------------------------------
> From: "Vladimir Litvak" <[log in to unmask]>
> Sent: Monday, August 09, 2010 3:39 PM
> To: "peng" <[log in to unmask]>
> Cc: "[log in to unmask]" <[log in to unmask]>
> Subject: Re: [SPM] problem with 3d source reconstraction in SPM eeg toolbox
>
>> This means that either there are no channels of MEG type in your
>> dataset or all the MEG channels were marked as bad. Look in the
>> reviewing tool and see if the channel info tab what is happening.
>>
>> Vladimir
>>
>> 2010/8/9 peng <[log in to unmask]>:
>>>
>>> Dear Vladimir,
>>>
>>> thank you for the script.
>>> I am just by the forwards modeling ofthe SPM. I have chosen the "Single
>>> Sphere model" als my MEG head model and got an error:
>>>
>>> ??? Error using ==> spm_eeg_inv_checkforward at 37
>>> No good MEG channels were found.
>>>
>>> Error in ==> spm_eeg_inv_forward_ui at 48
>>> 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
>>>
>>>
>>> Do you know the problem?
>>>
>>> best
>>> Peng
>>>
>>>
>>> --------------------------------------------------
>>> From: "Vladimir Litvak" <[log in to unmask]>
>>> Sent: Monday, August 09, 2010 3:20 PM
>>> To: "peng" <[log in to unmask]>
>>> Subject: Re: [SPM] problem with 3d source reconstraction in SPM eeg
>>> toolbox
>>>
>>>> Dear Peng,
>>>>
>>>> It should be there if you update your SPM to the latest version
>>>> (4010). Please find attached.
>>>>
>>>> Vladimir
>>>>
>>>> 2010/8/9 peng <[log in to unmask]>:
>>>>>
>>>>> Dear Vladimir,
>>>>>
>>>>> Thank you very much for the help. Now i can read my data.
>>>>> Would you please send me the script you mentioned before? I cannot
>>>>> find
>>>>> it
>>>>> in my man/example_scripts/
>>>>>
>>>>> best
>>>>> Peng
>>>>>
>>>>> --------------------------------------------------
>>>>> From: "Vladimir Litvak" <[log in to unmask]>
>>>>> Sent: Monday, August 09, 2010 1:20 PM
>>>>> To: "peng" <[log in to unmask]>
>>>>> Cc: <[log in to unmask]>
>>>>> Subject: Re: [SPM] problem with 3d source reconstraction in SPM eeg
>>>>> toolbox
>>>>>
>>>>>> Dear Peng,
>>>>>>
>>>>>> The messages you got do not indicate a problem. However, it is indeed
>>>>>> true that you have no fiducials because fiducials are not available in
>>>>>> Fieldtrip data structure. You can go to 'Toolbox/MEEGTools/Copy MEG
>>>>>> sensors' to re-read sensors and fiducials from the original dataset.
>>>>>> Alternatively, you can look at
>>>>>> man/example_scripts/spm_ft_multimodal_preprocessing.m , particularly
>>>>>> line 70 to see how to integrate reading fiducials in your script.
>>>>>>
>>>>>> Best,
>>>>>>
>>>>>> Vladimir
>>>>>>
>>>>>> 2010/8/9 peng <[log in to unmask]>:
>>>>>>>
>>>>>>> Dear all,
>>>>>>>
>>>>>>> I am attempting to use the 3d source reconstr. in the spm eeg. I have
>>>>>>> prepared my MEG data with fieldtrip and converted it to the SPM
>>>>>>> format
>>>>>>> with
>>>>>>> the command
>>>>>>> "spm_eeg_ft2spm.m". But I am not able to read my new data in SPM.
>>>>>>> The
>>>>>>> error
>>>>>>> message is: no fiducials are defined.
>>>>>>>
>>>>>>> Isn't the fiducials defined automatically for the MEG data? How
>>>>>>> should
>>>>>>> I
>>>>>>> do to solve this problem£¿
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> P.S. by the spm_eeg_ft2spm.m , I got the message
>>>>>>> checkmeeg: no channel type, assigning default
>>>>>>> checkmeeg: no units, assigning default
>>>>>>> checkmeeg: transform type missing, assigning default
>>>>>>> checkmeeg: data scale missing, assigning default
>>>>>>> checkmeeg: data type is missing or incorrect, assigning default
>>>>>>>
>>>>>>> best,
>>>>>>> Peng
>>>>>>
>>>>>
>>>>
>>>
>>
>
|