Fieldtrip: Audio Vs Visual Vs Motor
Lead authors: Hadi Zaatiti hadi.zaatiti@nyu.edu
Description of experiment The
Audio vs Visual vs Motorcode experiment inPsychtoolboxcan be found here:
Importing data
The data used in this notebook is hosted on NYU BOX. Permissions are given upon request.
Install the BOX app from here
Set an environment variable with name
MEG_DATAto the path of the Data folder e.g.,C:\Users\user_name\Box\MEG\Dataor `C:\Users\user_name:nbsphinx-math:Box\Data
MATLAB setup
Make sure that:
Fieldtrip is installed in MATLAB
Add to MATLAB path the custom-made functions for NYUAD MEG lab found here
Each experiment run using the KIT system generates a .con file and two or more .mrk files.
[1]:
%% FieldTrip pipeline for audio-visual-motor experiment
% Author: Hadi Zaatiti <hadi.zaatiti@nyu.edu>
clear;
% Reminder of stimulus types:
% 1 is visual stimulus = ch224
% 2 is auditory stimulus = ch225
% 3 is motor button = ch226
% Read the environment variable to NYU BOX
MEG_DATA_FOLDER = getenv('MEG_DATA');
% Define paths
TASK_NAME = 'audio-visual-motor';
SYSTEM = 'meg-kit';
SUB_ID = 'sub-001';
LASER_DEVICE = 'laser-scan';
% Construct the directory path
DATA_FOLDER_PATH = fullfile(MEG_DATA_FOLDER, TASK_NAME, SUB_ID, SYSTEM);
% List all .con files with the prefix 'sub-001'
filePattern = fullfile(DATA_FOLDER_PATH, [SUB_ID,'*.con']);
conFiles = dir(filePattern);
% Display the file names
disp('Found .con files:');
for k = 1:length(conFiles)
disp(conFiles(k).name);
end
filePattern_mrk = fullfile(DATA_FOLDER_PATH, '*.mrk');
mrkFiles = dir(filePattern_mrk);
% Construct the directory path
DATA_FOLDER_PATH_LASER = fullfile(MEG_DATA_FOLDER, TASK_NAME, SUB_ID, LASER_DEVICE);
filePattern_laser_surface = fullfile(DATA_FOLDER_PATH_LASER, [SUB_ID,'*basic-surface.txt']);
filePattern_laser_stylus = fullfile(DATA_FOLDER_PATH_LASER, [SUB_ID,'*stylus-points.txt']);
laser_points = dir(filePattern_laser_surface);
laser_surf = dir(filePattern_laser_stylus);
APPLY_FILTERS = false;
Found .con files:
sub-001_audio-visual_session-1.con
sub-001_audio-visual_session-2.con
sub-001_audio-visual_session-3.con
We will skip filtering and see the analysis results with and without.
[ ]:
%% Filtering data
if APPLY_FILTERS
% Notch filter the data at 50 Hz
cfg = [];
cfg.bsfilter = 'yes';
cfg.bsfreq = [49 51]; % Notch filter range
combinedData = ft_preprocessing(cfg, combinedData);
% Band-pass filter the data
cfg = [];
cfg.bpfilter = 'yes';
cfg.bpfreq = [4 40]; % Band-pass filter range
cfg.bpfiltord = 4; % Filter order
combinedData = ft_preprocessing(cfg, combinedData);
disp('Filtering operations complete on combined data.');
end
[2]:
%%
% Initialize FieldTrip configuration
cfg = [];
cfg.coilaccuracy = 0;
% Cell array to store preprocessed data
dataList = {};
% Loop through all .con files
for k = 1:length(conFiles)
% Construct the full path for the current .con file
conFile = fullfile(DATA_FOLDER_PATH, conFiles(k).name);
% Set the dataset in the configuration
cfg.dataset = conFile;
% Preprocess the MEG data
fprintf('Processing file: %s\n', conFiles(k).name);
dataList{k} = ft_preprocessing(cfg); % Store preprocessed data in the list
end
% Concatenate all preprocessed data
fprintf('Concatenating all preprocessed data...\n');
combinedData = ft_appenddata([], dataList{:});
% Display a message when concatenation is complete
disp('Data concatenation complete.');
Processing file: sub-001_audio-visual_session-1.con
-------------------------------------------------------------------------------------------
FieldTrip is developed by members and collaborators of the Donders Institute for Brain,
Cognition and Behaviour at Radboud University, Nijmegen, the Netherlands.
--------------------------
/ \
------------------------------------
/ \
-------------------------------------------------
/ /\/\/\/\/\
---------------------------------------------------
| F i e l d T r i p |
------------------------------------------
\ /
------------------------------------
\ /
----------
Please cite the FieldTrip reference paper when you have used FieldTrip in your study.
Robert Oostenveld, Pascal Fries, Eric Maris, and Jan-Mathijs Schoffelen. FieldTrip: Open
Source Software for Advanced Analysis of MEG, EEG, and Invasive Electrophysiological Data.
Computational Intelligence and Neuroscience, vol. 2011, Article ID 156869, 9 pages, 2011.
doi:10.1155/2011/156869.
-------------------------------------------------------------------------------------------
processing channel { 'AG001' 'AG002' 'AG003' 'AG004' 'AG005' 'AG006' 'AG007' 'AG008' 'AG009' 'AG010' 'AG011' 'AG012' 'AG013' 'AG014' 'AG015' 'AG016' 'AG017' 'AG018' 'AG019' 'AG020' 'AG021' 'AG022' 'AG023' 'AG024' 'AG025' 'AG026' 'AG027' 'AG028' 'AG029' 'AG030' 'AG031' 'AG032' 'AG033' 'AG034' 'AG035' 'AG036' 'AG037' 'AG038' 'AG039' 'AG040' 'AG041' 'AG042' 'AG043' 'AG044' 'AG045' 'AG046' 'AG047' 'AG048' 'AG049' 'AG050' 'AG051' 'AG052' 'AG053' 'AG054' 'AG055' 'AG056' 'AG057' 'AG058' 'AG059' 'AG060' 'AG061' 'AG062' 'AG063' 'AG064' 'AG065' 'AG066' 'AG067' 'AG068' 'AG069' 'AG070' 'AG071' 'AG072' 'AG073' 'AG074' 'AG075' 'AG076' 'AG077' 'AG078' 'AG079' 'AG080' 'AG081' 'AG082' 'AG083' 'AG084' 'AG085' 'AG086' 'AG087' 'AG088' 'AG089' 'AG090' 'AG091' 'RM092' 'AG093' 'AG094' 'AG095' 'AG096' 'AG097' 'AG098' 'AG099' 'AG100' 'AG101' 'AG102' 'AG103' 'AG104' 'AG105' 'AG106' 'AG107' 'AG108' 'AG109' 'AG110' 'AG111' 'AG112' 'AG113' 'AG114' 'AG115' 'AG116' 'AG117' 'AG118' 'AG119' 'AG120' 'AG121' 'AG122' 'AG123' 'AG124' 'AG125' 'AG126' 'AG127' 'AG128' 'AG129' 'AG130' 'AG131' 'AG132' 'AG133' 'AG134' 'AG135' 'AG136' 'AG137' 'AG138' 'AG139' 'AG140' 'AG141' 'AG142' 'AG143' 'AG144' 'AG145' 'AG146' 'AG147' 'AG148' 'AG149' 'AG150' 'AG151' 'AG152' 'AG153' 'AG154' 'AG155' 'AG156' 'AG157' 'AG158' 'AG159' 'AG160' 'AG161' 'AG162' 'AG163' 'AG164' 'AG165' 'AG166' 'AG167' 'AG168' 'AG169' 'AG170' 'AG171' 'AG172' 'AG173' 'AG174' 'AG175' 'AG176' 'AG177' 'AG178' 'AG179' 'AG180' 'AG181' 'AG182' 'AG183' 'AG184' 'AG185' 'AG186' 'AG187' 'AG188' 'AG189' 'AG190' 'AG191' 'AG192' 'AG193' 'AG194' 'AG195' 'AG196' 'AG197' 'AG198' 'AG199' 'AG200' 'AG201' 'AG202' 'AG203' 'AG204' 'AG205' 'AG206' 'AG207' 'AG208' 'RM209' 'RM210' 'RM211' 'RM212' 'RM213' 'RM214' 'RM215' 'RM216' 'RM217' 'RM218' 'RM219' 'RM220' 'RM221' 'RM222' 'RM223' 'RM224' '225' '226' '227' '228' '229' '230' '231' '232' '233' '234' '235' '236' '237' '238' '239' '240' '241' '242' '243' '244' '245' '246' '247' '248' '249' '250' '251' '252' '253' '254' '255' '256' }
reading and preprocessing
reading and preprocessing trial 1 from 1
the call to "ft_preprocessing" took 8 seconds
Processing file: sub-001_audio-visual_session-2.con
processing channel { 'AG001' 'AG002' 'AG003' 'AG004' 'AG005' 'AG006' 'AG007' 'AG008' 'AG009' 'AG010' 'AG011' 'AG012' 'AG013' 'AG014' 'AG015' 'AG016' 'AG017' 'AG018' 'AG019' 'AG020' 'AG021' 'AG022' 'AG023' 'AG024' 'AG025' 'AG026' 'AG027' 'AG028' 'AG029' 'AG030' 'AG031' 'AG032' 'AG033' 'AG034' 'AG035' 'AG036' 'AG037' 'AG038' 'AG039' 'AG040' 'AG041' 'AG042' 'AG043' 'AG044' 'AG045' 'AG046' 'AG047' 'AG048' 'AG049' 'AG050' 'AG051' 'AG052' 'AG053' 'AG054' 'AG055' 'AG056' 'AG057' 'AG058' 'AG059' 'AG060' 'AG061' 'AG062' 'AG063' 'AG064' 'AG065' 'AG066' 'AG067' 'AG068' 'AG069' 'AG070' 'AG071' 'AG072' 'AG073' 'AG074' 'AG075' 'AG076' 'AG077' 'AG078' 'AG079' 'AG080' 'AG081' 'AG082' 'AG083' 'AG084' 'AG085' 'AG086' 'AG087' 'AG088' 'AG089' 'AG090' 'AG091' 'RM092' 'AG093' 'AG094' 'AG095' 'AG096' 'AG097' 'AG098' 'AG099' 'AG100' 'AG101' 'AG102' 'AG103' 'AG104' 'AG105' 'AG106' 'AG107' 'AG108' 'AG109' 'AG110' 'AG111' 'AG112' 'AG113' 'AG114' 'AG115' 'AG116' 'AG117' 'AG118' 'AG119' 'AG120' 'AG121' 'AG122' 'AG123' 'AG124' 'AG125' 'AG126' 'AG127' 'AG128' 'AG129' 'AG130' 'AG131' 'AG132' 'AG133' 'AG134' 'AG135' 'AG136' 'AG137' 'AG138' 'AG139' 'AG140' 'AG141' 'AG142' 'AG143' 'AG144' 'AG145' 'AG146' 'AG147' 'AG148' 'AG149' 'AG150' 'AG151' 'AG152' 'AG153' 'AG154' 'AG155' 'AG156' 'AG157' 'AG158' 'AG159' 'AG160' 'AG161' 'AG162' 'AG163' 'AG164' 'AG165' 'AG166' 'AG167' 'AG168' 'AG169' 'AG170' 'AG171' 'AG172' 'AG173' 'AG174' 'AG175' 'AG176' 'AG177' 'AG178' 'AG179' 'AG180' 'AG181' 'AG182' 'AG183' 'AG184' 'AG185' 'AG186' 'AG187' 'AG188' 'AG189' 'AG190' 'AG191' 'AG192' 'AG193' 'AG194' 'AG195' 'AG196' 'AG197' 'AG198' 'AG199' 'AG200' 'AG201' 'AG202' 'AG203' 'AG204' 'AG205' 'AG206' 'AG207' 'AG208' 'RM209' 'RM210' 'RM211' 'RM212' 'RM213' 'RM214' 'RM215' 'RM216' 'RM217' 'RM218' 'RM219' 'RM220' 'RM221' 'RM222' 'RM223' 'RM224' '225' '226' '227' '228' '229' '230' '231' '232' '233' '234' '235' '236' '237' '238' '239' '240' '241' '242' '243' '244' '245' '246' '247' '248' '249' '250' '251' '252' '253' '254' '255' '256' }
reading and preprocessing
reading and preprocessing trial 1 from 1
the call to "ft_preprocessing" took 6 seconds
Processing file: sub-001_audio-visual_session-3.con
processing channel { 'AG001' 'AG002' 'AG003' 'AG004' 'AG005' 'AG006' 'AG007' 'AG008' 'AG009' 'AG010' 'AG011' 'AG012' 'AG013' 'AG014' 'AG015' 'AG016' 'AG017' 'AG018' 'AG019' 'AG020' 'AG021' 'AG022' 'AG023' 'AG024' 'AG025' 'AG026' 'AG027' 'AG028' 'AG029' 'AG030' 'AG031' 'AG032' 'AG033' 'AG034' 'AG035' 'AG036' 'AG037' 'AG038' 'AG039' 'AG040' 'AG041' 'AG042' 'AG043' 'AG044' 'AG045' 'AG046' 'AG047' 'AG048' 'AG049' 'AG050' 'AG051' 'AG052' 'AG053' 'AG054' 'AG055' 'AG056' 'AG057' 'AG058' 'AG059' 'AG060' 'AG061' 'AG062' 'AG063' 'AG064' 'AG065' 'AG066' 'AG067' 'AG068' 'AG069' 'AG070' 'AG071' 'AG072' 'AG073' 'AG074' 'AG075' 'AG076' 'AG077' 'AG078' 'AG079' 'AG080' 'AG081' 'AG082' 'AG083' 'AG084' 'AG085' 'AG086' 'AG087' 'AG088' 'AG089' 'AG090' 'AG091' 'RM092' 'AG093' 'AG094' 'AG095' 'AG096' 'AG097' 'AG098' 'AG099' 'AG100' 'AG101' 'AG102' 'AG103' 'AG104' 'AG105' 'AG106' 'AG107' 'AG108' 'AG109' 'AG110' 'AG111' 'AG112' 'AG113' 'AG114' 'AG115' 'AG116' 'AG117' 'AG118' 'AG119' 'AG120' 'AG121' 'AG122' 'AG123' 'AG124' 'AG125' 'AG126' 'AG127' 'AG128' 'AG129' 'AG130' 'AG131' 'AG132' 'AG133' 'AG134' 'AG135' 'AG136' 'AG137' 'AG138' 'AG139' 'AG140' 'AG141' 'AG142' 'AG143' 'AG144' 'AG145' 'AG146' 'AG147' 'AG148' 'AG149' 'AG150' 'AG151' 'AG152' 'AG153' 'AG154' 'AG155' 'AG156' 'AG157' 'AG158' 'AG159' 'AG160' 'AG161' 'AG162' 'AG163' 'AG164' 'AG165' 'AG166' 'AG167' 'AG168' 'AG169' 'AG170' 'AG171' 'AG172' 'AG173' 'AG174' 'AG175' 'AG176' 'AG177' 'AG178' 'AG179' 'AG180' 'AG181' 'AG182' 'AG183' 'AG184' 'AG185' 'AG186' 'AG187' 'AG188' 'AG189' 'AG190' 'AG191' 'AG192' 'AG193' 'AG194' 'AG195' 'AG196' 'AG197' 'AG198' 'AG199' 'AG200' 'AG201' 'AG202' 'AG203' 'AG204' 'AG205' 'AG206' 'AG207' 'AG208' 'RM209' 'RM210' 'RM211' 'RM212' 'RM213' 'RM214' 'RM215' 'RM216' 'RM217' 'RM218' 'RM219' 'RM220' 'RM221' 'RM222' 'RM223' 'RM224' '225' '226' '227' '228' '229' '230' '231' '232' '233' '234' '235' '236' '237' '238' '239' '240' '241' '242' '243' '244' '245' '246' '247' '248' '249' '250' '251' '252' '253' '254' '255' '256' }
reading and preprocessing
reading and preprocessing trial 1 from 1
the call to "ft_preprocessing" took 4 seconds
Concatenating all preprocessed data...
Warning: the data has overlapping segments or originates from different recordings on diskWarning: please consider specifying cfg.keepsampleinfo='no'
concatenating over the "rpt" dimension
the call to "ft_selectdata" took 0 seconds
the call to "ft_appenddata" took 0 seconds
Data concatenation complete.
[1]:
%% Define trials and segmentation of the data
previewTrigger = combinedData.trial{1}(225, :);
threshold = (max(previewTrigger) + min(previewTrigger)) / 2;
trigger_channels = [225, 226, 227];
TRIALS_DEF = cell(length(conFiles), length(trigger_channels));
TRIALS = cell(length(conFiles), length(trigger_channels));
for fileIdx = 1:length(conFiles)
for chIdx = 1:length(trigger_channels)
cfg = [];
conFile = fullfile(DATA_FOLDER_PATH, conFiles(fileIdx).name);
cfg.dataset = conFile;
cfg.trialdef.eventvalue = 1; % placeholder for the conditions
cfg.trialdef.prestim = 0.5; % 1s before stimulus onset
cfg.trialdef.poststim = 1.2; % 1s after stimulus onset
cfg.trialfun = 'ft_trialfun_general';
cfg.trialdef.chanindx = trigger_channels(chIdx);
cfg.trialdef.threshold = threshold;
cfg.trialdef.eventtype = 'combined_binary_trigger'; % this will be the type of the event if combinebinary = true
cfg.trialdef.combinebinary = 1;
cfg.preproc.baselinewindow = [-0.2 0];
cfg.preproc.demean = 'yes';
% Define trials for the current channel and dataset
TRIALS_DEF{fileIdx, chIdx} = ft_definetrial(cfg);
% Preprocess trials for the current channel and dataset
TRIALS{fileIdx, chIdx} = ft_preprocessing(TRIALS_DEF{fileIdx, chIdx});
end
end
evaluating trial function 'ft_trialfun_general'
reading the header from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-1.con'
reading the events from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-1.con'
found 50 events
created 50 trials
the call to "ft_definetrial" took 4 seconds
processing channel { 'AG001' 'AG002' 'AG003' 'AG004' 'AG005' 'AG006' 'AG007' 'AG008' 'AG009' 'AG010' 'AG011' 'AG012' 'AG013' 'AG014' 'AG015' 'AG016' 'AG017' 'AG018' 'AG019' 'AG020' 'AG021' 'AG022' 'AG023' 'AG024' 'AG025' 'AG026' 'AG027' 'AG028' 'AG029' 'AG030' 'AG031' 'AG032' 'AG033' 'AG034' 'AG035' 'AG036' 'AG037' 'AG038' 'AG039' 'AG040' 'AG041' 'AG042' 'AG043' 'AG044' 'AG045' 'AG046' 'AG047' 'AG048' 'AG049' 'AG050' 'AG051' 'AG052' 'AG053' 'AG054' 'AG055' 'AG056' 'AG057' 'AG058' 'AG059' 'AG060' 'AG061' 'AG062' 'AG063' 'AG064' 'AG065' 'AG066' 'AG067' 'AG068' 'AG069' 'AG070' 'AG071' 'AG072' 'AG073' 'AG074' 'AG075' 'AG076' 'AG077' 'AG078' 'AG079' 'AG080' 'AG081' 'AG082' 'AG083' 'AG084' 'AG085' 'AG086' 'AG087' 'AG088' 'AG089' 'AG090' 'AG091' 'RM092' 'AG093' 'AG094' 'AG095' 'AG096' 'AG097' 'AG098' 'AG099' 'AG100' 'AG101' 'AG102' 'AG103' 'AG104' 'AG105' 'AG106' 'AG107' 'AG108' 'AG109' 'AG110' 'AG111' 'AG112' 'AG113' 'AG114' 'AG115' 'AG116' 'AG117' 'AG118' 'AG119' 'AG120' 'AG121' 'AG122' 'AG123' 'AG124' 'AG125' 'AG126' 'AG127' 'AG128' 'AG129' 'AG130' 'AG131' 'AG132' 'AG133' 'AG134' 'AG135' 'AG136' 'AG137' 'AG138' 'AG139' 'AG140' 'AG141' 'AG142' 'AG143' 'AG144' 'AG145' 'AG146' 'AG147' 'AG148' 'AG149' 'AG150' 'AG151' 'AG152' 'AG153' 'AG154' 'AG155' 'AG156' 'AG157' 'AG158' 'AG159' 'AG160' 'AG161' 'AG162' 'AG163' 'AG164' 'AG165' 'AG166' 'AG167' 'AG168' 'AG169' 'AG170' 'AG171' 'AG172' 'AG173' 'AG174' 'AG175' 'AG176' 'AG177' 'AG178' 'AG179' 'AG180' 'AG181' 'AG182' 'AG183' 'AG184' 'AG185' 'AG186' 'AG187' 'AG188' 'AG189' 'AG190' 'AG191' 'AG192' 'AG193' 'AG194' 'AG195' 'AG196' 'AG197' 'AG198' 'AG199' 'AG200' 'AG201' 'AG202' 'AG203' 'AG204' 'AG205' 'AG206' 'AG207' 'AG208' 'RM209' 'RM210' 'RM211' 'RM212' 'RM213' 'RM214' 'RM215' 'RM216' 'RM217' 'RM218' 'RM219' 'RM220' 'RM221' 'RM222' 'RM223' 'RM224' '225' '226' '227' '228' '229' '230' '231' '232' '233' '234' '235' '236' '237' '238' '239' '240' '241' '242' '243' '244' '245' '246' '247' '248' '249' '250' '251' '252' '253' '254' '255' '256' }
reading and preprocessing
reading and preprocessing trial 3 from 5reading and preprocessing trial 5 from 5reading and preprocessing trial 7 from 5reading and preprocessing trial 9 from 5reading and preprocessing trial 11 from reading and preprocessing trial 13 from reading and preprocessing trial 15 from reading and preprocessing trial 17 from reading and preprocessing trial 19 from reading and preprocessing trial 21 from reading and preprocessing trial 23 from reading and preprocessing trial 25 from reading and preprocessing trial 27 from reading and preprocessing trial 29 from reading and preprocessing trial 31 from reading and preprocessing trial 33 from reading and preprocessing trial 35 from reading and preprocessing trial 37 from reading and preprocessing trial 39 from reading and preprocessing trial 41 from reading and preprocessing trial 43 from reading and preprocessing trial 45 from reading and preprocessing trial 47 from reading and preprocessing trial 49 from reading and preprocessing trial 50 from 50
the call to "ft_preprocessing" took 4 seconds
evaluating trial function 'ft_trialfun_general'
reading the header from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-1.con'
reading the events from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-1.con'
found 50 events
created 50 trials
the call to "ft_definetrial" took 3 seconds
processing channel { 'AG001' 'AG002' 'AG003' 'AG004' 'AG005' 'AG006' 'AG007' 'AG008' 'AG009' 'AG010' 'AG011' 'AG012' 'AG013' 'AG014' 'AG015' 'AG016' 'AG017' 'AG018' 'AG019' 'AG020' 'AG021' 'AG022' 'AG023' 'AG024' 'AG025' 'AG026' 'AG027' 'AG028' 'AG029' 'AG030' 'AG031' 'AG032' 'AG033' 'AG034' 'AG035' 'AG036' 'AG037' 'AG038' 'AG039' 'AG040' 'AG041' 'AG042' 'AG043' 'AG044' 'AG045' 'AG046' 'AG047' 'AG048' 'AG049' 'AG050' 'AG051' 'AG052' 'AG053' 'AG054' 'AG055' 'AG056' 'AG057' 'AG058' 'AG059' 'AG060' 'AG061' 'AG062' 'AG063' 'AG064' 'AG065' 'AG066' 'AG067' 'AG068' 'AG069' 'AG070' 'AG071' 'AG072' 'AG073' 'AG074' 'AG075' 'AG076' 'AG077' 'AG078' 'AG079' 'AG080' 'AG081' 'AG082' 'AG083' 'AG084' 'AG085' 'AG086' 'AG087' 'AG088' 'AG089' 'AG090' 'AG091' 'RM092' 'AG093' 'AG094' 'AG095' 'AG096' 'AG097' 'AG098' 'AG099' 'AG100' 'AG101' 'AG102' 'AG103' 'AG104' 'AG105' 'AG106' 'AG107' 'AG108' 'AG109' 'AG110' 'AG111' 'AG112' 'AG113' 'AG114' 'AG115' 'AG116' 'AG117' 'AG118' 'AG119' 'AG120' 'AG121' 'AG122' 'AG123' 'AG124' 'AG125' 'AG126' 'AG127' 'AG128' 'AG129' 'AG130' 'AG131' 'AG132' 'AG133' 'AG134' 'AG135' 'AG136' 'AG137' 'AG138' 'AG139' 'AG140' 'AG141' 'AG142' 'AG143' 'AG144' 'AG145' 'AG146' 'AG147' 'AG148' 'AG149' 'AG150' 'AG151' 'AG152' 'AG153' 'AG154' 'AG155' 'AG156' 'AG157' 'AG158' 'AG159' 'AG160' 'AG161' 'AG162' 'AG163' 'AG164' 'AG165' 'AG166' 'AG167' 'AG168' 'AG169' 'AG170' 'AG171' 'AG172' 'AG173' 'AG174' 'AG175' 'AG176' 'AG177' 'AG178' 'AG179' 'AG180' 'AG181' 'AG182' 'AG183' 'AG184' 'AG185' 'AG186' 'AG187' 'AG188' 'AG189' 'AG190' 'AG191' 'AG192' 'AG193' 'AG194' 'AG195' 'AG196' 'AG197' 'AG198' 'AG199' 'AG200' 'AG201' 'AG202' 'AG203' 'AG204' 'AG205' 'AG206' 'AG207' 'AG208' 'RM209' 'RM210' 'RM211' 'RM212' 'RM213' 'RM214' 'RM215' 'RM216' 'RM217' 'RM218' 'RM219' 'RM220' 'RM221' 'RM222' 'RM223' 'RM224' '225' '226' '227' '228' '229' '230' '231' '232' '233' '234' '235' '236' '237' '238' '239' '240' '241' '242' '243' '244' '245' '246' '247' '248' '249' '250' '251' '252' '253' '254' '255' '256' }
reading and preprocessing
reading and preprocessing trial 3 from 5reading and preprocessing trial 5 from 5reading and preprocessing trial 7 from 5reading and preprocessing trial 9 from 5reading and preprocessing trial 11 from reading and preprocessing trial 13 from reading and preprocessing trial 15 from reading and preprocessing trial 17 from reading and preprocessing trial 19 from reading and preprocessing trial 21 from reading and preprocessing trial 23 from reading and preprocessing trial 25 from reading and preprocessing trial 27 from reading and preprocessing trial 29 from reading and preprocessing trial 31 from reading and preprocessing trial 33 from reading and preprocessing trial 35 from reading and preprocessing trial 37 from reading and preprocessing trial 39 from reading and preprocessing trial 41 from reading and preprocessing trial 43 from reading and preprocessing trial 45 from reading and preprocessing trial 47 from reading and preprocessing trial 49 from reading and preprocessing trial 50 from 50
the call to "ft_preprocessing" took 4 seconds
evaluating trial function 'ft_trialfun_general'
reading the header from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-1.con'
reading the events from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-1.con'
found 50 events
created 50 trials
the call to "ft_definetrial" took 2 seconds
processing channel { 'AG001' 'AG002' 'AG003' 'AG004' 'AG005' 'AG006' 'AG007' 'AG008' 'AG009' 'AG010' 'AG011' 'AG012' 'AG013' 'AG014' 'AG015' 'AG016' 'AG017' 'AG018' 'AG019' 'AG020' 'AG021' 'AG022' 'AG023' 'AG024' 'AG025' 'AG026' 'AG027' 'AG028' 'AG029' 'AG030' 'AG031' 'AG032' 'AG033' 'AG034' 'AG035' 'AG036' 'AG037' 'AG038' 'AG039' 'AG040' 'AG041' 'AG042' 'AG043' 'AG044' 'AG045' 'AG046' 'AG047' 'AG048' 'AG049' 'AG050' 'AG051' 'AG052' 'AG053' 'AG054' 'AG055' 'AG056' 'AG057' 'AG058' 'AG059' 'AG060' 'AG061' 'AG062' 'AG063' 'AG064' 'AG065' 'AG066' 'AG067' 'AG068' 'AG069' 'AG070' 'AG071' 'AG072' 'AG073' 'AG074' 'AG075' 'AG076' 'AG077' 'AG078' 'AG079' 'AG080' 'AG081' 'AG082' 'AG083' 'AG084' 'AG085' 'AG086' 'AG087' 'AG088' 'AG089' 'AG090' 'AG091' 'RM092' 'AG093' 'AG094' 'AG095' 'AG096' 'AG097' 'AG098' 'AG099' 'AG100' 'AG101' 'AG102' 'AG103' 'AG104' 'AG105' 'AG106' 'AG107' 'AG108' 'AG109' 'AG110' 'AG111' 'AG112' 'AG113' 'AG114' 'AG115' 'AG116' 'AG117' 'AG118' 'AG119' 'AG120' 'AG121' 'AG122' 'AG123' 'AG124' 'AG125' 'AG126' 'AG127' 'AG128' 'AG129' 'AG130' 'AG131' 'AG132' 'AG133' 'AG134' 'AG135' 'AG136' 'AG137' 'AG138' 'AG139' 'AG140' 'AG141' 'AG142' 'AG143' 'AG144' 'AG145' 'AG146' 'AG147' 'AG148' 'AG149' 'AG150' 'AG151' 'AG152' 'AG153' 'AG154' 'AG155' 'AG156' 'AG157' 'AG158' 'AG159' 'AG160' 'AG161' 'AG162' 'AG163' 'AG164' 'AG165' 'AG166' 'AG167' 'AG168' 'AG169' 'AG170' 'AG171' 'AG172' 'AG173' 'AG174' 'AG175' 'AG176' 'AG177' 'AG178' 'AG179' 'AG180' 'AG181' 'AG182' 'AG183' 'AG184' 'AG185' 'AG186' 'AG187' 'AG188' 'AG189' 'AG190' 'AG191' 'AG192' 'AG193' 'AG194' 'AG195' 'AG196' 'AG197' 'AG198' 'AG199' 'AG200' 'AG201' 'AG202' 'AG203' 'AG204' 'AG205' 'AG206' 'AG207' 'AG208' 'RM209' 'RM210' 'RM211' 'RM212' 'RM213' 'RM214' 'RM215' 'RM216' 'RM217' 'RM218' 'RM219' 'RM220' 'RM221' 'RM222' 'RM223' 'RM224' '225' '226' '227' '228' '229' '230' '231' '232' '233' '234' '235' '236' '237' '238' '239' '240' '241' '242' '243' '244' '245' '246' '247' '248' '249' '250' '251' '252' '253' '254' '255' '256' }
reading and preprocessing
reading and preprocessing trial 3 from 5reading and preprocessing trial 5 from 5reading and preprocessing trial 7 from 5reading and preprocessing trial 9 from 5reading and preprocessing trial 11 from reading and preprocessing trial 13 from reading and preprocessing trial 15 from reading and preprocessing trial 17 from reading and preprocessing trial 19 from reading and preprocessing trial 21 from reading and preprocessing trial 23 from reading and preprocessing trial 25 from reading and preprocessing trial 27 from reading and preprocessing trial 29 from reading and preprocessing trial 31 from reading and preprocessing trial 33 from reading and preprocessing trial 35 from reading and preprocessing trial 37 from reading and preprocessing trial 39 from reading and preprocessing trial 41 from reading and preprocessing trial 43 from reading and preprocessing trial 45 from reading and preprocessing trial 47 from reading and preprocessing trial 49 from reading and preprocessing trial 50 from 50
the call to "ft_preprocessing" took 4 seconds
evaluating trial function 'ft_trialfun_general'
reading the header from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-2.con'
reading the events from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-2.con'
found 50 events
created 50 trials
the call to "ft_definetrial" took 4 seconds
processing channel { 'AG001' 'AG002' 'AG003' 'AG004' 'AG005' 'AG006' 'AG007' 'AG008' 'AG009' 'AG010' 'AG011' 'AG012' 'AG013' 'AG014' 'AG015' 'AG016' 'AG017' 'AG018' 'AG019' 'AG020' 'AG021' 'AG022' 'AG023' 'AG024' 'AG025' 'AG026' 'AG027' 'AG028' 'AG029' 'AG030' 'AG031' 'AG032' 'AG033' 'AG034' 'AG035' 'AG036' 'AG037' 'AG038' 'AG039' 'AG040' 'AG041' 'AG042' 'AG043' 'AG044' 'AG045' 'AG046' 'AG047' 'AG048' 'AG049' 'AG050' 'AG051' 'AG052' 'AG053' 'AG054' 'AG055' 'AG056' 'AG057' 'AG058' 'AG059' 'AG060' 'AG061' 'AG062' 'AG063' 'AG064' 'AG065' 'AG066' 'AG067' 'AG068' 'AG069' 'AG070' 'AG071' 'AG072' 'AG073' 'AG074' 'AG075' 'AG076' 'AG077' 'AG078' 'AG079' 'AG080' 'AG081' 'AG082' 'AG083' 'AG084' 'AG085' 'AG086' 'AG087' 'AG088' 'AG089' 'AG090' 'AG091' 'RM092' 'AG093' 'AG094' 'AG095' 'AG096' 'AG097' 'AG098' 'AG099' 'AG100' 'AG101' 'AG102' 'AG103' 'AG104' 'AG105' 'AG106' 'AG107' 'AG108' 'AG109' 'AG110' 'AG111' 'AG112' 'AG113' 'AG114' 'AG115' 'AG116' 'AG117' 'AG118' 'AG119' 'AG120' 'AG121' 'AG122' 'AG123' 'AG124' 'AG125' 'AG126' 'AG127' 'AG128' 'AG129' 'AG130' 'AG131' 'AG132' 'AG133' 'AG134' 'AG135' 'AG136' 'AG137' 'AG138' 'AG139' 'AG140' 'AG141' 'AG142' 'AG143' 'AG144' 'AG145' 'AG146' 'AG147' 'AG148' 'AG149' 'AG150' 'AG151' 'AG152' 'AG153' 'AG154' 'AG155' 'AG156' 'AG157' 'AG158' 'AG159' 'AG160' 'AG161' 'AG162' 'AG163' 'AG164' 'AG165' 'AG166' 'AG167' 'AG168' 'AG169' 'AG170' 'AG171' 'AG172' 'AG173' 'AG174' 'AG175' 'AG176' 'AG177' 'AG178' 'AG179' 'AG180' 'AG181' 'AG182' 'AG183' 'AG184' 'AG185' 'AG186' 'AG187' 'AG188' 'AG189' 'AG190' 'AG191' 'AG192' 'AG193' 'AG194' 'AG195' 'AG196' 'AG197' 'AG198' 'AG199' 'AG200' 'AG201' 'AG202' 'AG203' 'AG204' 'AG205' 'AG206' 'AG207' 'AG208' 'RM209' 'RM210' 'RM211' 'RM212' 'RM213' 'RM214' 'RM215' 'RM216' 'RM217' 'RM218' 'RM219' 'RM220' 'RM221' 'RM222' 'RM223' 'RM224' '225' '226' '227' '228' '229' '230' '231' '232' '233' '234' '235' '236' '237' '238' '239' '240' '241' '242' '243' '244' '245' '246' '247' '248' '249' '250' '251' '252' '253' '254' '255' '256' }
reading and preprocessing
reading and preprocessing trial 3 from 5reading and preprocessing trial 5 from 5reading and preprocessing trial 7 from 5reading and preprocessing trial 9 from 5reading and preprocessing trial 11 from reading and preprocessing trial 13 from reading and preprocessing trial 15 from reading and preprocessing trial 17 from reading and preprocessing trial 19 from reading and preprocessing trial 21 from reading and preprocessing trial 23 from reading and preprocessing trial 25 from reading and preprocessing trial 27 from reading and preprocessing trial 29 from reading and preprocessing trial 31 from reading and preprocessing trial 33 from reading and preprocessing trial 35 from reading and preprocessing trial 37 from reading and preprocessing trial 39 from reading and preprocessing trial 41 from reading and preprocessing trial 43 from reading and preprocessing trial 45 from reading and preprocessing trial 47 from reading and preprocessing trial 49 from reading and preprocessing trial 50 from 50
the call to "ft_preprocessing" took 4 seconds
evaluating trial function 'ft_trialfun_general'
reading the header from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-2.con'
reading the events from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-2.con'
found 50 events
created 50 trials
the call to "ft_definetrial" took 3 seconds
processing channel { 'AG001' 'AG002' 'AG003' 'AG004' 'AG005' 'AG006' 'AG007' 'AG008' 'AG009' 'AG010' 'AG011' 'AG012' 'AG013' 'AG014' 'AG015' 'AG016' 'AG017' 'AG018' 'AG019' 'AG020' 'AG021' 'AG022' 'AG023' 'AG024' 'AG025' 'AG026' 'AG027' 'AG028' 'AG029' 'AG030' 'AG031' 'AG032' 'AG033' 'AG034' 'AG035' 'AG036' 'AG037' 'AG038' 'AG039' 'AG040' 'AG041' 'AG042' 'AG043' 'AG044' 'AG045' 'AG046' 'AG047' 'AG048' 'AG049' 'AG050' 'AG051' 'AG052' 'AG053' 'AG054' 'AG055' 'AG056' 'AG057' 'AG058' 'AG059' 'AG060' 'AG061' 'AG062' 'AG063' 'AG064' 'AG065' 'AG066' 'AG067' 'AG068' 'AG069' 'AG070' 'AG071' 'AG072' 'AG073' 'AG074' 'AG075' 'AG076' 'AG077' 'AG078' 'AG079' 'AG080' 'AG081' 'AG082' 'AG083' 'AG084' 'AG085' 'AG086' 'AG087' 'AG088' 'AG089' 'AG090' 'AG091' 'RM092' 'AG093' 'AG094' 'AG095' 'AG096' 'AG097' 'AG098' 'AG099' 'AG100' 'AG101' 'AG102' 'AG103' 'AG104' 'AG105' 'AG106' 'AG107' 'AG108' 'AG109' 'AG110' 'AG111' 'AG112' 'AG113' 'AG114' 'AG115' 'AG116' 'AG117' 'AG118' 'AG119' 'AG120' 'AG121' 'AG122' 'AG123' 'AG124' 'AG125' 'AG126' 'AG127' 'AG128' 'AG129' 'AG130' 'AG131' 'AG132' 'AG133' 'AG134' 'AG135' 'AG136' 'AG137' 'AG138' 'AG139' 'AG140' 'AG141' 'AG142' 'AG143' 'AG144' 'AG145' 'AG146' 'AG147' 'AG148' 'AG149' 'AG150' 'AG151' 'AG152' 'AG153' 'AG154' 'AG155' 'AG156' 'AG157' 'AG158' 'AG159' 'AG160' 'AG161' 'AG162' 'AG163' 'AG164' 'AG165' 'AG166' 'AG167' 'AG168' 'AG169' 'AG170' 'AG171' 'AG172' 'AG173' 'AG174' 'AG175' 'AG176' 'AG177' 'AG178' 'AG179' 'AG180' 'AG181' 'AG182' 'AG183' 'AG184' 'AG185' 'AG186' 'AG187' 'AG188' 'AG189' 'AG190' 'AG191' 'AG192' 'AG193' 'AG194' 'AG195' 'AG196' 'AG197' 'AG198' 'AG199' 'AG200' 'AG201' 'AG202' 'AG203' 'AG204' 'AG205' 'AG206' 'AG207' 'AG208' 'RM209' 'RM210' 'RM211' 'RM212' 'RM213' 'RM214' 'RM215' 'RM216' 'RM217' 'RM218' 'RM219' 'RM220' 'RM221' 'RM222' 'RM223' 'RM224' '225' '226' '227' '228' '229' '230' '231' '232' '233' '234' '235' '236' '237' '238' '239' '240' '241' '242' '243' '244' '245' '246' '247' '248' '249' '250' '251' '252' '253' '254' '255' '256' }
reading and preprocessing
reading and preprocessing trial 3 from 5reading and preprocessing trial 5 from 5reading and preprocessing trial 7 from 5reading and preprocessing trial 9 from 5reading and preprocessing trial 11 from reading and preprocessing trial 13 from reading and preprocessing trial 15 from reading and preprocessing trial 17 from reading and preprocessing trial 19 from reading and preprocessing trial 21 from reading and preprocessing trial 23 from reading and preprocessing trial 25 from reading and preprocessing trial 27 from reading and preprocessing trial 29 from reading and preprocessing trial 31 from reading and preprocessing trial 33 from reading and preprocessing trial 35 from reading and preprocessing trial 36 from reading and preprocessing trial 38 from reading and preprocessing trial 40 from reading and preprocessing trial 42 from reading and preprocessing trial 44 from reading and preprocessing trial 46 from reading and preprocessing trial 48 from reading and preprocessing trial 50 from 50
the call to "ft_preprocessing" took 4 seconds
evaluating trial function 'ft_trialfun_general'
reading the header from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-2.con'
reading the events from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-2.con'
found 50 events
created 50 trials
the call to "ft_definetrial" took 3 seconds
processing channel { 'AG001' 'AG002' 'AG003' 'AG004' 'AG005' 'AG006' 'AG007' 'AG008' 'AG009' 'AG010' 'AG011' 'AG012' 'AG013' 'AG014' 'AG015' 'AG016' 'AG017' 'AG018' 'AG019' 'AG020' 'AG021' 'AG022' 'AG023' 'AG024' 'AG025' 'AG026' 'AG027' 'AG028' 'AG029' 'AG030' 'AG031' 'AG032' 'AG033' 'AG034' 'AG035' 'AG036' 'AG037' 'AG038' 'AG039' 'AG040' 'AG041' 'AG042' 'AG043' 'AG044' 'AG045' 'AG046' 'AG047' 'AG048' 'AG049' 'AG050' 'AG051' 'AG052' 'AG053' 'AG054' 'AG055' 'AG056' 'AG057' 'AG058' 'AG059' 'AG060' 'AG061' 'AG062' 'AG063' 'AG064' 'AG065' 'AG066' 'AG067' 'AG068' 'AG069' 'AG070' 'AG071' 'AG072' 'AG073' 'AG074' 'AG075' 'AG076' 'AG077' 'AG078' 'AG079' 'AG080' 'AG081' 'AG082' 'AG083' 'AG084' 'AG085' 'AG086' 'AG087' 'AG088' 'AG089' 'AG090' 'AG091' 'RM092' 'AG093' 'AG094' 'AG095' 'AG096' 'AG097' 'AG098' 'AG099' 'AG100' 'AG101' 'AG102' 'AG103' 'AG104' 'AG105' 'AG106' 'AG107' 'AG108' 'AG109' 'AG110' 'AG111' 'AG112' 'AG113' 'AG114' 'AG115' 'AG116' 'AG117' 'AG118' 'AG119' 'AG120' 'AG121' 'AG122' 'AG123' 'AG124' 'AG125' 'AG126' 'AG127' 'AG128' 'AG129' 'AG130' 'AG131' 'AG132' 'AG133' 'AG134' 'AG135' 'AG136' 'AG137' 'AG138' 'AG139' 'AG140' 'AG141' 'AG142' 'AG143' 'AG144' 'AG145' 'AG146' 'AG147' 'AG148' 'AG149' 'AG150' 'AG151' 'AG152' 'AG153' 'AG154' 'AG155' 'AG156' 'AG157' 'AG158' 'AG159' 'AG160' 'AG161' 'AG162' 'AG163' 'AG164' 'AG165' 'AG166' 'AG167' 'AG168' 'AG169' 'AG170' 'AG171' 'AG172' 'AG173' 'AG174' 'AG175' 'AG176' 'AG177' 'AG178' 'AG179' 'AG180' 'AG181' 'AG182' 'AG183' 'AG184' 'AG185' 'AG186' 'AG187' 'AG188' 'AG189' 'AG190' 'AG191' 'AG192' 'AG193' 'AG194' 'AG195' 'AG196' 'AG197' 'AG198' 'AG199' 'AG200' 'AG201' 'AG202' 'AG203' 'AG204' 'AG205' 'AG206' 'AG207' 'AG208' 'RM209' 'RM210' 'RM211' 'RM212' 'RM213' 'RM214' 'RM215' 'RM216' 'RM217' 'RM218' 'RM219' 'RM220' 'RM221' 'RM222' 'RM223' 'RM224' '225' '226' '227' '228' '229' '230' '231' '232' '233' '234' '235' '236' '237' '238' '239' '240' '241' '242' '243' '244' '245' '246' '247' '248' '249' '250' '251' '252' '253' '254' '255' '256' }
reading and preprocessing
reading and preprocessing trial 3 from 5reading and preprocessing trial 5 from 5reading and preprocessing trial 7 from 5reading and preprocessing trial 9 from 5reading and preprocessing trial 11 from reading and preprocessing trial 13 from reading and preprocessing trial 15 from reading and preprocessing trial 17 from reading and preprocessing trial 19 from reading and preprocessing trial 21 from reading and preprocessing trial 23 from reading and preprocessing trial 25 from reading and preprocessing trial 27 from reading and preprocessing trial 29 from reading and preprocessing trial 31 from reading and preprocessing trial 33 from reading and preprocessing trial 35 from reading and preprocessing trial 37 from reading and preprocessing trial 39 from reading and preprocessing trial 41 from reading and preprocessing trial 43 from reading and preprocessing trial 45 from reading and preprocessing trial 47 from reading and preprocessing trial 49 from reading and preprocessing trial 50 from 50
the call to "ft_preprocessing" took 4 seconds
evaluating trial function 'ft_trialfun_general'
reading the header from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-3.con'
reading the events from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-3.con'
found 50 events
created 50 trials
the call to "ft_definetrial" took 3 seconds
processing channel { 'AG001' 'AG002' 'AG003' 'AG004' 'AG005' 'AG006' 'AG007' 'AG008' 'AG009' 'AG010' 'AG011' 'AG012' 'AG013' 'AG014' 'AG015' 'AG016' 'AG017' 'AG018' 'AG019' 'AG020' 'AG021' 'AG022' 'AG023' 'AG024' 'AG025' 'AG026' 'AG027' 'AG028' 'AG029' 'AG030' 'AG031' 'AG032' 'AG033' 'AG034' 'AG035' 'AG036' 'AG037' 'AG038' 'AG039' 'AG040' 'AG041' 'AG042' 'AG043' 'AG044' 'AG045' 'AG046' 'AG047' 'AG048' 'AG049' 'AG050' 'AG051' 'AG052' 'AG053' 'AG054' 'AG055' 'AG056' 'AG057' 'AG058' 'AG059' 'AG060' 'AG061' 'AG062' 'AG063' 'AG064' 'AG065' 'AG066' 'AG067' 'AG068' 'AG069' 'AG070' 'AG071' 'AG072' 'AG073' 'AG074' 'AG075' 'AG076' 'AG077' 'AG078' 'AG079' 'AG080' 'AG081' 'AG082' 'AG083' 'AG084' 'AG085' 'AG086' 'AG087' 'AG088' 'AG089' 'AG090' 'AG091' 'RM092' 'AG093' 'AG094' 'AG095' 'AG096' 'AG097' 'AG098' 'AG099' 'AG100' 'AG101' 'AG102' 'AG103' 'AG104' 'AG105' 'AG106' 'AG107' 'AG108' 'AG109' 'AG110' 'AG111' 'AG112' 'AG113' 'AG114' 'AG115' 'AG116' 'AG117' 'AG118' 'AG119' 'AG120' 'AG121' 'AG122' 'AG123' 'AG124' 'AG125' 'AG126' 'AG127' 'AG128' 'AG129' 'AG130' 'AG131' 'AG132' 'AG133' 'AG134' 'AG135' 'AG136' 'AG137' 'AG138' 'AG139' 'AG140' 'AG141' 'AG142' 'AG143' 'AG144' 'AG145' 'AG146' 'AG147' 'AG148' 'AG149' 'AG150' 'AG151' 'AG152' 'AG153' 'AG154' 'AG155' 'AG156' 'AG157' 'AG158' 'AG159' 'AG160' 'AG161' 'AG162' 'AG163' 'AG164' 'AG165' 'AG166' 'AG167' 'AG168' 'AG169' 'AG170' 'AG171' 'AG172' 'AG173' 'AG174' 'AG175' 'AG176' 'AG177' 'AG178' 'AG179' 'AG180' 'AG181' 'AG182' 'AG183' 'AG184' 'AG185' 'AG186' 'AG187' 'AG188' 'AG189' 'AG190' 'AG191' 'AG192' 'AG193' 'AG194' 'AG195' 'AG196' 'AG197' 'AG198' 'AG199' 'AG200' 'AG201' 'AG202' 'AG203' 'AG204' 'AG205' 'AG206' 'AG207' 'AG208' 'RM209' 'RM210' 'RM211' 'RM212' 'RM213' 'RM214' 'RM215' 'RM216' 'RM217' 'RM218' 'RM219' 'RM220' 'RM221' 'RM222' 'RM223' 'RM224' '225' '226' '227' '228' '229' '230' '231' '232' '233' '234' '235' '236' '237' '238' '239' '240' '241' '242' '243' '244' '245' '246' '247' '248' '249' '250' '251' '252' '253' '254' '255' '256' }
reading and preprocessing
reading and preprocessing trial 3 from 5reading and preprocessing trial 5 from 5reading and preprocessing trial 7 from 5reading and preprocessing trial 9 from 5reading and preprocessing trial 11 from reading and preprocessing trial 13 from reading and preprocessing trial 15 from reading and preprocessing trial 17 from reading and preprocessing trial 18 from reading and preprocessing trial 20 from reading and preprocessing trial 22 from reading and preprocessing trial 24 from reading and preprocessing trial 26 from reading and preprocessing trial 28 from reading and preprocessing trial 30 from reading and preprocessing trial 31 from reading and preprocessing trial 32 from reading and preprocessing trial 34 from reading and preprocessing trial 36 from reading and preprocessing trial 38 from reading and preprocessing trial 40 from reading and preprocessing trial 42 from reading and preprocessing trial 44 from reading and preprocessing trial 46 from reading and preprocessing trial 48 from reading and preprocessing trial 50 from 50
the call to "ft_preprocessing" took 4 seconds
evaluating trial function 'ft_trialfun_general'
reading the header from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-3.con'
reading the events from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-3.con'
found 50 events
created 50 trials
the call to "ft_definetrial" took 2 seconds
processing channel { 'AG001' 'AG002' 'AG003' 'AG004' 'AG005' 'AG006' 'AG007' 'AG008' 'AG009' 'AG010' 'AG011' 'AG012' 'AG013' 'AG014' 'AG015' 'AG016' 'AG017' 'AG018' 'AG019' 'AG020' 'AG021' 'AG022' 'AG023' 'AG024' 'AG025' 'AG026' 'AG027' 'AG028' 'AG029' 'AG030' 'AG031' 'AG032' 'AG033' 'AG034' 'AG035' 'AG036' 'AG037' 'AG038' 'AG039' 'AG040' 'AG041' 'AG042' 'AG043' 'AG044' 'AG045' 'AG046' 'AG047' 'AG048' 'AG049' 'AG050' 'AG051' 'AG052' 'AG053' 'AG054' 'AG055' 'AG056' 'AG057' 'AG058' 'AG059' 'AG060' 'AG061' 'AG062' 'AG063' 'AG064' 'AG065' 'AG066' 'AG067' 'AG068' 'AG069' 'AG070' 'AG071' 'AG072' 'AG073' 'AG074' 'AG075' 'AG076' 'AG077' 'AG078' 'AG079' 'AG080' 'AG081' 'AG082' 'AG083' 'AG084' 'AG085' 'AG086' 'AG087' 'AG088' 'AG089' 'AG090' 'AG091' 'RM092' 'AG093' 'AG094' 'AG095' 'AG096' 'AG097' 'AG098' 'AG099' 'AG100' 'AG101' 'AG102' 'AG103' 'AG104' 'AG105' 'AG106' 'AG107' 'AG108' 'AG109' 'AG110' 'AG111' 'AG112' 'AG113' 'AG114' 'AG115' 'AG116' 'AG117' 'AG118' 'AG119' 'AG120' 'AG121' 'AG122' 'AG123' 'AG124' 'AG125' 'AG126' 'AG127' 'AG128' 'AG129' 'AG130' 'AG131' 'AG132' 'AG133' 'AG134' 'AG135' 'AG136' 'AG137' 'AG138' 'AG139' 'AG140' 'AG141' 'AG142' 'AG143' 'AG144' 'AG145' 'AG146' 'AG147' 'AG148' 'AG149' 'AG150' 'AG151' 'AG152' 'AG153' 'AG154' 'AG155' 'AG156' 'AG157' 'AG158' 'AG159' 'AG160' 'AG161' 'AG162' 'AG163' 'AG164' 'AG165' 'AG166' 'AG167' 'AG168' 'AG169' 'AG170' 'AG171' 'AG172' 'AG173' 'AG174' 'AG175' 'AG176' 'AG177' 'AG178' 'AG179' 'AG180' 'AG181' 'AG182' 'AG183' 'AG184' 'AG185' 'AG186' 'AG187' 'AG188' 'AG189' 'AG190' 'AG191' 'AG192' 'AG193' 'AG194' 'AG195' 'AG196' 'AG197' 'AG198' 'AG199' 'AG200' 'AG201' 'AG202' 'AG203' 'AG204' 'AG205' 'AG206' 'AG207' 'AG208' 'RM209' 'RM210' 'RM211' 'RM212' 'RM213' 'RM214' 'RM215' 'RM216' 'RM217' 'RM218' 'RM219' 'RM220' 'RM221' 'RM222' 'RM223' 'RM224' '225' '226' '227' '228' '229' '230' '231' '232' '233' '234' '235' '236' '237' '238' '239' '240' '241' '242' '243' '244' '245' '246' '247' '248' '249' '250' '251' '252' '253' '254' '255' '256' }
reading and preprocessing
reading and preprocessing trial 3 from 5reading and preprocessing trial 5 from 5reading and preprocessing trial 7 from 5reading and preprocessing trial 9 from 5reading and preprocessing trial 11 from reading and preprocessing trial 13 from reading and preprocessing trial 15 from reading and preprocessing trial 17 from reading and preprocessing trial 19 from reading and preprocessing trial 21 from reading and preprocessing trial 23 from reading and preprocessing trial 25 from reading and preprocessing trial 27 from reading and preprocessing trial 29 from reading and preprocessing trial 31 from reading and preprocessing trial 33 from reading and preprocessing trial 35 from reading and preprocessing trial 37 from reading and preprocessing trial 38 from reading and preprocessing trial 40 from reading and preprocessing trial 42 from reading and preprocessing trial 44 from reading and preprocessing trial 46 from reading and preprocessing trial 48 from reading and preprocessing trial 50 from 50
the call to "ft_preprocessing" took 4 seconds
evaluating trial function 'ft_trialfun_general'
reading the header from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-3.con'
reading the events from 'C:\Users\hz3752\Box\MEG\Data\audio-visual-motor\sub-001\meg-kit\sub-001_audio-visual_session-3.con'
found 50 events
created 50 trials
the call to "ft_definetrial" took 4 seconds
processing channel { 'AG001' 'AG002' 'AG003' 'AG004' 'AG005' 'AG006' 'AG007' 'AG008' 'AG009' 'AG010' 'AG011' 'AG012' 'AG013' 'AG014' 'AG015' 'AG016' 'AG017' 'AG018' 'AG019' 'AG020' 'AG021' 'AG022' 'AG023' 'AG024' 'AG025' 'AG026' 'AG027' 'AG028' 'AG029' 'AG030' 'AG031' 'AG032' 'AG033' 'AG034' 'AG035' 'AG036' 'AG037' 'AG038' 'AG039' 'AG040' 'AG041' 'AG042' 'AG043' 'AG044' 'AG045' 'AG046' 'AG047' 'AG048' 'AG049' 'AG050' 'AG051' 'AG052' 'AG053' 'AG054' 'AG055' 'AG056' 'AG057' 'AG058' 'AG059' 'AG060' 'AG061' 'AG062' 'AG063' 'AG064' 'AG065' 'AG066' 'AG067' 'AG068' 'AG069' 'AG070' 'AG071' 'AG072' 'AG073' 'AG074' 'AG075' 'AG076' 'AG077' 'AG078' 'AG079' 'AG080' 'AG081' 'AG082' 'AG083' 'AG084' 'AG085' 'AG086' 'AG087' 'AG088' 'AG089' 'AG090' 'AG091' 'RM092' 'AG093' 'AG094' 'AG095' 'AG096' 'AG097' 'AG098' 'AG099' 'AG100' 'AG101' 'AG102' 'AG103' 'AG104' 'AG105' 'AG106' 'AG107' 'AG108' 'AG109' 'AG110' 'AG111' 'AG112' 'AG113' 'AG114' 'AG115' 'AG116' 'AG117' 'AG118' 'AG119' 'AG120' 'AG121' 'AG122' 'AG123' 'AG124' 'AG125' 'AG126' 'AG127' 'AG128' 'AG129' 'AG130' 'AG131' 'AG132' 'AG133' 'AG134' 'AG135' 'AG136' 'AG137' 'AG138' 'AG139' 'AG140' 'AG141' 'AG142' 'AG143' 'AG144' 'AG145' 'AG146' 'AG147' 'AG148' 'AG149' 'AG150' 'AG151' 'AG152' 'AG153' 'AG154' 'AG155' 'AG156' 'AG157' 'AG158' 'AG159' 'AG160' 'AG161' 'AG162' 'AG163' 'AG164' 'AG165' 'AG166' 'AG167' 'AG168' 'AG169' 'AG170' 'AG171' 'AG172' 'AG173' 'AG174' 'AG175' 'AG176' 'AG177' 'AG178' 'AG179' 'AG180' 'AG181' 'AG182' 'AG183' 'AG184' 'AG185' 'AG186' 'AG187' 'AG188' 'AG189' 'AG190' 'AG191' 'AG192' 'AG193' 'AG194' 'AG195' 'AG196' 'AG197' 'AG198' 'AG199' 'AG200' 'AG201' 'AG202' 'AG203' 'AG204' 'AG205' 'AG206' 'AG207' 'AG208' 'RM209' 'RM210' 'RM211' 'RM212' 'RM213' 'RM214' 'RM215' 'RM216' 'RM217' 'RM218' 'RM219' 'RM220' 'RM221' 'RM222' 'RM223' 'RM224' '225' '226' '227' '228' '229' '230' '231' '232' '233' '234' '235' '236' '237' '238' '239' '240' '241' '242' '243' '244' '245' '246' '247' '248' '249' '250' '251' '252' '253' '254' '255' '256' }
reading and preprocessing
reading and preprocessing trial 2 from 5reading and preprocessing trial 4 from 5reading and preprocessing trial 6 from 5reading and preprocessing trial 8 from 5reading and preprocessing trial 10 from reading and preprocessing trial 12 from reading and preprocessing trial 14 from reading and preprocessing trial 16 from reading and preprocessing trial 18 from reading and preprocessing trial 20 from reading and preprocessing trial 22 from reading and preprocessing trial 24 from reading and preprocessing trial 26 from reading and preprocessing trial 28 from reading and preprocessing trial 30 from reading and preprocessing trial 32 from reading and preprocessing trial 34 from reading and preprocessing trial 36 from reading and preprocessing trial 38 from reading and preprocessing trial 40 from reading and preprocessing trial 42 from reading and preprocessing trial 44 from reading and preprocessing trial 46 from reading and preprocessing trial 48 from reading and preprocessing trial 50 from 50
the call to "ft_preprocessing" took 4 seconds
[2]:
%% Trials Concantenation
TRIALS_STIM = cell( length(trigger_channels),1);
for chIdx = 1:length(trigger_channels)
cfg = [];
TRIALS_STIM{chIdx} = ft_appenddata(cfg, TRIALS{1,chIdx}, TRIALS{2,chIdx}, TRIALS{3, chIdx});
end
Warning: the data has overlapping segments or originates from different recordings on diskWarning: please consider specifying cfg.keepsampleinfo='no'
concatenating over the "rpt" dimension
the call to "ft_selectdata" took 0 seconds
the call to "ft_appenddata" took 0 seconds
Warning: the data has overlapping segments or originates from different recordings on diskWarning: please consider specifying cfg.keepsampleinfo='no'
concatenating over the "rpt" dimension
the call to "ft_selectdata" took 0 seconds
the call to "ft_appenddata" took 0 seconds
Warning: the data has overlapping segments or originates from different recordings on diskWarning: please consider specifying cfg.keepsampleinfo='no'
concatenating over the "rpt" dimension
the call to "ft_selectdata" took 0 seconds
the call to "ft_appenddata" took 0 seconds
[3]:
%% Visual Inspection ALTL
TRIALS_STIM_REJ = cell( length(trigger_channels),1);
for tr = 1:length(TRIALS_STIM)
cfg = [];
cfg.method='summary';
cfg.channel = {'AG*'};
TRIALS_STIM_REJ{tr} = ft_rejectvisual(cfg, TRIALS_STIM{tr});
end
save TRIALS_STIM_REJ TRIALS_STIM_REJ
the input is raw data with 256 channels and 150 trials
before GUI interaction: 150 trials marked to INCLUDE, 0 trials marked to EXCLUDE
before GUI interaction: 207 channels marked to INCLUDE, 49 channels marked to EXCLUDE
showing a summary of the data for all channels and trials
computing var [-----------------| computing var [---------------------------------------/ computing var [------------------------------------------------------------]
after GUI interaction: 141 trials marked to INCLUDE, 9 trials marked to EXCLUDE
after GUI interaction: 207 channels marked to INCLUDE, 49 channels marked to EXCLUDE
the following channels were removed: RM092, RM209, RM210, RM211, RM212, RM213, RM214, RM215, RM216, RM217, RM218, RM219, RM220, RM221, RM222, RM223, RM224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256
the following trials were removed: 22, 49, 50, 54, 97, 106, 114, 122, 128
the call to "ft_selectdata" took 0 seconds
the call to "ft_rejectvisual" took 23 seconds
the input is raw data with 256 channels and 150 trials
before GUI interaction: 150 trials marked to INCLUDE, 0 trials marked to EXCLUDE
before GUI interaction: 207 channels marked to INCLUDE, 49 channels marked to EXCLUDE
showing a summary of the data for all channels and trials
computing var [------------------------| computing var [----------------------------------------------/ computing var [------------------------------------------------------------]
after GUI interaction: 147 trials marked to INCLUDE, 3 trials marked to EXCLUDE
after GUI interaction: 206 channels marked to INCLUDE, 50 channels marked to EXCLUDE
the following channels were removed: RM092, AG113, RM209, RM210, RM211, RM212, RM213, RM214, RM215, RM216, RM217, RM218, RM219, RM220, RM221, RM222, RM223, RM224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256
the following trials were removed: 91, 120, 121
the call to "ft_selectdata" took 0 seconds
the call to "ft_rejectvisual" took 15 seconds
the input is raw data with 256 channels and 150 trials
before GUI interaction: 150 trials marked to INCLUDE, 0 trials marked to EXCLUDE
before GUI interaction: 207 channels marked to INCLUDE, 49 channels marked to EXCLUDE
showing a summary of the data for all channels and trials
computing var [-------------------------| computing var [-----------------------------------------------/ computing var [------------------------------------------------------------]
after GUI interaction: 148 trials marked to INCLUDE, 2 trials marked to EXCLUDE
after GUI interaction: 207 channels marked to INCLUDE, 49 channels marked to EXCLUDE
the following channels were removed: RM092, RM209, RM210, RM211, RM212, RM213, RM214, RM215, RM216, RM217, RM218, RM219, RM220, RM221, RM222, RM223, RM224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256
the following trials were removed: 116, 123
the call to "ft_selectdata" took 0 seconds
the call to "ft_rejectvisual" took 15 seconds
[4]:
%% Averaging
AVG_TRIALS = cell( length(trigger_channels),1);
for tr = 1:length(AVG_TRIALS)
cfg = [];
AVG_TRIALS{tr} = ft_timelockanalysis(cfg, TRIALS_STIM_REJ{tr});
end
the input is raw data with 207 channels and 141 trials
the call to "ft_selectdata" took 0 seconds
the call to "ft_timelockanalysis" took 1 seconds
the input is raw data with 206 channels and 147 trials
the call to "ft_selectdata" took 0 seconds
the call to "ft_timelockanalysis" took 1 seconds
the input is raw data with 207 channels and 148 trials
the call to "ft_selectdata" took 0 seconds
the call to "ft_timelockanalysis" took 1 seconds
[5]:
%% Get KIT Sensors
kit_layout = create_kit_layout(conFile);
figure('Position', [100, 100, 1000, 800]); % Adjust the width and height (1000 and 800) as needed
ft_plot_layout(kit_layout, 'box', 1);
creating layout from cfg.grad
creating layout for yokogawa208 system
the call to "ft_prepare_layout" took 1 seconds
reading layout from file CTF151_helmet.mat
reading 'layout' from file 'CTF151_helmet.mat'
the call to "ft_prepare_layout" took 0 seconds
[5]:
[6]:
%% Plotting in space
% for a single trial type, for each channel, average over time the trial
% and plot the average value on the helmet
% You can still see the time behavior when clicking on one sensor
for tr = 1:length(AVG_TRIALS)
cfg = [];
cfg.xlim = [0.05 1.2];
cfg.colorbar = 'yes';
cfg.layout = kit_layout;
ft_topoplotER(cfg, AVG_TRIALS{tr});
end
the call to "ft_prepare_layout" took 0 seconds
[6]:
the call to "ft_selectdata" took 0 seconds
the call to "ft_topoplotER" took 2 seconds
the call to "ft_prepare_layout" took 0 seconds
[6]:
the call to "ft_selectdata" took 0 seconds
the call to "ft_topoplotER" took 1 seconds
the call to "ft_prepare_layout" took 0 seconds
[6]:
the call to "ft_selectdata" took 0 seconds
the call to "ft_topoplotER" took 1 seconds
Visual stimulus
Visual stimulus ERP select from the first plot sensors in the Occipital lobe and visualise the averaged ERP from the sensors
Observe the M100 and M170
Select the M100 peak from the GUI then double click the selection to see the sensor topoplot averaged only at the selection peak time. Observe then that the strongest magnetic field activity is in the Occipital lobe for the M100.
Auditory Stimulus
Right side averaged sensor ERP
Left side averaged sensor ERP
Motor Stimulus
Topology at the M100 peak.