The Mismatch Negativity Compared: EEG, SQUID‐MEG, and Novel 4 Helium‐OPMs
The 12 matches
- [1] § Materials and Methods › Data Analysis ↔ Fig_S2-3a.py, lines 475–524 · score 0.58 · spatiotemporal cluster, cluster forming, permutation, threshold, window, sensors
- [2] § Materials and Methods › Data Analysis ↔ B2_SQUID_IndividualStats.py, lines 37–122 · score 0.58 · cluster permutation, cluster forming, matrix, threshold, odd, epochs
- [3] § Materials and Methods › Data Preprocessing ↔ A1_SQUID-SQUIDEEG_preproc.py, lines 309–318 · score 0.57 · eye movement artifacts, regress, EOG, Preprocessing, epoched, SQUID
- [4] § Materials and Methods › Data Preprocessing ↔ A3_OPM-EEG_preproc.py, lines 250–257 · score 0.57 · eye movement artifacts, regress, EOG, Preprocessing, epoched, OPM
- [5] § Materials and Methods › Data Analysis ↔ REV_EEG-SNR.py, lines 101–147 · score 0.55 · MLC51, MLF46, MRF41, MLC25, selection, LC11
- [6] § Materials and Methods › Data Analysis ↔ Fig4.py, lines 100–147 · score 0.54 · MLC51, MLF46, MRF41, MLC25, selection, LC11
- [7] § Materials and Methods › Data Preprocessing ↔ A1_SQUID-SQUIDEEG_preproc.py, lines 57–125 · score 0.52 · SDs, breaks, segments, spikes, omitted, amplitude
- [8] § Materials and Methods › Data Preprocessing ↔ A2_OPM_preproc.py, lines 69–108 · score 0.52 · SDs, breaks, segments, spikes, omitted, amplitude
- [9] § Materials and Methods › Data Preprocessing ↔ A2_OPM_preproc.py, lines 225–255 · score 0.51 · linear regression, rolling, channel, filtered, Preprocessing, OPM
- [10] § Results › Significant MMN for SQUID‐MEG, EEG, and OPM‐MEG ↔ B3_OPM_IndividualStats.py, lines 39–96 · score 0.51 · 118–196 ms, left cluster, 118 ms, OPM, SQUID
- [11] § Results › Significant MMN for SQUID‐MEG, EEG, and OPM‐MEG ↔ Fig2_OPM.py, lines 65–81 · score 0.50 · 118–196 ms, left cluster, 118 ms, OPM, SQUID
- [12] § Materials and Methods › Data Analysis ↔ REV_EEG-SNR.py, lines 101–147 · score 0.50 · selection bias, SNR, baseline, peak, sub, 250 ms
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 431 lines · 17 KB · no license · 2 matches
- #Preamble
- import os.path as op
- from os import listdir
- import mne
- import numpy as np
- import autoreject as ar
- import matplotlib.pyplot as plt
- plt.ion()
- #Task parameters
- tmin,tmax =-0.2, 0.41 #time before and after trigger. Tones are spaced 610ms apart
- bl_min,bl_max=-0.2,0 #baseline start and end (None for either first or last sample)
- highpass,lowpass = 2,45 #bandpass frequencies
- highpass_final,lowpass_final=2,20 #after preproc, but before epoching, apply more stingent filter
- line_freq=[50,100,150] #notch filter frequency(/ies)
- final_samp_rate=1000 #Output sampling rate
- use_previous_rejection=1 #load rejection parameters from previous dataset, for consistency when reanalysing with different parameters
- use_autoreject=1
- #define file name
- data_path = '/sps/cermep/opm/NEW_MEG/HV'
- #Get datasets
- dirs = [int(d) for d in listdir(data_path) if op.isdir(op.join(data_path, d)) and d.isnumeric()]
- dirs.sort()
- #Let user select subject
- print('Available Subjects: ')
- sub_list=[]
- for d in range(len(dirs)):
- ds_files=[d for d in listdir(op.join(data_path, str(dirs[d]).zfill(2))) if '.ds' in d and 'MEG' in d and 'MMN' in d]
- if len(ds_files)>0:
- print(str(dirs[d]).zfill(2))
- sub_list.append(str(dirs[d]).zfill(2))
- input_given=False
- while not input_given:
- inp = input('Select Subject: ') #Ask for user input
- if inp.isdecimal() and np.any(np.isin(dirs,int(inp))):
- print('Subject '+inp+' selected')
- subject=inp.zfill(2)
- input_given=True
- else:
- print('Incorrect input, please try again')
- print('Retreiving sessions..')
- print('Loading data')
- ds_files=[d for d in listdir(op.join(data_path, subject)) if '.ds' in d and 'MEG' in d and 'MMN' in d]
- ds_files.sort()
- ses_nr=[int(d[-5:-3]) for d in ds_files]
- ses_nr=np.sort(ses_nr)
- runs=[]
- for s in range(len(ses_nr)):
- runs.append(ds_files[0][:-5] +str(ses_nr[s]).zfill(2) +'.ds')
- #AUDIO triggers:
- # '1' - normal audio
- # '2' - oddball
- #rename for EEG
- rename = {
- 'EEG001-2800': 'Fp1',
- 'EEG002-2800': 'Fp2',
- 'EEG003-2800': 'AFz',
- 'EEG004-2800': 'F1',
- 'EEG005-2800': 'F2',
- 'EEG006-2800': 'FC5',
- 'EEG007-2800': 'FCz',
- 'EEG008-2800': 'FC6',
- 'EEG009-2800': 'C1',
- 'EEG010-2800': 'C2',
- 'EEG011-2800': 'TP9',
- 'EEG012-2800': 'TP10',
- 'EEG013-2800': 'P7',
- 'EEG014-2800': 'P8',
- }
- st_1020=mne.channels.make_standard_montage('standard_1020')
- all_raw=[]
- for i_run in runs:
- print('Loading ' +i_run)
- file_name=op.join(data_path, subject, i_run)
- raw = mne.io.read_raw_ctf(file_name, preload=True)
- raw.rename_channels(rename)
- raw.set_montage(st_1020, match_alias=rename,on_missing='ignore')
- if len(raw.ch_names) > 100: #ignore EEG only datasets (OPMEEG)
- #apply third order gradient compensation (if not already done)
- raw.apply_gradient_compensation(3)
- if subject=='02':
- raw.resample(1200)
- #define event IDs
- events, event_dict=mne.events_from_annotations(raw)
- #mark breaks in the data
- break_annots = mne.preprocessing.annotate_break(
- raw=raw,
- events=events,
- min_break_duration=9, # consider segments of at least 5 s duration
- t_start_after_previous=4, # buffer time after last event, carefull of edge effects
- t_stop_before_next=4 # stop annotation 4 s before beginning of next one
- )
- raw.set_annotations(raw.annotations + break_annots) #Mark breaks in raw data
- #Remove spikes from data
- #Reject by amplitude, use standard deviation of the raw data
- raw_tmp=raw.copy().pick_types(meg=True,eeg=False,ref_meg=False).resample(500).filter(l_freq=highpass, h_freq=lowpass)
- dat=raw_tmp.get_data(picks='meg',reject_by_annotation='omit')
- p2p=((np.abs(np.diff(dat,axis=1))))
- n_sds=15 #how many SD to set as threshold
- spike_annots, spike_bads = mne.preprocessing.annotate_amplitude(
- raw_tmp,
- peak=np.median(p2p)+np.std(p2p)*n_sds
- )
- raw.set_annotations(raw.annotations + spike_annots) #add these annotations to the raw data
- all_raw.append(raw) #add annotated raw session to the whole
- raw=mne.concatenate_raws(all_raw, on_mismatch='warn')
- #get events from concatenated RAW
- events, event_dict=mne.events_from_annotations(raw)
- #Recode events such that standard sounds preceding an oddbal are coded differently.
- events[:,2][np.where(events[:,2]==2)[0]-1]=6
- event_dict['std_preOdd'] = 6
- #save event structure for trial order reconstruction
- print('Saving events')
- ev_file=op.join(data_path,'group','MMN',subject+'_SQUID_eve.fif')
- mne.write_events(ev_file, events,overwrite=True)
- #select true standard tone event
- event_ids=np.unique(events[:,2])
- event_count=[np.sum(events[:,2]==d) for d in event_ids]
- std_id=event_ids[np.array(event_count).argsort()][-1:][0]
- std_code=[s for s in event_dict.keys() if event_dict[s]==std_id]
- #Split data in MEG and EEG data
- raw_meg=raw.copy().pick_types(meg=True,eeg=False,ref_meg=True)
- raw_eeg=raw.copy().pick_types(meg=False,eeg=True,ref_meg=True)
- if subject=='04':
- picks_eog=['EEG064-2800']
- else:
- picks_eog=['EEG063-2800','EEG064-2800']
- raw_eog=raw.copy().pick_channels(picks_eog)
- picks_eeg=[c for c in raw_eeg.ch_names if c not in picks_eog]
- raw_eeg=raw_eeg.pick_channels(picks_eeg) #remove eog from EEG
- #filter raw data
- raw_eog_filt=raw_eog.copy().notch_filter(freqs=line_freq).filter(l_freq=highpass, h_freq=lowpass)
- raw_meg_filt=raw_meg.copy().notch_filter(freqs=line_freq).filter(l_freq=highpass, h_freq=lowpass)
- raw_eeg_filt=raw_eeg.copy().notch_filter(freqs=line_freq).filter(l_freq=highpass, h_freq=lowpass)
- if subject=='09':
- print('WARNING: Check raw data for residual bad sections!')
- #Create downsampled datasets for ICA
- raw_meg_ICA=raw_meg_filt.copy().resample(500)
- raw_eeg_ICA=raw_eeg_filt.copy().resample(500)
- #ICA
- ica_meg = mne.preprocessing.ICA(n_components=30,method='fastica',random_state=42)
- ica_meg.fit(raw_meg_ICA)
- if not use_previous_rejection:
- ica_meg.plot_sources(raw_meg_ICA)
- ica_meg.plot_components()
- #BAD MEG ICA components
- ICA_meg_reject = {
- '01' : [0,1,13.25],
- '02' : [7,10,16,23,29],
- '04' : [6,14,24],
- '06' : [0,7,11],
- '07' : [6,11,22],
- '08' : [1,6,9,10],
- '09' : [4,6,23,28], #depends on manual marking of bad areas!
- '10' : [1,4,24],
- '14' : [0,2,4,28],
- '15' : [2,7,9,10],
- '16' : [3,5,15],
- '17' : [0,2,3,16],
- '18' : [0,5,8],
- '19' : [0,4,13],
- '21' : [0,1,5,12,25],
- '22' : [0,16,20],
- '24' : [0,4,6,28]
- }
- if use_previous_rejection:
- raw_meg_clean=ica_meg.apply(raw_meg_filt,exclude=ICA_meg_reject[subject])
- else:
- raw_meg_clean=ica_meg.apply(raw_meg_filt)
- #inspect EEG for bad channels
- if not use_previous_rejection:
- raw_eeg_ICA.plot()
- #MARK bad channel(s) in browser
- bad_channels = {
- '01' : [15],
- '02' : [15],
- '04' : [15,62],
- '06' : [15],
- '07' : [15],
- '08' : [2,15],
- '09' : [15],
- '10' : [15],
- '14' : [15],
- '15' : [15],
- '16' : [15],
- '17' : [15],
- '18' : [15],
- '19' : [15],
- '21' : [15],
- '22' : [15],
- '24' : [15]
- }
- bads = [rename['EEG0' +str(d).zfill(2)+ '-2800'] for d in bad_channels[subject] if d<15]+['EEG0' +str(d).zfill(2)+ '-2800' for d in bad_channels[subject] if d>14]
- raw_eeg_ICA.info['bads']=bads
- raw_eeg_filt.info['bads']=bads
- ica_eeg = mne.preprocessing.ICA(method='fastica',random_state=42)
- ica_eeg.fit(raw_eeg_ICA)
- if not use_previous_rejection:
- ica_eeg.plot_sources(raw_eeg_ICA)
- ica_eeg.plot_components()
- raw_ep=raw_eeg_filt.copy()
- event_id={'1' : event_dict['1'], '2' : event_dict['2']} #Trigger
- tmp_epochs=mne.Epochs(raw_ep,events,event_id=event_id,tmin=tmin,tmax=tmax,preload=True)
- tmp_epochs.resample(500)
- ica_eeg.plot_sources(tmp_epochs)
- #Mark BAD EEG ICA components
- ICA_eeg_reject = {
- '01' : [0,1,3,11],
- '02' : [0,6,7],
- '04' : [0],
- '06' : [0,2,5,10,11,13],
- '07' : [0,1],
- '08' : [0,1,7],
- '09' : [0,1,3,4],
- '10' : [1,2,9],
- '14' : [0,1,3,7,11],
- '15' : [0,1,6],
- '16' : [1],
- '17' : [0,1,9],
- '18' : [0,1,2,3,4],
- '19' : [0,7,8],
- '21' : [0,1,3],
- '22' : [0,7,12],
- '24' : [0,1,5]
- }
- if use_previous_rejection:
- raw_eeg_clean=ica_eeg.apply(raw_eeg_filt,exclude=ICA_eeg_reject[subject])
- else:
- raw_eeg_clean=ica_eeg.apply(raw_eeg_filt)
- #add EOG back in
- raw_meg_clean.add_channels([raw_eog_filt])
- raw_eeg_clean.add_channels([raw_eog_filt])
- #Bandpass filter
- print('Wide Bandpass filter')
- raw_meg_filt=raw_meg_clean.filter(l_freq=None, h_freq=lowpass_final) # bandpass
- raw_eeg_filt=raw_eeg_clean.filter(l_freq=None, h_freq=lowpass_final) # bandpass
- ## EPOCH
- #get events
- print('Creating epoch')
- event_id_std={std_code[0] : event_dict[std_code[0]]} #Standard tone (exl pre-odd)
- event_id_odd={'2' : event_dict['2']} #Trigger
- event_id_stdPreOdd={'std_preOdd' : event_dict['std_preOdd']} #Trigger
- event_id_all={std_code[0] : event_dict[std_code[0]],'2' : event_dict['2'], 'std_preOdd' : event_dict['std_preOdd']} #Trigger
- #Cut epochs
- meg_epochs_odd=mne.Epochs(raw_meg_clean,events,event_id=event_id_odd,tmin=tmin,tmax=tmax,preload=True)
- meg_epochs_std=mne.Epochs(raw_meg_clean,events,event_id=event_id_std,tmin=tmin,tmax=tmax,preload=True)
- meg_epochs_stdPreOdd=mne.Epochs(raw_meg_clean,events,event_id=event_id_stdPreOdd,tmin=tmin,tmax=tmax,preload=True)
- meg_epochs_all=mne.Epochs(raw_meg_clean,events,event_id=event_id_all,tmin=tmin,tmax=tmax,preload=True)
- eeg_epochs_odd=mne.Epochs(raw_eeg_clean,events,event_id=event_id_odd,tmin=tmin,tmax=tmax,preload=True)
- eeg_epochs_std=mne.Epochs(raw_eeg_clean,events,event_id=event_id_std,tmin=tmin,tmax=tmax,preload=True)
- eeg_epochs_stdPreOdd=mne.Epochs(raw_eeg_clean,events,event_id=event_id_stdPreOdd,tmin=tmin,tmax=tmax,preload=True)
- eeg_epochs_all=mne.Epochs(raw_eeg_clean,events,event_id=event_id_all,tmin=tmin,tmax=tmax,preload=True)
- #now resample to output sampling rate
- print('Resampling.')
- meg_epochs_odd.resample(final_samp_rate)
- meg_epochs_std.resample(final_samp_rate)
- meg_epochs_stdPreOdd.resample(final_samp_rate)
- meg_epochs_all.resample(final_samp_rate)
- eeg_epochs_odd.resample(final_samp_rate)
- eeg_epochs_std.resample(final_samp_rate)
- eeg_epochs_stdPreOdd.resample(final_samp_rate)
- eeg_epochs_all.resample(final_samp_rate)
- #Correct eye movement artifacts using regression
- print('Correcting for eye movements')
- meg_epochsTMP=meg_epochs_all.subtract_evoked() #create epochs for regression estimation
- eeg_epochsTMP=eeg_epochs_all.subtract_evoked()
- if subject=='04':
- picks_eog=['EEG064-2800']
- else:
- picks_eog=['EEG063-2800','EEG064-2800']
- meg_epochsTMP.set_eeg_reference(ref_channels=[])
- eeg_epochsTMP.set_eeg_reference('average')
- #fit model
- meg_model_EOG = mne.preprocessing.EOGRegression(picks='meg',picks_artifact=picks_eog).fit(meg_epochsTMP)
- eeg_model_EOG = mne.preprocessing.EOGRegression(picks='eeg',picks_artifact=picks_eog).fit(eeg_epochsTMP)
- #apply model
- meg_epochs_odd.set_eeg_reference(ref_channels=[])
- meg_epochs_std.set_eeg_reference(ref_channels=[])
- meg_epochs_stdPreOdd.set_eeg_reference(ref_channels=[])
- meg_epochs_all.set_eeg_reference(ref_channels=[])
- meg_epochs_odd=meg_model_EOG.apply(meg_epochs_odd)
- meg_epochs_std=meg_model_EOG.apply(meg_epochs_std)
- meg_epochs_stdPreOdd=meg_model_EOG.apply(meg_epochs_stdPreOdd)
- meg_epochs_all=meg_model_EOG.apply(meg_epochs_all)
- eeg_epochs_odd.set_eeg_reference('average')
- eeg_epochs_std.set_eeg_reference('average')
- eeg_epochs_stdPreOdd.set_eeg_reference('average')
- eeg_epochs_all.set_eeg_reference('average')
- eeg_epochs_odd=eeg_model_EOG.apply(eeg_epochs_odd)
- eeg_epochs_std=eeg_model_EOG.apply(eeg_epochs_std)
- eeg_epochs_stdPreOdd=eeg_model_EOG.apply(eeg_epochs_stdPreOdd)
- eeg_epochs_all=eeg_model_EOG.apply(eeg_epochs_all)
- #drop eog
- print('Removing EOG from data')
- meg_epochs_odd=meg_epochs_odd.pick_types(meg=True,eeg=False,ref_meg=True)
- meg_epochs_std=meg_epochs_std.pick_types(meg=True,eeg=False,ref_meg=True)
- meg_epochs_stdPreOdd=meg_epochs_stdPreOdd.pick_types(meg=True,eeg=False,ref_meg=True)
- meg_epochs_all=meg_epochs_all.pick_types(meg=True,eeg=False,ref_meg=True)
- eeg_epochs_odd=eeg_epochs_odd.pick_channels(picks_eeg)
- eeg_epochs_std=eeg_epochs_std.pick_channels(picks_eeg)
- eeg_epochs_stdPreOdd=eeg_epochs_stdPreOdd.pick_channels(picks_eeg)
- eeg_epochs_all=eeg_epochs_all.pick_channels(picks_eeg)
- #baselining
- print('Baselining')
- meg_epochs_odd.apply_baseline(baseline=(bl_min,bl_max))
- meg_epochs_std.apply_baseline(baseline=(bl_min,bl_max))
- meg_epochs_stdPreOdd.apply_baseline(baseline=(bl_min,bl_max))
- meg_epochs_all.apply_baseline(baseline=(bl_min,bl_max))
- eeg_epochs_odd.apply_baseline(baseline=(bl_min,bl_max))
- eeg_epochs_std.apply_baseline(baseline=(bl_min,bl_max))
- eeg_epochs_stdPreOdd.apply_baseline(baseline=(bl_min,bl_max))
- eeg_epochs_all.apply_baseline(baseline=(bl_min,bl_max))
- #Autoreject
- #MEG
- if use_autoreject:
- print('MEG - Using autoreject to discard artifactual epochs')
- rejectTHRES = ar.get_rejection_threshold(meg_epochs_all, decim=2,random_state=42,ch_types='mag') #get AR threshold
- print('MEG Threshold: ' +str(rejectTHRES['mag']))
- drop_odd=meg_epochs_odd.copy().drop_bad(reject=rejectTHRES,verbose='WARNING') #check resulting rejection
- print('MEG - Odd condition portion of data kept: ' +str(len(drop_odd)/np.shape(meg_epochs_odd)[0]*100)+ '%')
- meg_epochs_odd=meg_epochs_odd.drop_bad(reject=rejectTHRES,verbose='WARNING') #check resulting rejection
- drop_std=meg_epochs_std.copy().drop_bad(reject=rejectTHRES,verbose='WARNING') #check resulting rejection
- print('MEG - Std condition portion of data kept: ' +str(len(drop_std)/np.shape(meg_epochs_std)[0]*100)+ '%')
- meg_epochs_std=meg_epochs_std.drop_bad(reject=rejectTHRES,verbose='WARNING') #check resulting rejection
- drop_stdPreOdd=meg_epochs_stdPreOdd.copy().drop_bad(reject=rejectTHRES,verbose='WARNING') #check resulting rejection
- print('MEG - Std preceding Odd condition portion of data kept: ' +str(len(drop_stdPreOdd)/np.shape(meg_epochs_stdPreOdd)[0]*100)+ '%')
- meg_epochs_stdPreOdd=meg_epochs_stdPreOdd.drop_bad(reject=rejectTHRES,verbose='WARNING') #check resulting rejection
- print('EEG: Using autoreject to discard artifactual epochs')
- rejectTHRES = ar.get_rejection_threshold(eeg_epochs_all, decim=2,random_state=42,ch_types='eeg') #get AR threshold
- print('Threshold: ' +str(rejectTHRES['eeg']))
- drop_odd=eeg_epochs_odd.copy().drop_bad(reject=rejectTHRES,verbose='WARNING') #check resulting rejection
- print('EEG Odd - Portion of data kept: ' +str(len(drop_odd)/np.shape(eeg_epochs_odd)[0]*100)+ '%')
- eeg_epochs_odd=eeg_epochs_odd.drop_bad(reject=rejectTHRES,verbose='WARNING') #check resulting rejection
- drop_std=eeg_epochs_std.copy().drop_bad(reject=rejectTHRES,verbose='WARNING') #check resulting rejection
- print('EEG Std - Portion of data kept: ' +str(len(drop_std)/np.shape(eeg_epochs_std)[0]*100)+ '%')
- eeg_epochs_std=eeg_epochs_std.drop_bad(reject=rejectTHRES,verbose='WARNING') #check resulting rejection
- drop_stdPreOdd=eeg_epochs_stdPreOdd.copy().drop_bad(reject=rejectTHRES,verbose='WARNING') #check resulting rejection
- print('EEG Std preceding Odd - Portion of data kept: ' +str(len(drop_stdPreOdd)/np.shape(eeg_epochs_stdPreOdd)[0]*100)+ '%')
- eeg_epochs_stdPreOdd=eeg_epochs_stdPreOdd.drop_bad(reject=rejectTHRES,verbose='WARNING') #check resulting rejection
- #save
- print('Saving epochs..')
- meg_epochs_odd.save(op.join(data_path,'group','MMN','epochs',subject+'_SQUID_odd-epo.fif'),overwrite=True)
- meg_epochs_std.save(op.join(data_path,'group','MMN','epochs',subject+'_SQUID_std-epo.fif'),overwrite=True)
- meg_epochs_stdPreOdd.save(op.join(data_path,'group','MMN','epochs',subject+'_SQUID_stdPreOdd-epo.fif'),overwrite=True)
- eeg_epochs_odd.save(op.join(data_path,'group','MMN','epochs',subject+'_SQUIDEEG_odd-epo.fif'),overwrite=True)
- eeg_epochs_std.save(op.join(data_path,'group','MMN','epochs',subject+'_SQUIDEEG_std-epo.fif'),overwrite=True)
- eeg_epochs_stdPreOdd.save(op.join(data_path,'group','MMN','epochs',subject+'_SQUIDEEG_stdPreOdd-epo.fif'),overwrite=True)
- print('Done.')
- #Create evoked
- meg_evoked_odd=meg_epochs_odd.average()
- meg_evoked_std=meg_epochs_std.average()
- meg_evoked_stdPreOdd=meg_epochs_stdPreOdd.average()
- eeg_evoked_odd=eeg_epochs_odd.average()
- eeg_evoked_std=eeg_epochs_std.average()
- eeg_evoked_stdPreOdd=eeg_epochs_stdPreOdd.average()
- #save
- print('Saving evoked..')
- meg_evoked_odd.save(op.join(data_path,'group','MMN','evoked',subject+'_SQUID_odd-ave.fif'),overwrite=True)
- meg_evoked_std.save(op.join(data_path,'group','MMN','evoked',subject+'_SQUID_std-ave.fif'),overwrite=True)
- meg_evoked_stdPreOdd.save(op.join(data_path,'group','MMN','evoked',subject+'_SQUID_stdPreOdd-ave.fif'),overwrite=True)
- eeg_evoked_odd.save(op.join(data_path,'group','MMN','evoked',subject+'_SQUIDEEG_odd-ave.fif'),overwrite=True)
- eeg_evoked_std.save(op.join(data_path,'group','MMN','evoked',subject+'_SQUIDEEG_std-ave.fif'),overwrite=True)
- eeg_evoked_stdPreOdd.save(op.join(data_path,'group','MMN','evoked',subject+'_SQUIDEEG_stdPreOdd-ave.fif'),overwrite=True)
- print('Done.')
- print('Finished subject ' +subject)
A1_SQUID-SQUIDEEG_preproc.py at commit 5e93aed, no license · at the source
Overview
- CERMEP‐Imagerie du Vivant, MEG Departement, Lyon, France
- CNRS, INSERM, Centre de Recherche en Neurosciences de Lyon CRNL U1028, UMR5292, COPHY, Université Claude Bernard Lyon 1, Bron, France
- CNRS, INSERM, Centre de Recherche en Neurosciences de Lyon CRNL U1028, UMR5292, EDUWELL, Université Claude Bernard Lyon 1, Bron, France
- MAG4Health, Grenoble, France
Abstract
The abstract is not reproduced here: the paper's license (none stated) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repository
Its files are read in the Code ↔ Paper reader above, with 12 matches between paragraphs and lines of code.
tgutteling/OPM_MMN
5e93aeda27c2708aca8653052b2c08eb1943976e, 21 October 2025Availability: 1 check, the latest on 26 September 2026: the link answers
- 26 September 2026: the link answers
17 files
- A1_SQUID-SQUIDEEG_prepro
c.py , Python, 431 lines, 2 matches - A2_OPM_preproc.py, Python, 363 lines, 2 matches
- A3_OPM-EEG_preproc.py, Python, 325 lines, 1 match
- B1_Group_average.py, Python, 132 lines
- B2_SQUID_IndividualStats
.py , Python, 123 lines, 1 match - B3_OPM_IndividualStats.p
y , Python, 98 lines, 1 match - B4_EEG_IndividualStats.p
y , Python, 207 lines - Fig2_EEG.py, Python, 360 lines
- Fig2_OPM.py, Python, 154 lines, 1 match
- Fig2_SQUID.py, Python, 251 lines
- Fig3.py, Python, 237 lines
- Fig4.py, Python, 461 lines, 1 match
- Fig_S1.py, Python, 72 lines
- Fig_S2-3a.py, Python, 990 lines, 1 match
- Fig_S2b.py, Python, 380 lines
- REV_EEG-SNR.py, Python, 403 lines, 2 matches
- README.md, Text, 2 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 16 scripts, each with its path and the digest of its content;
- 12 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Code and data availability statement
The paper has a code and data availability statement. Its license (none stated) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: tgutteling/
OPM_MMN - it says that the data are available on request
Read it in the paper: doi.org/10.1002/hbm.70368.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 7 authors, 5 keywords, 12 MeSH terms, 3 funders, 65 references.
Cite
This paper
Gutteling, T. P., Mattout, J., Daligault, S., Jung, J., Labyt, E., Schwartz, D., & Lecaignard, F. (2025). The Mismatch Negativity Compared: EEG, SQUID‐MEG, and Novel 4 Helium‐OPMs. Human Brain Mapping, 46(14), e70368. https://
BibTeX
@article{gutteling2025mi
author = {Gutteling, Tjerk P and Mattout, Jérémie and Daligault, Sébastien and Jung, Julien and Labyt, Etienne and Schwartz, Denis and Lecaignard, Françoise},
title = {{The Mismatch Negativity Compared: EEG, SQUID‐MEG, and Novel 4 Helium‐OPMs}},
journal = {Human Brain Mapping},
year = {2025},
volume = {46},
number = {14},
pages = {e70368},
publisher = {Wiley},
issn = {1065-9471},
doi = {10.1002/
url = {https://
pmcid = {PMC12476031}
}
RIS
TY - JOUR
AU - Gutteling, Tjerk P
AU - Mattout, Jérémie
AU - Daligault, Sébastien
AU - Jung, Julien
AU - Labyt, Etienne
AU - Schwartz, Denis
AU - Lecaignard, Françoise
TI - The Mismatch Negativity Compared: EEG, SQUID‐MEG, and Novel 4 Helium‐OPMs
T2 - Human Brain Mapping
J2 - Hum Brain Mapp
PY - 2025
DA - 2025
VL - 46
IS - 14
SP - e70368
SN - 1065-9471
PB - Wiley
DO - 10.1002/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1002/
"type": "article-journal",
"title": "The Mismatch Negativity Compared: EEG, SQUID‐MEG, and Novel 4 Helium‐OPMs",
"container-title": "Human Brain Mapping",
"author": [
{
"family": "Gutteling",
"given": "Tjerk P"
},
{
"family": "Mattout",
"given": "Jérémie"
},
{
"family": "Daligault",
"given": "Sébastien"
},
{
"family": "Jung",
"given": "Julien"
},
{
"family": "Labyt",
"given": "Etienne"
},
{
"family": "Schwartz",
"given": "Denis"
},
{
"family": "Lecaignard",
"given": "Françoise"
}
],
"container-title-short":
"volume": "46",
"issue": "14",
"page": "e70368",
"DOI": "10.1002/
"PMCID": "PMC12476031",
"ISSN": "1065-9471",
"publisher": "Wiley",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2025
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1162/imag.a.1040 [code]
- Novel 4 He-OPMs support waveform-specific beta burst analysis comparable to SQUID-MEGJournal: n/aIn common: autoreject, MNE-Python, scikit-learn, 3 other tools, MEG, 14 references, author Tjerk P Gutteling
- [2] doi:10.1038/s41598-026-41129-7 [code]
- Non-linear relationships between auditory mismatch responses and the inharmonicity of complex sounds.Journal: Scientific reportsIn common: autoreject, MNE-Python, seaborn, 3 other tools, EEG, cognitive, 5 references
- [3] doi:10.1162/imag.a.1269 [code]
- From early to contemporary normative modeling: Mapping individual differences in neurophysiological signals.Journal: Imaging neuroscience (Cambridge, Mass.)In common: autoreject, MNE-Python, seaborn, 4 other tools, MEG, EEG, 2 references
- [4] doi:10.1093/nc/niag029 [code]
- A data-driven approach to identifying and evaluating connectivity-based neural correlates of conscious visual perception.Journal: Neuroscience of consciousnessIn common: autoreject, MNE-Python, seaborn, 4 other tools, MEG, cognitive, 2 references
- [5] doi:10.7554/elife.108023 [code]
- Challenges in replay detection by TDLM in post-encoding resting state.Journal: eLifeIn common: autoreject, MNE-Python, seaborn, 4 other tools, MEG, 2 references
- [6] doi:10.1162/imag.a.1321 [code]
- Phase similarity between similar objects indicates representational merging across retrieval training but not sleep.Journal: Imaging neuroscience (Cambridge, Mass.)In common: autoreject, MNE-Python, seaborn, 4 other tools, EEG, cognitive, 2 references
- [7] doi:10.1109/tmi.2026.3687982 [code]
- Spatial-Jitter Model for Magnetoencephalography Sensor Arrays.Journal: IEEE transactions on medical imagingIn common: MNE-Python, SciPy, Matplotlib, 1 other tool, MEG, 4 references
- [8] doi:10.1038/s41597-025-05174-7 [code]
- A large-scale MEG and EEG dataset for object recognition in naturalistic scenesJournal: n/aIn common: MNE-Python, seaborn, scikit-learn, 3 other tools, MEG, EEG, 3 references
- [9] doi:10.1038/s41598-026-58505-y [code]
- Remoteness sensitive theta network dynamics during early autobiographical memory access.Journal: Scientific reportsIn common: autoreject, MNE-Python, seaborn, 3 other tools, EEG, cognitive, 2 references
- [10] doi:10.1371/journal.pcbi.1014302 [code]
- Trial-level sequence modeling reveals hidden dynamics of dual-task interference.Journal: PLoS computational biologyIn common: autoreject, MNE-Python, seaborn, 4 other tools, EEG, 2 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 16 scripts, and 12 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:583f3a87fc5085f7…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
