Dear Peter,
Please see https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=SPM;95cd0b22.1203
. Let me know if it doesn't help.
Vladimir
On Mon, Oct 1, 2012 at 12:01 PM, Peter Goodin <[log in to unmask]> wrote:
> Hi SPM list,
>
> I'm having a bit of trouble getting SPM8 to read in the sensor locations
> from our neuromag Triux system. I'm using fieldtrip to preprocess my data
> and I've tried the following methods outlined below. Any thoughts on what
> the problem is would be greatly appreciated.
>
> 1. Converting fieldtrip data (both segmented, preprocessed file and an
> averaged file) to SPM8 using the spm_eeg_spm2ft function. This imports all
> the channel labels, but the type is "Other". I've tried using MEEGtools >
> Copy MEG sensors then using the converted data as the SPM8 EEG file and the
> raw .fif file as the raw MEG file, when I get the following:
>
> 306 MEG channel locations transformed
> Error using ==> mne2grad at 121
> Number of MEG channels identified does not match number of channels in grad
> structure!!!!!
> Opening raw data file D:\Ph.D_Data\MEG\Raw\c103\c103_nback_meg_tsss.fif...
> Range : 33500 ... 788499 = 67.000 ... 1576.998 secs
> Ready.
> ??? Reference to non-existent field 'grad'.
>
> Error in ==> spm_eeg_copygrad at 16
> D = sensors(D, 'MEG', ft_convert_units(hdr.grad, 'mm'));
>
> Error in ==> spm_MEEGtools at 46
> eval(fun);
> Error in ==> spm at 965
> evalin('base',xTB(i).prog);
>
> ??? Error while evaluating uicontrol Callback
>
> 2. Converting the fieldtrip data using the above method, but using "prepare
> spm file" and loading the neuromag_306_EEG70.mat file located in the
> /spm8/EEGtemplates folder which appears to work and brings up a layout that
> looks it should. After applying and going back the channel information,
> position changes to yes, but type is still "Other". Additionally when I view
> the time series, there's no option for a topoplot (however I'm not sure if
> this is due to channel type as other or another issue).
>
> 3. Starting from scratch and converting a maxfiltered .fif file. I get valid
> information for channel label, type and unit, but nothing relating to
> position. I then use the same "prepare spm file" method and use the same
> template as discussed in 2. After updating the channel list, all the sensor
> positions are shown and it allows for a topoplot. The problem happens when
> trying to save the channel locations and the following error occurs:
>
> ??? Reference to non-existent field 'label'.
>
> Error in ==> spm_eeg_prep_ui>SaveTemplateCB at 550
> Cnames = handles.label;
>
> Error in ==> spm_eeg_prep_ui at 16
> eval(callback);
>
> ??? Error while evaluating uimenu Callback
>
> Again, any help would be greatly appreciated.
>
> Peter.
|