Fieldtrip: KIT Attention Task Analysis
Lead authors: Hadi Zaatiti hadi.zaatiti@nyu.edu, Karima Raafat karima.raafat@nyu.edu
The Attention Task code experiment in PsychToolBox can 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.
[2]:
%% Attention task pipeline for external noise reduced data
MEG_DATA_FOLDER = getenv('MEG_DATA');
% Set path to KIT .con file of sub-03
DATASET_PATH = [MEG_DATA_FOLDER,'attention-task\'];
%THis needs fixing to sav eproperly
SAVE_PATH = [MEG_DATA_FOLDER, 'attention-task\'];
SUB_ID = 'sub-01\';
ATTEND_RIGHT_CON = [DATASET_PATH, SUB_ID, 'attention_attend_right_01.con'];
ATTEND_LEFT_CON = [DATASET_PATH, SUB_ID, 'attention_attend_left_01.con'];
% Pipeline Configuration
APPLY_FILTERS = false;
The Attention Task experiment was coded with the following trigger channels
Trigger information: KIT channel indexing starts with 0 while MATLAB indexing starts with 1, so ch224 on KIT is ch225 in MATLAB
There is four trial types coded on KIT trigger channels (in KIT indexing):
Attend left and target appearing right triggered on channel 224
Attend left and target appearing left triggered on channel 225
Attend right and target appearing right triggered on channel 226
Attend right and target appearing left triggered on channel 227
We can now perform the preprocessing of the data. Two .con files have been acquired, the first one is when the participant was attending the right side and a second one when attention was drawn to the left side.
[3]:
% Preprocess the MEG data
cfg = [];
cfg.dataset = ATTEND_RIGHT_CON;
cfg.coilaccuracy = 0;
data_MEG_RIGHT = ft_preprocessing(cfg);
% Preprocess the MEG data
cfg = [];
cfg.dataset = ATTEND_LEFT_CON;
cfg.coilaccuracy = 0;
data_MEG_LEFT = ft_preprocessing(cfg);
-------------------------------------------------------------------------------------------
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 37 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 1 from 1
the call to "ft_preprocessing" took 16 seconds
Optional filtering
[5]:
%% Filtering data
if APPLY_FILTERS
% Notch filter the data at 50 Hz
cfg = [];
cfg.bsfilter = 'yes';
cfg.bsfreq = [49 51]; % Notch filter range
data_MEG_RIGHT = ft_preprocessing(cfg, data_MEG_RIGHT);
% Band-pass filter the data
cfg = [];
cfg.bpfilter = 'yes';
cfg.bpfreq = [4 40]; % Band-pass filter range
cfg.bpfiltord = 4; % Filter order
data_MEG_RIGHT = ft_preprocessing(cfg, data_MEG_RIGHT);
% Notch filter the data at 50 Hz
cfg = [];
cfg.bsfilter = 'yes';
cfg.bsfreq = [49 51]; % Notch filter range
data_MEG_LEFT = ft_preprocessing(cfg, data_MEG_LEFT);
% Band-pass filter the data
cfg = [];
cfg.bpfilter = 'yes';
cfg.bpfreq = [4 40]; % Band-pass filter range
cfg.bpfiltord = 4; % Filter order
data_MEG_LEFT = ft_preprocessing(cfg, data_MEG_LEFT);
end
We are now ready to define trials for the Attend Left block
[6]:
%% Define trials and segment the data: Attend Left Target Right
previewTrigger = data_MEG_LEFT.trial{1}(225, :);
threshold = (max(previewTrigger) + min(previewTrigger)) / 2;
cfg = [];
cfg.dataset = ATTEND_LEFT_CON;
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 = 225;
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';
TRIALS_AL_TR = ft_definetrial(cfg);
SG_AL_TR = ft_preprocessing(TRIALS_AL_TR);
evaluating trial function 'ft_trialfun_general'
reading the header from 'C:\Users\hz3752\Box\MEG\Data\attention-task\sub-01\attention_attend_left_01.con'
reading the events from 'C:\Users\hz3752\Box\MEG\Data\attention-task\sub-01\attention_attend_left_01.con'
found 231 events
created 231 trials
the call to "ft_definetrial" took 28 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 2reading and preprocessing trial 5 from 2reading and preprocessing trial 7 from 2reading and preprocessing trial 9 from 2reading and preprocessing trial 11 from 23reading and preprocessing trial 13 from 23reading and preprocessing trial 15 from 23reading and preprocessing trial 17 from 23reading and preprocessing trial 19 from 23reading and preprocessing trial 21 from 23reading and preprocessing trial 23 from 23reading and preprocessing trial 24 from 23reading and preprocessing trial 26 from 23reading and preprocessing trial 27 from 23reading and preprocessing trial 28 from 23reading and preprocessing trial 29 from 23reading and preprocessing trial 31 from 23reading and preprocessing trial 33 from 23reading and preprocessing trial 35 from 23reading and preprocessing trial 37 from 23reading and preprocessing trial 39 from 23reading and preprocessing trial 41 from 23reading and preprocessing trial 43 from 23reading and preprocessing trial 44 from 23reading and preprocessing trial 45 from 23reading and preprocessing trial 46 from 23reading and preprocessing trial 47 from 23reading and preprocessing trial 48 from 23reading and preprocessing trial 50 from 23reading and preprocessing trial 51 from 23reading and preprocessing trial 52 from 23reading and preprocessing trial 53 from 23reading and preprocessing trial 55 from 23reading and preprocessing trial 56 from 23reading and preprocessing trial 57 from 23reading and preprocessing trial 58 from 23reading and preprocessing trial 59 from 23reading and preprocessing trial 60 from 23reading and preprocessing trial 61 from 23reading and preprocessing trial 62 from 23reading and preprocessing trial 64 from 23reading and preprocessing trial 66 from 23reading and preprocessing trial 67 from 23reading and preprocessing trial 69 from 23reading and preprocessing trial 70 from 23reading and preprocessing trial 72 from 23reading and preprocessing trial 74 from 23reading and preprocessing trial 76 from 23reading and preprocessing trial 78 from 23reading and preprocessing trial 80 from 23reading and preprocessing trial 82 from 23reading and preprocessing trial 83 from 23reading and preprocessing trial 85 from 23reading and preprocessing trial 87 from 23reading and preprocessing trial 89 from 23reading and preprocessing trial 91 from 23reading and preprocessing trial 93 from 23reading and preprocessing trial 95 from 23reading and preprocessing trial 97 from 23reading and preprocessing trial 98 from 23reading and preprocessing trial 100 from 2reading and preprocessing trial 102 from 2reading and preprocessing trial 104 from 2reading and preprocessing trial 106 from 2reading and preprocessing trial 108 from 2reading and preprocessing trial 109 from 2reading and preprocessing trial 111 from 2reading and preprocessing trial 112 from 2reading and preprocessing trial 114 from 2reading and preprocessing trial 116 from 2reading and preprocessing trial 118 from 2reading and preprocessing trial 120 from 2reading and preprocessing trial 121 from 2reading and preprocessing trial 123 from 2reading and preprocessing trial 124 from 2reading and preprocessing trial 125 from 2reading and preprocessing trial 127 from 2reading and preprocessing trial 129 from 2reading and preprocessing trial 131 from 2reading and preprocessing trial 132 from 2reading and preprocessing trial 134 from 2reading and preprocessing trial 136 from 2reading and preprocessing trial 138 from 2reading and preprocessing trial 140 from 2reading and preprocessing trial 142 from 2reading and preprocessing trial 144 from 2reading and preprocessing trial 146 from 2reading and preprocessing trial 147 from 2reading and preprocessing trial 148 from 2reading and preprocessing trial 150 from 2reading and preprocessing trial 152 from 2reading and preprocessing trial 154 from 2reading and preprocessing trial 156 from 2reading and preprocessing trial 158 from 2reading and preprocessing trial 160 from 2reading and preprocessing trial 162 from 2reading and preprocessing trial 164 from 2reading and preprocessing trial 165 from 2reading and preprocessing trial 167 from 2reading and preprocessing trial 168 from 2reading and preprocessing trial 170 from 2reading and preprocessing trial 172 from 2reading and preprocessing trial 173 from 2reading and preprocessing trial 174 from 2reading and preprocessing trial 176 from 2reading and preprocessing trial 177 from 2reading and preprocessing trial 179 from 2reading and preprocessing trial 181 from 2reading and preprocessing trial 183 from 2reading and preprocessing trial 185 from 2reading and preprocessing trial 187 from 2reading and preprocessing trial 189 from 2reading and preprocessing trial 191 from 2reading and preprocessing trial 193 from 2reading and preprocessing trial 195 from 2reading and preprocessing trial 197 from 2reading and preprocessing trial 199 from 2reading and preprocessing trial 201 from 2reading and preprocessing trial 203 from 2reading and preprocessing trial 204 from 2reading and preprocessing trial 206 from 2reading and preprocessing trial 208 from 2reading and preprocessing trial 210 from 2reading and preprocessing trial 212 from 2reading and preprocessing trial 214 from 2reading and preprocessing trial 216 from 2reading and preprocessing trial 217 from 2reading and preprocessing trial 219 from 2reading and preprocessing trial 221 from 2reading and preprocessing trial 223 from 2reading and preprocessing trial 225 from 2reading and preprocessing trial 227 from 2reading and preprocessing trial 229 from 2reading and preprocessing trial 230 from 2reading and preprocessing trial 231 from 231
the call to "ft_preprocessing" took 23 seconds
[7]:
%% Define trials and segment the data: Attend Left Target Left
previewTrigger = data_MEG_LEFT.trial{1}(226, :);
threshold = (max(previewTrigger) + min(previewTrigger)) / 2;
cfg = [];
cfg.dataset = ATTEND_LEFT_CON;
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 = 226;
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';
TRIALS_AL_TL = ft_definetrial(cfg);
SG_AL_TL = ft_preprocessing(TRIALS_AL_TL);
evaluating trial function 'ft_trialfun_general'
reading the header from 'C:\Users\hz3752\Box\MEG\Data\attention-task\sub-01\attention_attend_left_01.con'
reading the events from 'C:\Users\hz3752\Box\MEG\Data\attention-task\sub-01\attention_attend_left_01.con'
found 232 events
created 232 trials
the call to "ft_definetrial" took 13 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 2reading and preprocessing trial 5 from 2reading and preprocessing trial 7 from 2reading and preprocessing trial 9 from 2reading and preprocessing trial 11 from 23reading and preprocessing trial 13 from 23reading and preprocessing trial 14 from 23reading and preprocessing trial 16 from 23reading and preprocessing trial 18 from 23reading and preprocessing trial 19 from 23reading and preprocessing trial 21 from 23reading and preprocessing trial 23 from 23reading and preprocessing trial 25 from 23reading and preprocessing trial 27 from 23reading and preprocessing trial 28 from 23reading and preprocessing trial 29 from 23reading and preprocessing trial 31 from 23reading and preprocessing trial 33 from 23reading and preprocessing trial 35 from 23reading and preprocessing trial 36 from 23reading and preprocessing trial 37 from 23reading and preprocessing trial 39 from 23reading and preprocessing trial 40 from 23reading and preprocessing trial 42 from 23reading and preprocessing trial 44 from 23reading and preprocessing trial 46 from 23reading and preprocessing trial 48 from 23reading and preprocessing trial 50 from 23reading and preprocessing trial 52 from 23reading and preprocessing trial 54 from 23reading and preprocessing trial 56 from 23reading and preprocessing trial 58 from 23reading and preprocessing trial 60 from 23reading and preprocessing trial 62 from 23reading and preprocessing trial 64 from 23reading and preprocessing trial 66 from 23reading and preprocessing trial 68 from 23reading and preprocessing trial 70 from 23reading and preprocessing trial 72 from 23reading and preprocessing trial 74 from 23reading and preprocessing trial 76 from 23reading and preprocessing trial 78 from 23reading and preprocessing trial 80 from 23reading and preprocessing trial 82 from 23reading and preprocessing trial 84 from 23reading and preprocessing trial 86 from 23reading and preprocessing trial 88 from 23reading and preprocessing trial 90 from 23reading and preprocessing trial 92 from 23reading and preprocessing trial 94 from 23reading and preprocessing trial 96 from 23reading and preprocessing trial 98 from 23reading and preprocessing trial 100 from 2reading and preprocessing trial 102 from 2reading and preprocessing trial 104 from 2reading and preprocessing trial 106 from 2reading and preprocessing trial 108 from 2reading and preprocessing trial 110 from 2reading and preprocessing trial 112 from 2reading and preprocessing trial 114 from 2reading and preprocessing trial 115 from 2reading and preprocessing trial 117 from 2reading and preprocessing trial 118 from 2reading and preprocessing trial 119 from 2reading and preprocessing trial 121 from 2reading and preprocessing trial 123 from 2reading and preprocessing trial 125 from 2reading and preprocessing trial 127 from 2reading and preprocessing trial 129 from 2reading and preprocessing trial 131 from 2reading and preprocessing trial 132 from 2reading and preprocessing trial 134 from 2reading and preprocessing trial 136 from 2reading and preprocessing trial 138 from 2reading and preprocessing trial 140 from 2reading and preprocessing trial 141 from 2reading and preprocessing trial 142 from 2reading and preprocessing trial 144 from 2reading and preprocessing trial 145 from 2reading and preprocessing trial 147 from 2reading and preprocessing trial 148 from 2reading and preprocessing trial 149 from 2reading and preprocessing trial 150 from 2reading and preprocessing trial 152 from 2reading and preprocessing trial 153 from 2reading and preprocessing trial 154 from 2reading and preprocessing trial 155 from 2reading and preprocessing trial 156 from 2reading and preprocessing trial 157 from 2reading and preprocessing trial 158 from 2reading and preprocessing trial 159 from 2reading and preprocessing trial 160 from 2reading and preprocessing trial 161 from 2reading and preprocessing trial 163 from 2reading and preprocessing trial 164 from 2reading and preprocessing trial 165 from 2reading and preprocessing trial 166 from 2reading and preprocessing trial 167 from 2reading and preprocessing trial 168 from 2reading and preprocessing trial 169 from 2reading and preprocessing trial 170 from 2reading and preprocessing trial 171 from 2reading and preprocessing trial 172 from 2reading and preprocessing trial 173 from 2reading and preprocessing trial 174 from 2reading and preprocessing trial 175 from 2reading and preprocessing trial 176 from 2reading and preprocessing trial 177 from 2reading and preprocessing trial 178 from 2reading and preprocessing trial 179 from 2reading and preprocessing trial 180 from 2reading and preprocessing trial 181 from 2reading and preprocessing trial 182 from 2reading and preprocessing trial 183 from 2reading and preprocessing trial 184 from 2reading and preprocessing trial 185 from 2reading and preprocessing trial 186 from 2reading and preprocessing trial 187 from 2reading and preprocessing trial 188 from 2reading and preprocessing trial 189 from 2reading and preprocessing trial 190 from 2reading and preprocessing trial 191 from 2reading and preprocessing trial 192 from 2reading and preprocessing trial 193 from 2reading and preprocessing trial 194 from 2reading and preprocessing trial 195 from 2reading and preprocessing trial 196 from 2reading and preprocessing trial 197 from 2reading and preprocessing trial 198 from 2reading and preprocessing trial 199 from 2reading and preprocessing trial 200 from 2reading and preprocessing trial 201 from 2reading and preprocessing trial 202 from 2reading and preprocessing trial 203 from 2reading and preprocessing trial 204 from 2reading and preprocessing trial 205 from 2reading and preprocessing trial 206 from 2reading and preprocessing trial 207 from 2reading and preprocessing trial 208 from 2reading and preprocessing trial 210 from 2reading and preprocessing trial 211 from 2reading and preprocessing trial 212 from 2reading and preprocessing trial 213 from 2reading and preprocessing trial 214 from 2reading and preprocessing trial 215 from 2reading and preprocessing trial 217 from 2reading and preprocessing trial 218 from 2reading and preprocessing trial 219 from 2reading and preprocessing trial 220 from 2reading and preprocessing trial 221 from 2reading and preprocessing trial 222 from 2reading and preprocessing trial 223 from 2reading and preprocessing trial 225 from 2reading and preprocessing trial 226 from 2reading and preprocessing trial 227 from 2reading and preprocessing trial 228 from 2reading and preprocessing trial 229 from 2reading and preprocessing trial 230 from 2reading and preprocessing trial 232 from 232
the call to "ft_preprocessing" took 31 seconds
Same for the Attend Right block.
[8]:
%% Define trials and segment the data: Attend Right Target Right
previewTrigger = data_MEG_RIGHT.trial{1}(227, :);
threshold = (max(previewTrigger) + min(previewTrigger)) / 2;
cfg = [];
cfg.dataset = ATTEND_RIGHT_CON;
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 = 227;
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';
TRIALS_AR_TR = ft_definetrial(cfg);
SG_AR_TR = ft_preprocessing(TRIALS_AR_TR);
evaluating trial function 'ft_trialfun_general'
reading the header from 'C:\Users\hz3752\Box\MEG\Data\attention-task\sub-01\attention_attend_right_01.con'
reading the events from 'C:\Users\hz3752\Box\MEG\Data\attention-task\sub-01\attention_attend_right_01.con'
found 231 events
created 231 trials
the call to "ft_definetrial" took 42 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 2reading and preprocessing trial 5 from 2reading and preprocessing trial 6 from 2reading and preprocessing trial 7 from 2reading and preprocessing trial 9 from 2reading and preprocessing trial 10 from 23reading and preprocessing trial 12 from 23reading and preprocessing trial 13 from 23reading and preprocessing trial 14 from 23reading and preprocessing trial 16 from 23reading and preprocessing trial 18 from 23reading and preprocessing trial 20 from 23reading and preprocessing trial 22 from 23reading and preprocessing trial 24 from 23reading and preprocessing trial 26 from 23reading and preprocessing trial 28 from 23reading and preprocessing trial 30 from 23reading and preprocessing trial 32 from 23reading and preprocessing trial 34 from 23reading and preprocessing trial 36 from 23reading and preprocessing trial 38 from 23reading and preprocessing trial 40 from 23reading and preprocessing trial 41 from 23reading and preprocessing trial 42 from 23reading and preprocessing trial 43 from 23reading and preprocessing trial 44 from 23reading and preprocessing trial 45 from 23reading and preprocessing trial 46 from 23reading and preprocessing trial 48 from 23reading and preprocessing trial 49 from 23reading and preprocessing trial 50 from 23reading and preprocessing trial 51 from 23reading and preprocessing trial 52 from 23reading and preprocessing trial 53 from 23reading and preprocessing trial 54 from 23reading and preprocessing trial 55 from 23reading and preprocessing trial 56 from 23reading and preprocessing trial 57 from 23reading and preprocessing trial 58 from 23reading and preprocessing trial 60 from 23reading and preprocessing trial 61 from 23reading and preprocessing trial 62 from 23reading and preprocessing trial 63 from 23reading and preprocessing trial 64 from 23reading and preprocessing trial 65 from 23reading and preprocessing trial 66 from 23reading and preprocessing trial 67 from 23reading and preprocessing trial 68 from 23reading and preprocessing trial 69 from 23reading and preprocessing trial 70 from 23reading and preprocessing trial 71 from 23reading and preprocessing trial 73 from 23reading and preprocessing trial 75 from 23reading and preprocessing trial 77 from 23reading and preprocessing trial 78 from 23reading and preprocessing trial 79 from 23reading and preprocessing trial 81 from 23reading and preprocessing trial 82 from 23reading and preprocessing trial 84 from 23reading and preprocessing trial 85 from 23reading and preprocessing trial 87 from 23reading and preprocessing trial 89 from 23reading and preprocessing trial 91 from 23reading and preprocessing trial 92 from 23reading and preprocessing trial 94 from 23reading and preprocessing trial 96 from 23reading and preprocessing trial 97 from 23reading and preprocessing trial 98 from 23reading and preprocessing trial 99 from 23reading and preprocessing trial 100 from 2reading and preprocessing trial 101 from 2reading and preprocessing trial 102 from 2reading and preprocessing trial 103 from 2reading and preprocessing trial 104 from 2reading and preprocessing trial 105 from 2reading and preprocessing trial 106 from 2reading and preprocessing trial 107 from 2reading and preprocessing trial 108 from 2reading and preprocessing trial 109 from 2reading and preprocessing trial 110 from 2reading and preprocessing trial 111 from 2reading and preprocessing trial 112 from 2reading and preprocessing trial 113 from 2reading and preprocessing trial 114 from 2reading and preprocessing trial 115 from 2reading and preprocessing trial 116 from 2reading and preprocessing trial 117 from 2reading and preprocessing trial 118 from 2reading and preprocessing trial 119 from 2reading and preprocessing trial 121 from 2reading and preprocessing trial 122 from 2reading and preprocessing trial 123 from 2reading and preprocessing trial 124 from 2reading and preprocessing trial 125 from 2reading and preprocessing trial 126 from 2reading and preprocessing trial 127 from 2reading and preprocessing trial 128 from 2reading and preprocessing trial 129 from 2reading and preprocessing trial 130 from 2reading and preprocessing trial 132 from 2reading and preprocessing trial 133 from 2reading and preprocessing trial 134 from 2reading and preprocessing trial 135 from 2reading and preprocessing trial 136 from 2reading and preprocessing trial 137 from 2reading and preprocessing trial 138 from 2reading and preprocessing trial 139 from 2reading and preprocessing trial 141 from 2reading and preprocessing trial 142 from 2reading and preprocessing trial 144 from 2reading and preprocessing trial 145 from 2reading and preprocessing trial 146 from 2reading and preprocessing trial 147 from 2reading and preprocessing trial 148 from 2reading and preprocessing trial 149 from 2reading and preprocessing trial 151 from 2reading and preprocessing trial 152 from 2reading and preprocessing trial 153 from 2reading and preprocessing trial 154 from 2reading and preprocessing trial 155 from 2reading and preprocessing trial 156 from 2reading and preprocessing trial 157 from 2reading and preprocessing trial 158 from 2reading and preprocessing trial 159 from 2reading and preprocessing trial 160 from 2reading and preprocessing trial 161 from 2reading and preprocessing trial 162 from 2reading and preprocessing trial 163 from 2reading and preprocessing trial 164 from 2reading and preprocessing trial 165 from 2reading and preprocessing trial 166 from 2reading and preprocessing trial 167 from 2reading and preprocessing trial 168 from 2reading and preprocessing trial 169 from 2reading and preprocessing trial 170 from 2reading and preprocessing trial 171 from 2reading and preprocessing trial 172 from 2reading and preprocessing trial 173 from 2reading and preprocessing trial 174 from 2reading and preprocessing trial 175 from 2reading and preprocessing trial 176 from 2reading and preprocessing trial 177 from 2reading and preprocessing trial 178 from 2reading and preprocessing trial 180 from 2reading and preprocessing trial 181 from 2reading and preprocessing trial 182 from 2reading and preprocessing trial 184 from 2reading and preprocessing trial 185 from 2reading and preprocessing trial 186 from 2reading and preprocessing trial 187 from 2reading and preprocessing trial 188 from 2reading and preprocessing trial 189 from 2reading and preprocessing trial 190 from 2reading and preprocessing trial 191 from 2reading and preprocessing trial 192 from 2reading and preprocessing trial 194 from 2reading and preprocessing trial 196 from 2reading and preprocessing trial 198 from 2reading and preprocessing trial 199 from 2reading and preprocessing trial 200 from 2reading and preprocessing trial 201 from 2reading and preprocessing trial 202 from 2reading and preprocessing trial 204 from 2reading and preprocessing trial 206 from 2reading and preprocessing trial 208 from 2reading and preprocessing trial 209 from 2reading and preprocessing trial 210 from 2reading and preprocessing trial 212 from 2reading and preprocessing trial 214 from 2reading and preprocessing trial 215 from 2reading and preprocessing trial 216 from 2reading and preprocessing trial 218 from 2reading and preprocessing trial 219 from 2reading and preprocessing trial 220 from 2reading and preprocessing trial 221 from 2reading and preprocessing trial 223 from 2reading and preprocessing trial 224 from 2reading and preprocessing trial 225 from 2reading and preprocessing trial 226 from 2reading and preprocessing trial 227 from 2reading and preprocessing trial 229 from 2reading and preprocessing trial 230 from 2reading and preprocessing trial 231 from 231
the call to "ft_preprocessing" took 38 seconds
[9]:
%% Define trials and segment the data: Attend Right Target Left
previewTrigger = data_MEG_RIGHT.trial{1}(228, :);
threshold = (max(previewTrigger) + min(previewTrigger)) / 2;
cfg = [];
cfg.dataset = ATTEND_RIGHT_CON;
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 = 228;
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';
TRIALS_AR_TL = ft_definetrial(cfg);
SG_AR_TL = ft_preprocessing(TRIALS_AR_TL);
evaluating trial function 'ft_trialfun_general'
reading the header from 'C:\Users\hz3752\Box\MEG\Data\attention-task\sub-01\attention_attend_right_01.con'
reading the events from 'C:\Users\hz3752\Box\MEG\Data\attention-task\sub-01\attention_attend_right_01.con'
found 231 events
created 231 trials
the call to "ft_definetrial" took 41 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 2reading and preprocessing trial 3 from 2reading and preprocessing trial 4 from 2reading and preprocessing trial 5 from 2reading and preprocessing trial 6 from 2reading and preprocessing trial 7 from 2reading and preprocessing trial 8 from 2reading and preprocessing trial 9 from 2reading and preprocessing trial 10 from 23reading and preprocessing trial 11 from 23reading and preprocessing trial 12 from 23reading and preprocessing trial 13 from 23reading and preprocessing trial 14 from 23reading and preprocessing trial 15 from 23reading and preprocessing trial 16 from 23reading and preprocessing trial 17 from 23reading and preprocessing trial 19 from 23reading and preprocessing trial 21 from 23reading and preprocessing trial 23 from 23reading and preprocessing trial 24 from 23reading and preprocessing trial 25 from 23reading and preprocessing trial 26 from 23reading and preprocessing trial 28 from 23reading and preprocessing trial 30 from 23reading and preprocessing trial 32 from 23reading and preprocessing trial 33 from 23reading and preprocessing trial 34 from 23reading and preprocessing trial 35 from 23reading and preprocessing trial 37 from 23reading and preprocessing trial 38 from 23reading and preprocessing trial 39 from 23reading and preprocessing trial 41 from 23reading and preprocessing trial 43 from 23reading and preprocessing trial 44 from 23reading and preprocessing trial 46 from 23reading and preprocessing trial 48 from 23reading and preprocessing trial 49 from 23reading and preprocessing trial 50 from 23reading and preprocessing trial 52 from 23reading and preprocessing trial 54 from 23reading and preprocessing trial 56 from 23reading and preprocessing trial 57 from 23reading and preprocessing trial 59 from 23reading and preprocessing trial 60 from 23reading and preprocessing trial 61 from 23reading and preprocessing trial 62 from 23reading and preprocessing trial 63 from 23reading and preprocessing trial 64 from 23reading and preprocessing trial 65 from 23reading and preprocessing trial 67 from 23reading and preprocessing trial 69 from 23reading and preprocessing trial 71 from 23reading and preprocessing trial 73 from 23reading and preprocessing trial 75 from 23reading and preprocessing trial 77 from 23reading and preprocessing trial 79 from 23reading and preprocessing trial 81 from 23reading and preprocessing trial 82 from 23reading and preprocessing trial 84 from 23reading and preprocessing trial 85 from 23reading and preprocessing trial 87 from 23reading and preprocessing trial 88 from 23reading and preprocessing trial 89 from 23reading and preprocessing trial 90 from 23reading and preprocessing trial 92 from 23reading and preprocessing trial 94 from 23reading and preprocessing trial 95 from 23reading and preprocessing trial 97 from 23reading and preprocessing trial 98 from 23reading and preprocessing trial 100 from 2reading and preprocessing trial 102 from 2reading and preprocessing trial 104 from 2reading and preprocessing trial 105 from 2reading and preprocessing trial 106 from 2reading and preprocessing trial 108 from 2reading and preprocessing trial 109 from 2reading and preprocessing trial 110 from 2reading and preprocessing trial 111 from 2reading and preprocessing trial 113 from 2reading and preprocessing trial 114 from 2reading and preprocessing trial 116 from 2reading and preprocessing trial 118 from 2reading and preprocessing trial 120 from 2reading and preprocessing trial 122 from 2reading and preprocessing trial 124 from 2reading and preprocessing trial 126 from 2reading and preprocessing trial 128 from 2reading and preprocessing trial 130 from 2reading and preprocessing trial 132 from 2reading and preprocessing trial 134 from 2reading and preprocessing trial 136 from 2reading and preprocessing trial 138 from 2reading and preprocessing trial 140 from 2reading and preprocessing trial 142 from 2reading and preprocessing trial 144 from 2reading and preprocessing trial 146 from 2reading and preprocessing trial 148 from 2reading and preprocessing trial 150 from 2reading and preprocessing trial 152 from 2reading and preprocessing trial 154 from 2reading and preprocessing trial 156 from 2reading and preprocessing trial 158 from 2reading and preprocessing trial 159 from 2reading and preprocessing trial 160 from 2reading and preprocessing trial 161 from 2reading and preprocessing trial 163 from 2reading and preprocessing trial 164 from 2reading and preprocessing trial 165 from 2reading and preprocessing trial 166 from 2reading and preprocessing trial 167 from 2reading and preprocessing trial 168 from 2reading and preprocessing trial 169 from 2reading and preprocessing trial 170 from 2reading and preprocessing trial 171 from 2reading and preprocessing trial 172 from 2reading and preprocessing trial 173 from 2reading and preprocessing trial 174 from 2reading and preprocessing trial 175 from 2reading and preprocessing trial 176 from 2reading and preprocessing trial 177 from 2reading and preprocessing trial 178 from 2reading and preprocessing trial 179 from 2reading and preprocessing trial 180 from 2reading and preprocessing trial 181 from 2reading and preprocessing trial 183 from 2reading and preprocessing trial 185 from 2reading and preprocessing trial 186 from 2reading and preprocessing trial 188 from 2reading and preprocessing trial 190 from 2reading and preprocessing trial 192 from 2reading and preprocessing trial 194 from 2reading and preprocessing trial 196 from 2reading and preprocessing trial 198 from 2reading and preprocessing trial 200 from 2reading and preprocessing trial 201 from 2reading and preprocessing trial 203 from 2reading and preprocessing trial 205 from 2reading and preprocessing trial 207 from 2reading and preprocessing trial 209 from 2reading and preprocessing trial 211 from 2reading and preprocessing trial 213 from 2reading and preprocessing trial 214 from 2reading and preprocessing trial 215 from 2reading and preprocessing trial 217 from 2reading and preprocessing trial 219 from 2reading and preprocessing trial 220 from 2reading and preprocessing trial 222 from 2reading and preprocessing trial 224 from 2reading and preprocessing trial 226 from 2reading and preprocessing trial 227 from 2reading and preprocessing trial 228 from 2reading and preprocessing trial 229 from 2reading and preprocessing trial 230 from 2reading and preprocessing trial 231 from 231
the call to "ft_preprocessing" took 27 seconds
We can now visually inspect the trials and eliminate ones considered bad using several metrics offered by Fieldtrip.
[10]:
%% Visual Inspection ALTL
cfg = [];
cfg.method='summary';
cfg.channel = {'AG*'};
dataALTL_rej = ft_rejectvisual(cfg, SG_AL_TL);
%% Visual Inspection ALTR
cfg = [];
cfg.method='summary';
cfg.channel = {'AG*'};
dataALTR_rej = ft_rejectvisual(cfg, SG_AL_TR);
%% Visual Inspection ARTR
cfg = [];
cfg.method='summary';
cfg.channel = {'AG*'};
dataARTR_rej = ft_rejectvisual(cfg, SG_AR_TR);
%% Visual Inspection ARTL
cfg = [];
cfg.method='summary';
cfg.channel = {'AG*'};
dataARTL_rej = ft_rejectvisual(cfg, SG_AR_TL);
the input is raw data with 256 channels and 232 trials
before GUI interaction: 232 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 [--------------------------------- computing var [---------------------------------------------\ computing var [---------------------------------------------------------| computing var [-----------------------------------------------------------/]
after GUI interaction: 225 trials marked to INCLUDE, 7 trials marked to EXCLUDE
after GUI interaction: 206 channels marked to INCLUDE, 50 channels marked to EXCLUDE
the following channels were removed: RM092, AG094, 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: 21, 22, 23, 36, 43, 100, 108
the call to "ft_selectdata" took 0 seconds
the call to "ft_rejectvisual" took 28 seconds
the input is raw data with 256 channels and 231 trials
before GUI interaction: 231 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 [------------------------------------------- computing var [---------------------------------------------------------\ computing var [-----------------------------------------------------------|]
after GUI interaction: 227 trials marked to INCLUDE, 4 trials marked to EXCLUDE
after GUI interaction: 204 channels marked to INCLUDE, 52 channels marked to EXCLUDE
the following channels were removed: AG078, AG087, RM092, AG094, 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: 98, 99, 100, 109
the call to "ft_selectdata" took 0 seconds
the call to "ft_rejectvisual" took 21 seconds
the input is raw data with 256 channels and 231 trials
before GUI interaction: 231 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 [------------------------------------------------ computing var [-----------------------------------------------------------\]
after GUI interaction: 228 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, AG094, 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: 185, 202, 203
the call to "ft_selectdata" took 0 seconds
the call to "ft_rejectvisual" took 12 seconds
the input is raw data with 256 channels and 231 trials
before GUI interaction: 231 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 [----------------------------------------------- computing var [-----------------------------------------------------------\]
after GUI interaction: 229 trials marked to INCLUDE, 2 trials marked to EXCLUDE
after GUI interaction: 206 channels marked to INCLUDE, 50 channels marked to EXCLUDE
the following channels were removed: RM092, AG094, 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: 173, 174
the call to "ft_selectdata" took 0 seconds
the call to "ft_rejectvisual" took 12 seconds
Averaging the trials of same types over repetition times.
[12]:
%% Averaging trials together
cfg = [];
avgALTL = ft_timelockanalysis(cfg, dataALTL_rej);
avgALTR = ft_timelockanalysis(cfg, dataALTR_rej);
avgARTR = ft_timelockanalysis(cfg, dataARTR_rej);
avgARTL = ft_timelockanalysis(cfg, dataARTL_rej);
the input is raw data with 206 channels and 225 trials
the call to "ft_selectdata" took 0 seconds
the call to "ft_timelockanalysis" took 5 seconds
the input is raw data with 204 channels and 227 trials
the call to "ft_selectdata" took 0 seconds
the call to "ft_timelockanalysis" took 2 seconds
the input is raw data with 206 channels and 228 trials
the call to "ft_selectdata" took 0 seconds
the call to "ft_timelockanalysis" took 2 seconds
the input is raw data with 206 channels and 229 trials
the call to "ft_selectdata" took 0 seconds
the call to "ft_timelockanalysis" took 2 seconds
To visualise the data from a hand-picked sensor, we will use a custom-made function that creates the sensor layout of the KIT system at NYUAD.
[15]:
%% Prepare KIT layout
kit_layout = create_kit_layout(ATTEND_LEFT_CON);
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 0 seconds
reading layout from file CTF151_helmet.mat
reading 'layout' from file 'CTF151_helmet.mat'
the call to "ft_prepare_layout" took 0 seconds
[15]:
[16]:
%% 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
cfg = [];
cfg.xlim = [0.05 1.2];
cfg.colorbar = 'yes';
cfg.layout = kit_layout;
ft_topoplotER(cfg, avgALTL);
cfg = [];
cfg.xlim = [0.05 1.2];
cfg.colorbar = 'yes';
cfg.layout = kit_layout;
ft_topoplotER(cfg, avgARTL);
the call to "ft_prepare_layout" took 0 seconds
[16]:
the call to "ft_selectdata" took 0 seconds
the call to "ft_topoplotER" took 3 seconds
the call to "ft_prepare_layout" took 0 seconds
[16]:
the call to "ft_selectdata" took 0 seconds
the call to "ft_topoplotER" took 2 seconds
[ ]:
Plotting ERP in sensor space for ALTL and ARTL for the `AG147` sensor (right head side), reexecute this cell for the `AG183` sensor (left head side).
[26]:
function plotERPComparisonMultipleSensors(sensor_names, condition1, condition2, condition1_name, condition2_name)
% Function to plot ERP comparison for multiple sensors
% Inputs:
% - sensor_names: a cell array of sensor names (e.g., {'AG183', 'AG147'})
% - condition1: structure containing the ERP data for the first condition (e.g., avgALTL)
% - condition2: structure containing the ERP data for the second condition (e.g., avgARTL)
% - condition1_name: name of the first condition (e.g., 'ALTL')
% - condition2_name: name of the second condition (e.g., 'ARTL')
for i = 1:length(sensor_names)
sensor_name = sensor_names{i};
% Find the index of the sensor in the layout
sensor_idx = find(strcmp(condition1.label, sensor_name));
if isempty(sensor_idx)
warning(['Sensor ' sensor_name ' not found in the data. Skipping...']);
continue;
end
% Extract time and data for the sensor from both conditions
time = condition1.time; % Assuming both conditions have the same time vector
data_condition1 = condition1.avg(sensor_idx, :);
data_condition2 = condition2.avg(sensor_idx, :);
% Plot both conditions for the same sensor
figure;
plot(time, data_condition1, 'g', 'LineWidth', 2); % Plot condition1 in green
hold on;
plot(time, data_condition2, 'r', 'LineWidth', 2); % Plot condition2 in red
% Add labels and legend
xlabel('Time (s)');
ylabel('Amplitude');
legend(condition1_name, condition2_name);
title(['Comparison of Conditions for Sensor: ' sensor_name]);
% Add grid for better visualization
grid on;
end
end
sensor_names = {'AG147', 'AG183'}; % List of sensors
plotERPComparisonMultipleSensors(sensor_names, avgALTL, avgARTL, 'ALTL', 'ARTL');
sensor_names = {'AG147', 'AG183'}; % List of sensors
plotERPComparisonMultipleSensors(sensor_names, avgALTR, avgARTR, 'ALTR', 'ARTR');
[26]:
[26]:
[26]:
[26]:
[ ]:
Let us do the same for the ARTR and ALTR and plot the ERP’s.
[23]:
function plotAlphaPowerForTwoConditions(sensor_names, condition1, condition2, condition1_name, condition2_name)
% Function to plot alpha power (8-14 Hz) for multiple sensors across two conditions
% Inputs:
% - sensor_names: a cell array of sensor names (e.g., {'AG183', 'AG147'})
% - condition1: structure containing the data for the first condition (e.g., avgALTL)
% - condition2: structure containing the data for the second condition (e.g., avgARTL)
% - condition1_name: name of the first condition (e.g., 'ALTL')
% - condition2_name: name of the second condition (e.g., 'ARTL')
for i = 1:length(sensor_names)
sensor_name = sensor_names{i};
% Find the index of the sensor in the layout
sensor_idx = find(strcmp(condition1.label, sensor_name));
if isempty(sensor_idx)
warning(['Sensor ' sensor_name ' not found in the data. Skipping...']);
continue;
end
% Select data for that sensor for both conditions
cfg = [];
cfg.channel = {sensor_name}; % Use only the specific sensor
condition1_sensor = ft_selectdata(cfg, condition1);
condition2_sensor = ft_selectdata(cfg, condition2);
% Perform time-frequency analysis for condition1
cfg = [];
cfg.method = 'mtmconvol'; % Time-frequency analysis using multitapers
cfg.foi = 8:0.1:14; % Frequencies of interest (alpha band 8-14 Hz)
cfg.t_ftimwin = 3 ./ cfg.foi; % Time window length
cfg.tapsmofrq = 2.5; % Smoothing in frequency domain
cfg.toi = 'all'; % Time of interest (use all time points)
cfg.output = 'pow'; % Output power spectrum
% Perform time-frequency analysis for both conditions
freq_condition1_sensor = ft_freqanalysis(cfg, condition1_sensor);
freq_condition2_sensor = ft_freqanalysis(cfg, condition2_sensor);
% Extract the alpha band power (8-14 Hz) and ignore NaN values
alpha_band_idx = find(freq_condition1_sensor.freq >= 8 & freq_condition1_sensor.freq <= 14);
if isempty(alpha_band_idx)
error('Alpha band (8-14 Hz) not found in the frequency range.');
end
% Calculate the mean alpha power over time for both conditions, ignoring NaNs
alpha_power_condition1 = nanmean(freq_condition1_sensor.powspctrm(1, alpha_band_idx, :), 2);
alpha_power_condition1 = squeeze(alpha_power_condition1); % Convert to 1D
alpha_power_condition2 = nanmean(freq_condition2_sensor.powspctrm(1, alpha_band_idx, :), 2);
alpha_power_condition2 = squeeze(alpha_power_condition2); % Convert to 1D
% Plot both conditions' alpha power on the same plot
figure;
plot(freq_condition1_sensor.time, alpha_power_condition1, 'g', 'LineWidth', 2); % Condition1 in green
hold on;
plot(freq_condition2_sensor.time, alpha_power_condition2, 'r', 'LineWidth', 2); % Condition2 in red
% Add labels, legend, and title
xlabel('Time (s)');
ylabel('Alpha Power (8-14 Hz)');
legend(condition1_name, condition2_name);
title(['Alpha Power Over Time for Sensor: ' sensor_name]);
% Add grid for better visualization
grid on;
end
end
sensor_names = {'AG147', 'AG183'}; % List of sensor names
plotAlphaPowerForTwoConditions(sensor_names, avgALTL, avgARTL, 'ALTL', 'ARTL');
sensor_names = {'AG147', 'AG183'}; % List of sensor names
plotAlphaPowerForTwoConditions(sensor_names, avgARTR, avgALTR, 'ARTR', 'ALTR');
the call to "ft_selectdata" took 0 seconds
the call to "ft_selectdata" took 0 seconds
the input is timelock data with 1 channels and 1700 timebins
Warning: sampleinfo in the configuration is inconsistent with the actual dataWarning: reconstructing sampleinfo by assuming that the trials are consecutive segments of a continuous recording
constructing single trial from "avg"
the call to "ft_selectdata" took 0 seconds
Default cfg.pad='maxperlen' can run slowly. Consider using cfg.pad='nextpow2' for more efficient FFT computation.
processing trials
Warning: output frequencies are different from input frequencies, multiples of the same bin were requested but not given
trial 1, frequency 11 (14.12 Hz), 1 tapers
the call to "ft_freqanalysis" took 1 seconds
the input is timelock data with 1 channels and 1700 timebins
Warning: sampleinfo in the configuration is inconsistent with the actual dataWarning: reconstructing sampleinfo by assuming that the trials are consecutive segments of a continuous recording
constructing single trial from "avg"
the call to "ft_selectdata" took 0 seconds
Default cfg.pad='maxperlen' can run slowly. Consider using cfg.pad='nextpow2' for more efficient FFT computation.
processing trials
Warning: output frequencies are different from input frequencies, multiples of the same bin were requested but not given
trial 1, frequency 11 (14.12 Hz), 1 tapers
the call to "ft_freqanalysis" took 1 seconds
[23]:
the call to "ft_selectdata" took 0 seconds
the call to "ft_selectdata" took 0 seconds
the input is timelock data with 1 channels and 1700 timebins
Warning: sampleinfo in the configuration is inconsistent with the actual dataWarning: reconstructing sampleinfo by assuming that the trials are consecutive segments of a continuous recording
constructing single trial from "avg"
the call to "ft_selectdata" took 0 seconds
Default cfg.pad='maxperlen' can run slowly. Consider using cfg.pad='nextpow2' for more efficient FFT computation.
processing trials
Warning: output frequencies are different from input frequencies, multiples of the same bin were requested but not given
trial 1, frequency 11 (14.12 Hz), 1 tapers
the call to "ft_freqanalysis" took 1 seconds
the input is timelock data with 1 channels and 1700 timebins
Warning: sampleinfo in the configuration is inconsistent with the actual dataWarning: reconstructing sampleinfo by assuming that the trials are consecutive segments of a continuous recording
constructing single trial from "avg"
the call to "ft_selectdata" took 0 seconds
Default cfg.pad='maxperlen' can run slowly. Consider using cfg.pad='nextpow2' for more efficient FFT computation.
processing trials
Warning: output frequencies are different from input frequencies, multiples of the same bin were requested but not given
trial 1, frequency 11 (14.12 Hz), 1 tapers
the call to "ft_freqanalysis" took 1 seconds
[23]:
the call to "ft_selectdata" took 0 seconds
the call to "ft_selectdata" took 0 seconds
the input is timelock data with 1 channels and 1700 timebins
Warning: sampleinfo in the configuration is inconsistent with the actual dataWarning: reconstructing sampleinfo by assuming that the trials are consecutive segments of a continuous recording
constructing single trial from "avg"
the call to "ft_selectdata" took 0 seconds
Default cfg.pad='maxperlen' can run slowly. Consider using cfg.pad='nextpow2' for more efficient FFT computation.
processing trials
Warning: output frequencies are different from input frequencies, multiples of the same bin were requested but not given
trial 1, frequency 11 (14.12 Hz), 1 tapers
the call to "ft_freqanalysis" took 1 seconds
the input is timelock data with 1 channels and 1700 timebins
Warning: sampleinfo in the configuration is inconsistent with the actual dataWarning: reconstructing sampleinfo by assuming that the trials are consecutive segments of a continuous recording
constructing single trial from "avg"
the call to "ft_selectdata" took 0 seconds
Default cfg.pad='maxperlen' can run slowly. Consider using cfg.pad='nextpow2' for more efficient FFT computation.
processing trials
Warning: output frequencies are different from input frequencies, multiples of the same bin were requested but not given
trial 1, frequency 11 (14.12 Hz), 1 tapers
the call to "ft_freqanalysis" took 1 seconds
[23]:
the call to "ft_selectdata" took 0 seconds
the call to "ft_selectdata" took 0 seconds
the input is timelock data with 1 channels and 1700 timebins
Warning: sampleinfo in the configuration is inconsistent with the actual dataWarning: reconstructing sampleinfo by assuming that the trials are consecutive segments of a continuous recording
constructing single trial from "avg"
the call to "ft_selectdata" took 0 seconds
Default cfg.pad='maxperlen' can run slowly. Consider using cfg.pad='nextpow2' for more efficient FFT computation.
processing trials
Warning: output frequencies are different from input frequencies, multiples of the same bin were requested but not given
trial 1, frequency 11 (14.12 Hz), 1 tapers
the call to "ft_freqanalysis" took 1 seconds
the input is timelock data with 1 channels and 1700 timebins
Warning: sampleinfo in the configuration is inconsistent with the actual dataWarning: reconstructing sampleinfo by assuming that the trials are consecutive segments of a continuous recording
constructing single trial from "avg"
the call to "ft_selectdata" took 0 seconds
Default cfg.pad='maxperlen' can run slowly. Consider using cfg.pad='nextpow2' for more efficient FFT computation.
processing trials
Warning: output frequencies are different from input frequencies, multiples of the same bin were requested but not given
trial 1, frequency 11 (14.12 Hz), 1 tapers
the call to "ft_freqanalysis" took 1 seconds
[23]: