<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Archiving and Interchange DTD v2.3 20070202//EN" "archivearticle.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="methods-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Neurosci.</journal-id>
<journal-title>Frontiers in Neuroscience</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Neurosci.</abbrev-journal-title>
<issn pub-type="epub">1662-453X</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fnins.2018.00261</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Neuroscience</subject>
<subj-group>
<subject>Protocols</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Group Analysis in FieldTrip of Time-Frequency Responses: A Pipeline for Reproducibility at Every Step of Processing, Going From Individual Sensor Space Representations to an Across-Group Source Space Representation</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name><surname>Andersen</surname> <given-names>Lau M.</given-names></name>
<xref ref-type="corresp" rid="c001"><sup>&#x0002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/111818/overview"/>
</contrib>
</contrib-group>
<aff><institution>NatMEG, Department of Clinical Neuroscience, Karolinska Institutet</institution>, <addr-line>Stockholm</addr-line>, <country>Sweden</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Srikantan S Nagarajan, University of California, San Francisco, United States</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Julia Stephen, Mind Research Network (MRN), United States; Stefania Della Penna, Universit&#x000E0; degli Studi G. d&#x00027;Annunzio Chieti e Pescara, Italy</p></fn>
<corresp id="c001">&#x0002A;Correspondence: Lau M. Andersen <email>lau.moller.andersen&#x00040;ki.se</email></corresp>
<fn fn-type="other" id="fn001"><p>This article was submitted to Brain Imaging Methods, a section of the journal Frontiers in Neuroscience</p></fn></author-notes>
<pub-date pub-type="epub">
<day>01</day>
<month>05</month>
<year>2018</year>
</pub-date>
<pub-date pub-type="collection">
<year>2018</year>
</pub-date>
<volume>12</volume>
<elocation-id>261</elocation-id>
<history>
<date date-type="received">
<day>28</day>
<month>09</month>
<year>2017</year>
</date>
<date date-type="accepted">
<day>04</day>
<month>04</month>
<year>2018</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x000A9; 2018 Andersen.</copyright-statement>
<copyright-year>2018</copyright-year>
<copyright-holder>Andersen</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license>
</permissions>
<abstract><p>An important aim of an analysis pipeline for magnetoencephalographic (MEG) data is that it allows for the researcher spending maximal effort on making the statistical comparisons that will answer his or her questions. The example question being answered here is whether the so-called beta rebound differs between novel and repeated stimulations. Two analyses are presented: going from individual sensor space representations to, respectively, an across-group sensor space representation and an across-group source space representation. The data analyzed are neural responses to tactile stimulations of the right index finger in a group of 20 healthy participants acquired from an Elekta Neuromag System. The processing steps covered for the first analysis are MaxFiltering the raw data, defining, preprocessing and epoching the data, cleaning the data, finding and removing independent components related to eye blinks, eye movements and heart beats, calculating participants&#x00027; individual evoked responses by averaging over epoched data and subsequently removing the average response from single epochs, calculating a time-frequency representation and baselining it with non-stimulation trials and finally calculating a grand average, an across-group sensor space representation. The second analysis starts from the grand average sensor space representation and after identification of the beta rebound the neural origin is imaged using beamformer source reconstruction. This analysis covers reading in co-registered magnetic resonance images, segmenting the data, creating a volume conductor, creating a forward model, cutting out MEG data of interest in the time and frequency domains, getting Fourier transforms and estimating source activity with a beamformer model where power is expressed relative to MEG data measured during periods of non-stimulation. Finally, morphing the source estimates onto a common template and performing group-level statistics on the data are covered. Functions for saving relevant figures in an automated and structured manner are also included. The protocol presented here can be applied to any research protocol where the emphasis is on source reconstruction of induced responses where the underlying sources are not coherent.</p></abstract>
<kwd-group>
<kwd>MEG</kwd>
<kwd>analysis pipeline</kwd>
<kwd>fieldtrip</kwd>
<kwd>beamformer</kwd>
<kwd>tactile expectations</kwd>
<kwd>group analysis</kwd>
<kwd>good practice</kwd>
</kwd-group>
<contract-num rid="cn001">KAW2014.0102</contract-num>
<contract-num rid="cn001">KAW2011.0207</contract-num>
<contract-sponsor id="cn001">Knut och Alice Wallenbergs Stiftelse<named-content content-type="fundref-id">10.13039/501100004063</named-content></contract-sponsor>
<counts>
<fig-count count="15"/>
<table-count count="11"/>
<equation-count count="0"/>
<ref-count count="31"/>
<page-count count="26"/>
<word-count count="11396"/>
</counts>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<title>Introduction</title>
<p>Magnetoencephalography (MEG) studies often include questions about how different experimental factors relate to brain activity. To test experimental factors, one can create contrasting conditions to single out the unique contributions of each experimental factor. Single subject studies using MEG would face two limitations in singling out the contributions of experimental factors. Firstly, the MEG signals of interest are mostly too weak to find due to the noise always present in MEG data, and secondly there is an interest in making an inference from one&#x00027;s data to the population as a whole. Group level analyses can circumvent these limitations by increasing the signal-to-noise ratio and by allowing for an inference to the population as a whole. It should be mentioned though that single subject analyses can be meaningful for clinicians trying to diagnose patients. Epilepsy investigations are routinely carried out on single subjects. Despite the fact that most studies rely on group level comparisons to increase the signal-to-noise ratio and for allowing for inferences to the population, almost all tutorials are based on single subject analyses. In the current paper, part of a special issue devoted to group analysis pipelines, I try to remedy this for anyone fancying using the FieldTrip (Oostenveld et al., <xref ref-type="bibr" rid="B24">2011</xref>) analysis package. The data is structured according to the Magnetoencephalography Brain Imaging Data structure (MEG-BIDS) format to ease access to the data (Galan et al., <xref ref-type="bibr" rid="B5">2017</xref>) and it is only dependent on having access to MATLAB (MathWorks: <ext-link ext-link-type="uri" xlink:href="http://mathworks.com">mathworks.com</ext-link>).</p>
<p>The basic idea of the current group pipeline is to set up a structure that allows for:
<list list-type="bullet">
<list-item><p>Running group analysis at the channel and source levels</p></list-item>
<list-item><p>Dividing output files into folders belonging to the respective subjects and recordings</p></list-item>
<list-item><p>Applying an operation across a group of subjects</p></list-item>
<list-item><p>(Re)starting the analysis at any intermediate point by saving output for each intermediate point</p></list-item>
<list-item><p>Plotting the results in a way that allows for changing the figures in a principled, but flexible manner</p></list-item>
</list></p>
<p>A structure that allows for all four points will minimize the time that researchers have to spend on (1) double-checking that the right input goes into the right functions; (2) making sure that output and intermediate steps can be accessed meaningfully; (3) applying operations efficiently across groups of subjects; (4) re-processing data if changes to any intermediate step are desirable.</p>
<sec>
<title>The neuroscientific experiment</title>
<p>Since the focus is on how to conduct a group analysis, the neuroscientific questions answered with the pipeline are not novel. The focus is rather on the pipeline facilitating other experimenters&#x00027; research, so that they efficiently can answer their own novel and interesting questions. Specifically, the pipeline will be centered around reconstructing induced activity using a beamformer approach. Induced activity is activity that is not phase-locked to a given event, say the stimulation of the finger, but which is related to the event in terms of timing and frequency. For example, the presentation of a stimulus may consistently be followed by an increase of the power of, say, the 10 Hz part of the power spectrum. Because this increase is not phase-locked to the event it would averaged away in a classical evoked analysis, where time-courses are averaged together (Gr&#x000F6;chenig, <xref ref-type="bibr" rid="B7">2013</xref>). Using a beamforming approach the origin of the induced responses can be localized (Hillebrand and Barnes, <xref ref-type="bibr" rid="B12">2005</xref>; Hillebrand et al., <xref ref-type="bibr" rid="B14">2005</xref>). Similar approaches have been used successfully to localize induced responses in the visual domain (Muthukumaraswamy and Singh, <xref ref-type="bibr" rid="B23">2013</xref>), induced responses in the sensory-motor domain (Jurkiewicz et al., <xref ref-type="bibr" rid="B19">2006</xref>), induced responses in the auditory domain (Weisz et al., <xref ref-type="bibr" rid="B31">2014</xref>), induced responses related to attentional recruitment (Dalal et al., <xref ref-type="bibr" rid="B2">2009</xref>; Ishii et al., <xref ref-type="bibr" rid="B17">2014</xref>), induced responses related to face processing (Luo et al., <xref ref-type="bibr" rid="B20">2007</xref>), induced responses related to the so-called resting state network (Hillebrand et al., <xref ref-type="bibr" rid="B13">2012</xref>), induced responses related to working memory (van Dijk et al., <xref ref-type="bibr" rid="B28">2010</xref>), induced responses related to mismatch detection (Garrido et al., <xref ref-type="bibr" rid="B6">2015</xref>) and many more. Thus, the pipeline presented is based on a robust and well-tested procedure.</p>
<p>The reserved digital object identifier for the data repository, where data for this experiment and scripts for the pipeline can be freely downloaded is: doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5281/zenodo.998518">10.5281/zenodo.998518</ext-link>. The corresponding URL is: <ext-link ext-link-type="uri" xlink:href="https://zenodo.org/record/998518">https://zenodo.org/record/998518</ext-link>. The study that the data are taken from is not printed yet. The updated github code can be found at <ext-link ext-link-type="uri" xlink:href="https://github.com/ualsbombe/omission_frontiers">https://github.com/ualsbombe/omission_frontiers</ext-link>.</p>
</sec>
</sec>
<sec id="s2">
<title>Materials and equipment</title>
<sec>
<title>Subjects</title>
<p>Twenty participants volunteered to take part in the experiment (eight males, 12 females, Mean Age: 28.7 y; Minimum Age: 21; Maximum Age: 47). The experiment was approved by the local ethics committee, Regionala etikpr&#x000F6;vningsn&#x000E4;mnden i Stockholm. Both written and oral informed consent were obtained from all subjects.</p>
</sec>
<sec>
<title>Paradigm</title>
<p>The paradigm is based on building up tactile expectations by rhythmic tactile stimulations. These tactile expectations are every now and then violated by omitting otherwise expected stimuli (Figure <xref ref-type="fig" rid="F1">1</xref>). The inter-stimulus interval was 3,000 ms. Around every 25 trials, and always starting after an omission, periods of non-stimulation occurred that would last 15 s. The first 6 s worked as a wash-out period, and the remaining 9 s were cut into three epochs of non-stimulation. There are thus nine trigger values in the data responding to nine different kinds of events (Table <xref ref-type="table" rid="T1">1</xref>).</p>
<fig id="F1" position="float">
<label>Figure 1</label>
<caption><p>An example sequence of the experimental paradigm is shown. The annotations on the bottom show the coding used throughout for the different events of interest. Stimulations happened at a regular pace, every 3 s. When omissions occurred, there were thus 6 s between two consecutive stimulations.</p></caption>
<graphic xlink:href="fnins-12-00261-g0001.tif"/>
</fig>
<table-wrap position="float" id="T1">
<label>Table 1</label>
<caption><p>Mapping of trigger values and annotated events.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>Trigger value</bold></th>
<th valign="top" align="left"><bold>Annotation</bold></th>
<th valign="top" align="left"><bold>Notes</bold></th>
<th valign="top" align="left"><bold>Number of trials</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">1</td>
<td valign="top" align="left"><italic>Standard 1</italic></td>
<td valign="top" align="left">First stimulation</td>
<td valign="top" align="left">&#x0007E;200</td>
</tr>
<tr>
<td valign="top" align="left">2</td>
<td valign="top" align="left"><italic>Standard 2</italic></td>
<td valign="top" align="left">Second stimulation</td>
<td valign="top" align="left">&#x0007E;200</td>
</tr>
<tr>
<td valign="top" align="left">3</td>
<td valign="top" align="left"><italic>Standard 3</italic></td>
<td valign="top" align="left">Third stimulation</td>
<td valign="top" align="left">&#x0007E;200</td>
</tr>
<tr>
<td valign="top" align="left">4</td>
<td valign="top" align="left"><italic>Standard 4</italic></td>
<td valign="top" align="left">Fourth stimulation</td>
<td valign="top" align="left">&#x0007E;135</td>
</tr>
<tr>
<td valign="top" align="left">5</td>
<td valign="top" align="left"><italic>Standard 5</italic></td>
<td valign="top" align="left">Fifth stimulation</td>
<td valign="top" align="left">&#x0007E;66</td>
</tr>
<tr>
<td valign="top" align="left">13</td>
<td valign="top" align="left"><italic>Omission 4</italic></td>
<td valign="top" align="left">Omission following third stimulation</td>
<td valign="top" align="left">&#x0007E;66</td>
</tr>
<tr>
<td valign="top" align="left">14</td>
<td valign="top" align="left"><italic>Omission 5</italic></td>
<td valign="top" align="left">Omission following fourth stimulation</td>
<td valign="top" align="left">&#x0007E;66</td>
</tr>
<tr>
<td valign="top" align="left">15</td>
<td valign="top" align="left"><italic>Omission 6</italic></td>
<td valign="top" align="left">Omission following fifth stimulation</td>
<td valign="top" align="left">&#x0007E;66</td>
</tr>
<tr>
<td valign="top" align="left">21</td>
<td valign="top" align="left"><italic>Non-Stimulation</italic></td>
<td valign="top" align="left">Absence of stimulation outside the rhythmic stimulation sequences</td>
<td valign="top" align="left">&#x0007E;130</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>During the stimulation procedure, participants were watching an unrelated nature programme with sound being fed through sound tubes into the ears of participants at &#x0007E;65 dB, rendering the tactile stimulation completely inaudible. Participants were instructed to pay full attention to the movie and no attention to the stimulation of their finger. In this way, expectations should be mainly stimulus driven, and thus not cognitively driven or attention driven. Information about the labeling of triggers and numbers of trials can be seen in Table <xref ref-type="table" rid="T1">1</xref>.</p>
<p>An analysis of induced responses will be carried out. It is known from many experiments that tactile stimulations are followed by a desynchronization in the alpha and beta bands. The desynchronization is followed by the so-called beta rebound, a subsequent increased synchronization (Salmelin and Hari, <xref ref-type="bibr" rid="B25">1994</xref>; Salmelin et al., <xref ref-type="bibr" rid="B26">1995</xref>). Beamformer source reconstructions will be made based on the beta rebound. For both analyses in sensor and source space, a statistical comparison will be made between <italic>Standard 1</italic> and <italic>Standard 3</italic>. We will explore whether the beta rebound differs between novel (<italic>Standard</italic> 1) and repeated (<italic>Standard 3</italic>) stimulations. The specific parameters going into the analysis will become apparent in the analysis steps below.</p>
</sec>
<sec>
<title>Preparation of subjects</title>
<p>In preparation for the MEG-measurement each subject had their head shape digitized using a Polhemus Fastrak. Three fiducial points, the nasion and the left and right pre-auricular points, were digitized along with the positions of four head-position indicator coils (HPI-coils). Furthermore, about 200 extra points, digitizing the head shape of each subject, were acquired.</p>
</sec>
<sec>
<title>Acquisition of data</title>
<p>Data was sampled on an Elekta TRIUX system at a sampling frequency of 1,000 Hz and on-line low-pass and high-pass filtered at 330 and 0.1 Hz, respectively. The data were first MaxFiltered (&#x02013;v2.2) (Taulu and Simola, <xref ref-type="bibr" rid="B27">2006</xref>), movement corrected and line-band filtered (50 Hz). MaxFiltering was done with setting the coordinate frame to the head coordinates, setting the origin of the head to (0, 0, 40 mm), setting the order of the inside expansion to 8, setting the order of the outside expansion to 3, enabling automatic detection of bad channels and doing a temporal Signal Space Separation (tSSS) with a buffer length of 10 s and a correlation limit of 0.980. Calibration adjustment and cross-talk corrections were based on the most recent calibration adjustment and cross-talk correction performed by the certified Elekta engineers maintaining the system.</p>
</sec>
</sec>
<sec id="s3">
<title>Analysis</title>
<p>The analysis pipeline is built up around five scripts for analyzing the relevant MEG and MRI data and four scripts for plotting what comes out of the analysis steps (Table <xref ref-type="table" rid="T2">2</xref>). Run the script <italic>create_MEG_BIDS_data_structure.m</italic> to set up the folder structure that the remaining functions depend on.</p>
<table-wrap position="float" id="T2">
<label>Table 2</label>
<caption><p>The 10 scripts that cover all relevant steps of the analysis pipeline.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>Script name</bold></th>
<th valign="top" align="left"><bold>Purpose</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left"><italic>create_MEG_BIDS_data_structure.m</italic></td>
<td valign="top" align="left">Create all relevant directories where all data and all figures will be saved</td>
</tr>
<tr>
<td valign="top" align="left"><italic>sensor_space_analysis.m</italic></td>
<td valign="top" align="left">Go from raw MEG data to a time-frequency representation for each subject</td>
</tr>
<tr>
<td valign="top" align="left"><italic>mr_preprocessing.m</italic></td>
<td valign="top" align="left">Go from raw MRI data to a volume conductor and a forward model for each subject</td>
</tr>
<tr>
<td valign="top" align="left"><italic>source_space_analysis.m</italic></td>
<td valign="top" align="left">Extract fourier transforms and do beamformer source reconstructions for each subject</td>
</tr>
<tr>
<td valign="top" align="left"><italic>grand_averages.m</italic></td>
<td valign="top" align="left">Do grand averages across subjects for both the sensor and source spaces</td>
</tr>
<tr>
<td valign="top" align="left"><italic>statistics.m</italic></td>
<td valign="top" align="left">Do statistics on time-frequency representations and beamformer source reconstructions</td>
</tr>
<tr>
<td valign="top" align="left"><italic>plot_sensor_space.m</italic></td>
<td valign="top" align="left">Plot all steps in the sensor space analysis</td>
</tr>
<tr>
<td valign="top" align="left"><italic>plot_processed_mr.m</italic></td>
<td valign="top" align="left">Plot all steps in the MR processing</td>
</tr>
<tr>
<td valign="top" align="left"><italic>plot_source_space.m</italic></td>
<td valign="top" align="left">Plot all steps in the source space analysis</td>
</tr>
<tr>
<td valign="top" align="left"><italic>plot_grand_averages.m</italic></td>
<td valign="top" align="left">Plot grand averages in both the sensor and source spaces, with and without statistical masking</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Each analysis script begins with three sections: SET PATHS, ADD PATHS, and SUBJECTS AND DATES. In the SET PATHS section, <italic>home_dir</italic> should be set to the user&#x00027;s own home directory. ADD PATHS adds FieldTrip and the folders that contain the functions for the analysis scripts (in this example sensor space analysis, Code Snippet 1). SUBJECTS AND DATES contains all the subject names and the dates of their recordings (Code Snippet 1). These three sections are followed by sections that are used to apply the actual analysis to the data. See Figure <xref ref-type="fig" rid="F2">2</xref> for an overview of the pipeline for each subject. The boxes on the overview each have a function associated with them which can be accessed from the analysis scripts (Table <xref ref-type="table" rid="T2">2</xref>). The analyses have been run with FieldTrip-20170906 (<ext-link ext-link-type="uri" xlink:href="ftp://ftp.fieldtriptoolbox.org/pub/fieldtrip/">ftp://ftp.fieldtriptoolbox.org/pub/fieldtrip/</ext-link>).</p>
<fig id="F2" position="float">
<label>Figure 2</label>
<caption><p>Cookbook for performing a single subject analysis. Numbers point to the sections below.</p></caption>
<graphic xlink:href="fnins-12-00261-g0002.tif"/>
</fig>
<sec>
<title>Goal of analysis</title>
<p>The goal of the analysis is to compare beamformer reconstructed activity between novel and repeated stimulations for the beta rebound statistically. To meet this goal, the following are necessary: (1) induced responses from each subject&#x00027;s raw data are extracted (<italic>sensor_space_analysis.m</italic>, Table <xref ref-type="table" rid="T2">2</xref>); (2) Statistics are done on the induced responses for the purpose of identifying when and at what frequency the differences in the beta rebound are statistically significant between novel and repeated stimulations (<italic>statistics.m</italic>, Table <xref ref-type="table" rid="T2">2</xref>) (3) volume conductors and forward models are created based on the individuals MRIs (<italic>mr_preprocessing.m</italic>, Table <xref ref-type="table" rid="T2">2</xref>); (4) beamformer source reconstructions are made on the individual level (<italic>source_space_analysis.m</italic>, Table <xref ref-type="table" rid="T2">2</xref>); (5) statistics are made across the events based on the individual source reconstructions (<italic>statistics.m</italic>, Table <xref ref-type="table" rid="T2">2</xref>). Furthermore, scripts are supplied for plotting all steps and calculating grand averages (Table <xref ref-type="table" rid="T2">2</xref>). In these analyses, I will focus on the so-called beta rebound (&#x0007E;15&#x02013;21 Hz) that manifests as an increase in power from around 500 to 1,400 ms after a tactile stimulation (Gaetz and Cheyne, <xref ref-type="bibr" rid="B3">2006</xref>; Gaetz et al., <xref ref-type="bibr" rid="B4">2010</xref>; Cheyne, <xref ref-type="bibr" rid="B1">2013</xref>).</p>
<fig position="float">
<label>Code Snippet 1</label>
<caption><p>SET PATHS, ADD PATHS, and SUBJECTS AND DATES sections which are used to set up all analysis scripts.</p></caption>
<graphic xlink:href="fnins-12-00261-g0016.tif"/>
</fig>
</sec>
<sec>
<title>Understanding the pipeline</title>
<p>The function called <italic>loop_through_subjects.m</italic> (Code Snippet 2) is crucial. This is the function that all pipeline functions below are using. The function is somewhat complicated, but it is very important since it is the one that establishes and maintains the structure and naming of folders and files. The arguments that go into it (Table <xref ref-type="table" rid="T3">3</xref>) explicates the idea behind it.</p>
<table-wrap position="float" id="T3">
<label>Table 3</label>
<caption><p>Arguments for <italic>loop_through_subjects</italic>, which structures input and output of all operations done on single subjects.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>Argument</bold></th>
<th valign="top" align="left"><bold>Purpose</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left"><italic>subjects</italic></td>
<td valign="top" align="left">Subject IDs indicating the directory name of the subject</td>
</tr>
<tr>
<td valign="top" align="left"><italic>data_dir</italic></td>
<td valign="top" align="left">Whether data is MEG or MRI data</td>
</tr>
<tr>
<td valign="top" align="left"><italic>function_name</italic></td>
<td valign="top" align="left">The function that should be applied to all subjects</td>
</tr>
<tr>
<td valign="top" align="left"><italic>cfg</italic></td>
<td valign="top" align="left">Configuration structure, as known from FieldTrip</td>
</tr>
<tr>
<td valign="top" align="left"><italic>output</italic></td>
<td valign="top" align="left">A cell array of name(s) of the output file(s)</td>
</tr>
<tr>
<td valign="top" align="left"><italic>input</italic></td>
<td valign="top" align="left">A cell array of name(s) of the input file(s)</td>
</tr>
<tr>
<td valign="top" align="left"><italic>figures_dir</italic></td>
<td valign="top" align="left">Where figures should be stored (leave empty, [], if no figures are produced)</td>
</tr>
<tr>
<td valign="top" align="left"><italic>overwrite</italic></td>
<td valign="top" align="left">Whether existing output files should be overwritten</td>
</tr>
</tbody>
</table>
</table-wrap>
<fig position="float">
<label>Code Snippet 2</label>
<caption><p>The <italic>loop_through_subjects</italic> function. This function is used to specify input (names), output (names), the function that take the input, the configuration that should be fed to the function. This is applied to all subject recordings in <italic>subjects_and_dates</italic>. Configurations (<italic>cfg</italic>) to FieldTrip functions can be used to easily change how the function is applied.</p></caption>
<graphic xlink:href="fnins-12-00261-g0017.tif"/>
</fig>
<p>There is a similar function for doing operations across all subjects at once called <italic>apply_across_subjects.m</italic> (Table <xref ref-type="table" rid="T4">4</xref>, Code Snippet not shown here). <italic>loop_through_subjects.m</italic> loops through all subjects, applies a function to all of them with a configuration structure, specifies input and output files and controls whether earlier output should be overwritten. All single subject figures shown below are created from subject <italic>sub-01</italic>. <italic>apply_across_subjects.m</italic> is intended for operations that need to load data from all subjects before the operation can be performed, e.g., grand averages or operations that are applied to grand averages, dependent on the <italic>running_on_grand_average</italic> argument (Table <xref ref-type="table" rid="T4">4</xref>). In contrast, <italic>loop_through_subjects</italic> consecutively loops through each subject independently. The application of each of the sub-functions comes with an estimated time for how long it takes to apply, including loading and saving, based on running it on a computer with the following specifications: Memory 126 GiB and 32 processors running at 2.60 GHz.</p>
<table-wrap position="float" id="T4">
<label>Table 4</label>
<caption><p>Arguments for <italic>apply_across_subjects</italic>, which structures input and output of all operations done across subject.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>Argument</bold></th>
<th valign="top" align="left"><bold>Purpose</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left"><italic>subjects</italic></td>
<td valign="top" align="left">Subjects IDs indicating the directory name of the subject</td>
</tr>
<tr>
<td valign="top" align="left"><italic>data_dir</italic></td>
<td valign="top" align="left">Whether data is MEG or MRI data</td>
</tr>
<tr>
<td valign="top" align="left"><italic>function_name</italic></td>
<td valign="top" align="left">The function that should be applied to all subjects</td>
</tr>
<tr>
<td valign="top" align="left"><italic>cfg</italic></td>
<td valign="top" align="left">Configuration structure, as known from FieldTrip</td>
</tr>
<tr>
<td valign="top" align="left"><italic>output</italic></td>
<td valign="top" align="left">A cell array of name(s) of the output file(s)</td>
</tr>
<tr>
<td valign="top" align="left"><italic>input</italic></td>
<td valign="top" align="left">A cell array of name(s) of the input file(s)</td>
</tr>
<tr>
<td valign="top" align="left"><italic>figures_dir</italic></td>
<td valign="top" align="left">Where figures should be stored (leave empty, [], if no figures are produced)</td>
</tr>
<tr>
<td valign="top" align="left"><italic>overwrite</italic></td>
<td valign="top" align="left">Whether existing output files should be overwritten</td>
</tr>
<tr>
<td valign="top" align="left"><italic>running_on_grand_average</italic></td>
<td valign="top" align="left">Whether the operation should be run on a grand average or whether a grand average should be calculated</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
</sec>
<sec id="s4">
<title>Stepwise procedures</title>
<sec>
<title>Sensor space analysis</title>
<p>The sensor space analysis is dependent on the functions in the <italic>sensor_space_analysis_functions</italic> folder. These cover steps from reading in raw data to creating a time-frequency representation (Table <xref ref-type="table" rid="T5">5</xref>). All functions have a short documentation about what input they take.</p>
<table-wrap position="float" id="T5">
<label>Table 5</label>
<caption><p>Functions in the <italic>sensor_space_analysis_functions</italic> folder and a brief description of what their purposes are.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>File names</bold></th>
<th valign="top" align="left"><bold>Description</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left"><italic>trial_function.m</italic></td>
<td valign="top" align="left">Describing how trials should be defined (see below)</td>
</tr>
<tr>
<td valign="top" align="left"><italic>define_trials_and_preprocess_data.m</italic></td>
<td valign="top" align="left">Defining trials from raw data and subsequently preprocessing it</td>
</tr>
<tr>
<td valign="top" align="left"><italic>clean_data.m</italic></td>
<td valign="top" align="left">Exclude high-variance trials using a graphical routine</td>
</tr>
<tr>
<td valign="top" align="left"><italic>run_ica.m</italic></td>
<td valign="top" align="left">Decompose the data into independent components</td>
</tr>
<tr>
<td valign="top" align="left"><italic>ica_components.tsv</italic></td>
<td valign="top" align="left">Text file for entering components into that should be removed</td>
</tr>
<tr>
<td valign="top" align="left"><italic>remove_components.m</italic></td>
<td valign="top" align="left">Remove the components from the text file above</td>
</tr>
<tr>
<td valign="top" align="left"><italic>timelocked_analysis.m</italic></td>
<td valign="top" align="left">Finding the average for each of the trial types</td>
</tr>
<tr>
<td valign="top" align="left"><italic>untimelocked_analysis.m</italic></td>
<td valign="top" align="left">Removing the average from each trial</td>
</tr>
<tr>
<td valign="top" align="left"><italic>time_frequency_representation.m</italic></td>
<td valign="top" align="left">Calculate a time-frequency representation based on the average-cleaned data</td>
</tr>
<tr>
<td valign="top" align="left"><italic>combine_gradiometers.m</italic></td>
<td valign="top" align="left">Combine the planar gradiometers into planar gradient magnitudes in the time-frequency representation</td>
</tr>
<tr>
<td valign="top" align="left"><italic>baseline_tfr.m</italic></td>
<td valign="top" align="left">Demean the time-frequency representations by subtracting the mean power from the non-stimulation trials</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>Functions are put in the order that they are meant to be applied</italic>.</p>
</table-wrap-foot>
</table-wrap>
</sec>
<sec>
<title>Trial function</title>
<p>This is the function that is used to define trials from the raw data. This defines what parts of the raw data constitute trials and the event codes to be associated with them (Table <xref ref-type="table" rid="T1">1</xref>). In Figure <xref ref-type="fig" rid="F3">3</xref> the raw data browser can be seen.</p>
<fig id="F3" position="float">
<label>Figure 3</label>
<caption><p><bold>(Top)</bold> The raw data browser for the example subject. <bold>(Bottom)</bold> A zoom in on some sensors.</p></caption>
<graphic xlink:href="fnins-12-00261-g0003.tif"/>
</fig>
</sec>
<sec>
<title>Define trials and preprocess data (1)</title>
<p>Code Snippet 3 shows how the definition of trials from raw data and the preprocessing of data. It also serves as an example of how all analysis steps are carried out for all analysis steps. The second line shows which FieldTrip functions are used (here <italic>ft_definetrial, ft_preprocessing</italic>, etc.). This is always followed by four options that should be set: <italic>overwrite</italic> (should existing output files be overwritten?), <italic>input</italic> [name(s) of input file(s) (.mat format only)], <italic>output</italic> [name(s) of output file(s)] and <italic>function_name</italic> (name of the function that should be applied). Then a configuration (<italic>cfg</italic>) is built and the <italic>loop_through_subjects</italic> function is run to apply the settings to all subjects. The configuration fields <italic>preprocessing</italic> and <italic>trial_definition</italic> are fed directly to <italic>ft_preprocessing</italic> and <italic>ft_definetrial</italic>, respectively.</p>
<p>In the trial definition, the trigger channel, the time in seconds that should be included around the trigger (<italic>pretrigger</italic> and <italic>posttrigger</italic>) and the trial function are entered. In the preprocessing, we only include demeaning based on the duration of the trials. No low-pass filtering is necessary since we are going to do a time-frequency analysis. <italic>adjust_timeline</italic> is used to adjust the offset of the trigger due to a delay between the trigger and the actual stimulation. <italic>downsample_to</italic> is used to reduce sampling rate, and effectively the data size, but it also means that we can only consider frequencies at maximum 100 Hz (Nyquist frequency &#x0003D; half the sampling rate).</p>
<p>Applying the function <italic>define_trials_and_preprocess_data</italic> takes &#x0007E;5 min per subject.</p>
<fig position="float">
<label>Code Snippet 3</label>
<caption><p>Code for defining trials from raw data and preprocessing data.</p></caption>
<graphic xlink:href="fnins-12-00261-g0018.tif"/>
</fig>
</sec>
<sec>
<title>Clean data (2)</title>
<p>Clean data sequentially, first magnetometers (MEGMAG) and then gradiometers (MEGGRAD) with graphical aid (Code Snippet 4). High-variance trials should be removed. The indices for the removed trials is written to a tsv-file (tabulator separated values). An example plot of the cleaned epochs can be seen in Figure <xref ref-type="fig" rid="F4">4</xref>.</p>
<fig id="F4" position="float">
<label>Figure 4</label>
<caption><p><bold>(Top)</bold> The data browser showing the epoched data. A butterfly plot showing all the magnetometers. Here the first epoch is shown. <bold>(Bottom)</bold> The data browser showing all the magnetometers from one of the removed bad trials.</p></caption>
<graphic xlink:href="fnins-12-00261-g0004.tif"/>
</fig>
<p>How long that the function <italic>clean_data</italic> takes to apply is dependent on user input.</p>
<fig position="float">
<label>Code Snippet 4</label>
<caption><p>Code for cleaning the preprocessed data.</p></caption>
<graphic xlink:href="fnins-12-00261-g0019.tif"/>
</fig>
</sec>
<sec>
<title>Run independent component analysis (3)</title>
<p>Decompose data into 60 independent components (Code Snippet 5). In these components, it is often possible to identify components related to eye blinks, eye movements, and heart beats. The resultant components can be seen in Figure <xref ref-type="fig" rid="F5">5</xref>. The number of components chosen, 60, reduces the dimensionality of the data. After MaxFiltering data dimensionality is reduced from 306 dimensions, corresponding to the number of channels, to a range between 60 and 70 independent dimensions. Reducing the data to 60 independent components is thus not reducing the dimensionality much more than the application of MaxFiltering already did. A particular issue that may arise when using ICA is that some components, say the heart beat component, may not be identifiable in all subjects. This would mean that it would not be possible to process all subjects in the same manner. There may be several reasons for this, e.g., the heart beat signal is only very weakly represented in the MEG data, as may happen for subjects where the distance between the heart and the head is great, i.e., tall subjects, or it may simply be that the recording is too noisy to faithfully record the electrocardiogram. The problem of having differently processed subjects is greatest in between-group studies where having different signal-to-noise ratios between groups may bias results. In within-group studies, the problem is thus less severe, since the decreased signal-to-noise ratio will apply to all conditions the given subject participated in, if ICA is run on all conditions collapsed, as is the case here. Alternative strategies for eye blinks and eye movements is to manually or automatically reject trials that contain eye blinks or excessive eye movements. Following the suggestions for good practice by Gross et al. (<xref ref-type="bibr" rid="B8">2013</xref>) one should describe the ICA algorithm (runica: Code Snippet 5), the input data to the algorithm (the epoched data: Code Snippet 5), the number of components estimated (60: Code Snippet 5), the number of components removed (two components: Figure <xref ref-type="fig" rid="F5">5</xref>) and the criteria for removing them [the likeness to eye blink, eye movements, and heart beat templates (Hyv&#x000E4;rinen and Oja, <xref ref-type="bibr" rid="B15">2000</xref>; Ikeda and Toyama, <xref ref-type="bibr" rid="B16">2000</xref>; Jung et al., <xref ref-type="bibr" rid="B18">2000</xref>) and seeing activity in the time courses of the components corresponding to what is recorded with electrooculographic and electrocardiographic channels (can be plotted with <italic>plot_ica</italic> from <italic>plot_sensor_space.m</italic>)]. It should also be mentioned that one can use semi-automatic procedures as to whether components are likely to be related to eye blinks or heart beats (Andersen, this issue).</p>
<fig id="F5" position="float">
<label>Figure 5</label>
<caption><p>The components found from the independent component analysis.</p></caption>
<graphic xlink:href="fnins-12-00261-g0005.tif"/>
</fig>
<p>Applying the function <italic>run_ica</italic> takes &#x0007E;8 min per subject.</p>
<fig position="float">
<label>Code Snippet 5</label>
<caption><p>Code for decomposing the data into independent components.</p></caption>
<graphic xlink:href="fnins-12-00261-g0020.tif"/>
</fig>
</sec>
<sec>
<title>ICA components (3)</title>
<p>An example of how the components numbers should be entered into the file, <italic>ica_components.tsv</italic>, for each subject can be seen in Table <xref ref-type="table" rid="T6">6</xref>. These are also the components that were removed from the present data.</p>
<table-wrap position="float" id="T6">
<label>Table 6</label>
<caption><p>Components removed for eye blinks, eye movements and heart beats.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>Eye blinks</bold></th>
<th valign="top" align="left"><bold>Eye movements</bold></th>
<th valign="top" align="left"><bold>Heart beats</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">1</td>
<td valign="top" align="left">2</td>
<td valign="top" align="left">NaN</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>NaN means that a component was not identified</italic>.</p>
</table-wrap-foot>
</table-wrap>
</sec>
<sec>
<title>Remove components (3)</title>
<p>Remove the components entered into <italic>ica_components.tsv</italic> from the cleaned data (Code Snippet 6) to remove the orthogonal contributions from eye blinks, eye movements, and heart beats.</p>
<p>Applying the function <italic>remove_components</italic> takes &#x0007E;2 min per subject.</p>
<fig position="float">
<label>Code Snippet 6</label>
<caption><p>Code for removing the components entered into <italic>ica_components.tsv</italic> from the epoched data.</p></caption>
<graphic xlink:href="fnins-12-00261-g0021.tif"/>
</fig>
</sec>
<sec>
<title>Timelocked analysis (4)</title>
<p>Find the averages for each condition (Code Snippet 7). Example topographical plots can be seen in Figure <xref ref-type="fig" rid="F6">6</xref>.</p>
<fig id="F6" position="float">
<label>Figure 6</label>
<caption><p>Magnetometer topographical plots for averages from 50 to 70 ms, showing a dipolar pattern typical for activation of the somatosensory cortex. Scale is the same for all plots.</p></caption>
<graphic xlink:href="fnins-12-00261-g0006.tif"/>
</fig>
<p>Applying the function <italic>timelocked_analysis</italic> takes &#x0003C; &#x0007E;45 s per subject.</p>
<fig position="float">
<label>Code Snippet 7</label>
<caption><p>Code for averaging the epochs.</p></caption>
<graphic xlink:href="fnins-12-00261-g0022.tif"/>
</fig>
</sec>
<sec>
<title>Untimelocked analysis (5)</title>
<p>Remove the average response from each trial (Code Snippet 8). This is done to minimize how much the timelocked response is present in the subsequent time-frequency representations.</p>
<p>Applying the function <italic>untimelocked_analysis</italic> takes &#x0007E;1.5 min per subject.</p>
<fig position="float">
<label>Code Snippet 8</label>
<caption><p>Code for removing the averaged response from each epoch.</p></caption>
<graphic xlink:href="fnins-12-00261-g0023.tif"/>
</fig>
</sec>
<sec>
<title>Time-frequency representation (6)</title>
<p>Calculate the time-frequency representations for all of the conditions (Code Snippet 9). This estimates the power in each frequency for each time point based on a wavelet with width 7.</p>
<p>Applying the function <italic>time_frequency_representation</italic> takes &#x0007E;70 min per subject.</p>
<fig position="float">
<label>Code Snippet 9</label>
<caption><p>Code for calculating the time-frequency representation for each condition.</p></caption>
<graphic xlink:href="fnins-12-00261-g0024.tif"/>
</fig>
</sec>
<sec>
<title>Combine gradiometers (7)</title>
<p>Combine the gradients for each pair of gradiometers for all of the time-frequency representations (Code Snippet 10) into planar gradient magnitudes. The analysis will focus on gradiometers, since magnetometers are normally quite noisy for time-frequency representations.</p>
<p>Applying the function <italic>combine_gradiometers</italic> takes &#x0007E;2 min per subject.</p>
<fig position="float">
<label>Code Snippet 10</label>
<caption><p>Code for combining the gradiometer data in the time-frequency representation.</p></caption>
<graphic xlink:href="fnins-12-00261-g0025.tif"/>
</fig>
</sec>
<sec>
<title>Demean time-frequency representations (8)</title>
<p>Demean all time-frequency representations with the non-stimulation time-frequency representation (Code Snippet 11). Power relative to non-stimulation can be seen in Figure <xref ref-type="fig" rid="F7">7</xref>. Absolute power estimates are hard to interpret, and therefore demeaning by a common condition, non-stimulation, makes the time-frequency representations comparable and thus interpretable.</p>
<fig id="F7" position="float">
<label>Figure 7</label>
<caption><p>Power topographical plots for Standards and Omissions (baselined with Non-Stimulation) based on gradiometers averaged over 500 to 900 ms and 15 to 21 Hz (the beta rebound). Scale is the same for all plots.</p></caption>
<graphic xlink:href="fnins-12-00261-g0007.tif"/>
</fig>
<p>Applying the function <italic>baseline_tfr</italic> takes &#x0007E;1 min per subject.</p>
<fig position="float">
<label>Code Snippet 11</label>
<caption><p>Code for demeaning the time-frequency representation with the non-stimulation time-frequency representation.</p></caption>
<graphic xlink:href="fnins-12-00261-g0026.tif"/>
</fig>
</sec>
</sec>
<sec id="s5">
<title>Creating and saving figures</title>
<p>Figures can also be created and saved for each subject by using the <italic>loop_through_subjects</italic> function. As an example, code (Code Snippet 12) is supplied for plotting Figure <xref ref-type="fig" rid="F7">7</xref>. Scripts for plotting the plots in the manuscript, and several other plots, are all included in the files provided alongside this protocol paper, i.e., <italic>plot_sensor_space.m, plot_processed_mr, plot_source_space</italic>, and <italic>plot_grand_averages</italic>. The user can easily extend the number of plotting functions by modeling them based on the example below (Code Snippet 12). All plotting functions also require a field, <italic>save_figure</italic>, in the configuration (<italic>cfg</italic>). This is a Boolean indicating whether or not the figure should be saved.</p>
<fig position="float">
<label>Code Snippet 12</label>
<caption><p>Example code for creating plots of single sensors (not shown here) and topographies (Figure <xref ref-type="fig" rid="F7">7</xref>) for time-frequency representations. Creating and saving plots for each subject is also done with <italic>loop_through_subjects</italic>.</p></caption>
<graphic xlink:href="fnins-12-00261-g0027.tif"/>
</fig>
</sec>
<sec id="s6">
<title>Mr-preprocessing</title>
<p>The preprocessing of MR-data is dependent on the functions in the <italic>mr_preprocessing_functions</italic> folder. The names of these functions and a short description of their applications can be seen in Table <xref ref-type="table" rid="T7">7</xref>. These cover all steps from reading in the MR-data, through realigning and segmenting, and finally creating a head model (volume conductor) and a leadfield (forward model) for each subject. Due to reasons of anonymity, the downloadable data will not contain the raw MRI data, such that the first three functions cannot be applied to the downloadable data (Code Snippets 13&#x02013;16). The functions are included though, so that the user can apply to data of his own. The output of <italic>segment_mri.m</italic> is included in the downloadable data, so the analysis can be started from there.</p>
<table-wrap position="float" id="T7">
<label>Table 7</label>
<caption><p>Functions in the <italic>mr_preprocessing_functions</italic> folder and a brief description of what their purposes are.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>File names</bold></th>
<th valign="top" align="left"><bold>Description</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left"><italic>read_dicoms.m</italic></td>
<td valign="top" align="left">Read in an MRI based on the dicoms</td>
</tr>
<tr>
<td valign="top" align="left"><italic>realign_to_fiducials.m</italic></td>
<td valign="top" align="left">Realign the MRI to the fiducials</td>
</tr>
<tr>
<td valign="top" align="left"><italic>realign_to_digitization_points.m</italic></td>
<td valign="top" align="left">Realign the MRI to the head shape digitization points</td>
</tr>
<tr>
<td valign="top" align="left"><italic>segment_mri.m</italic></td>
<td valign="top" align="left">Segment the MRI into the brain, skull and scalp</td>
</tr>
<tr>
<td valign="top" align="left"><italic>make_brain_mesh.m</italic></td>
<td valign="top" align="left">Make a mesh based on the segmented brain</td>
</tr>
<tr>
<td valign="top" align="left"><italic>make_headmodel.m</italic></td>
<td valign="top" align="left">Make a head model (volume conductor) based on the mesh</td>
</tr>
<tr>
<td valign="top" align="left"><italic>make_warped_grid.m</italic></td>
<td valign="top" align="left">Make a subject-grid warped onto a template brain</td>
</tr>
<tr>
<td valign="top" align="left"><italic>make_warped_leadfield.m</italic></td>
<td valign="top" align="left">Make the lead field (forward solution) based on the warped grid</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>Functions are put in the order that they are meant to be applied</italic>.</p>
</table-wrap-foot>
</table-wrap>
<sec>
<title>Read dicoms (9)</title>
<p>Create an MRI MATLAB structure based on reading in the dicoms with <italic>ft_read_mri</italic> (Code Snippet 13).</p>
<fig position="float">
<label>Code Snippet 13</label>
<caption><p>Code for creating an MRI-structure based on reading in the dicoms.</p></caption>
<graphic xlink:href="fnins-12-00261-g0028.tif"/>
</fig>
</sec>
<sec>
<title>Realign to fiducials (10)</title>
<p>Align the MR-image to the fiducials (Code Snippet 14). This is done to make the first alignment to the head shape of the subject that was digitized with a Polhemus Fastrak. The fiducials that the MRI should be aligned to are the nasion and the left and right pre-auricular points, but these may differ depending on the acquisition device used.</p>
<fig position="float">
<label>Code Snippet 14</label>
<caption><p>Code for opening the interactive alignment tool for aligning MRI with fiducials.</p></caption>
<graphic xlink:href="fnins-12-00261-g0029.tif"/>
</fig>
</sec>
<sec>
<title>Realign to digitization points (11)</title>
<p>Align the fiducial-aligned MRI to of the head shape digitization points digitized with the Polhemus Fastrak (Code Snippet 15). This is done to further optimize the alignment between the head of the subject and the MR-image recorded. The code below relies on an interactive alignment procedure where the user can displace, rotate and scale the head such that they align with the digitization points. The recommended procedure is to make a rough alignment such that the nose from the head model and the outline of the nose digitized with the Polhemus Fastrak roughly align. Subsequently the iterative closest point procedure (<italic>cfg.headshape.ica</italic> Code Snippet 15) is used to minimize the distance between the head shape based on the MRI and the head shape based on the digitization points. This realignment should always be checked, which can for example be done by running <italic>ft_volumerealign</italic> again.</p>
<fig position="float">
<label>Code Snippet 15</label>
<caption><p>Code for opening the interactive alignment tool for further aligning the fiducial-aligned MRI with the extra head shape digitization points acquired with the Polhemus Fastrak.</p></caption>
<graphic xlink:href="fnins-12-00261-g0030.tif"/>
</fig>
</sec>
<sec>
<title>Segment the MRI (12)</title>
<p>Segment the MR-image into brain, skull and scalp using <italic>ft_volumesegment</italic> (Code Snippet 16). This is necessary since sources giving rise to MEG activity are assumed to only exist in the brain.</p>
<fig position="float">
<label>Code Snippet 16</label>
<caption><p>Code for segmenting the brain into the three tissue types: brain, skull and scalp.</p></caption>
<graphic xlink:href="fnins-12-00261-g0031.tif"/>
</fig>
</sec>
<sec>
<title>Make a brain mesh (13)</title>
<p>Make a brain mesh out of the segmented MRI with <italic>ft_prepare_mesh</italic> (Code Snippet 17). At this point a number of quality control figures can be made using <italic>plot_source_space.m</italic> (for an example, see Figure <xref ref-type="fig" rid="F8">8</xref>). The mesh is a triangulation of the brain based on 3,000 vertices.</p>
<fig id="F8" position="float">
<label>Figure 8</label>
<caption><p>Quality control figure showing the brain, the digitization points, the sensors and the axes. This figure indicates if the realignment process has gone well. More quality figure checks are included in the pipeline.</p></caption>
<graphic xlink:href="fnins-12-00261-g0008.tif"/>
</fig>
<p>Applying the function <italic>make_brain_mesh</italic> takes &#x0007E;5 s per subject.</p>
<fig position="float">
<label>Code Snippet 17</label>
<caption><p>Code for preparing a brain mesh out of the segmented MRI.</p></caption>
<graphic xlink:href="fnins-12-00261-g0032.tif"/>
</fig>
</sec>
<sec>
<title>Make a head model (14)</title>
<p>Make a head model (volume conductor) out of the prepared mesh with <italic>ft_prepare_headmodel</italic> (Code Snippet 18). A head model is a volume that specifies how the magnetic fields are conducted through the brain.</p>
<p>Applying the function <italic>make_headmodel</italic> takes &#x0007E;1 s per subject.</p>
<fig position="float">
<label>Code Snippet 18</label>
<caption><p>Code for making a head model (volume conductor) out of the prepared brain mesh.</p></caption>
<graphic xlink:href="fnins-12-00261-g0033.tif"/>
</fig>
</sec>
<sec>
<title>Make a subject-grid warped onto a template brain (15)</title>
<p>Make a grid where the subject&#x00027;s MRI is warped onto a template brain with <italic>ft_prepare_sourcemodel</italic> (Code Snippet 19). The points on this grid that are inside the brain are the modeled sources of the source model. The warping means that the source reconstructions based on these source models can be compared across subjects.</p>
<p>Applying the function <italic>make_warped_grid</italic> takes &#x0007E;1 min per subject.</p>
<fig position="float">
<label>Code Snippet 19</label>
<caption><p>Code for making a grid where the subject&#x00027;s MRI is warped onto a template brain.</p></caption>
<graphic xlink:href="fnins-12-00261-g0034.tif"/>
</fig>
</sec>
<sec>
<title>Make the lead field based on the warped grid (16)</title>
<p>Make the lead field based on the warped grid with <italic>ft_prepare_leadfield</italic> (Code Snippet 20). The brain mesh in the warped grid can be seen in Figure <xref ref-type="fig" rid="F9">9</xref>. The lead field models how the sensors will detect sources from any sources on the grid (inside the brain).</p>
<fig id="F9" position="float">
<label>Figure 9</label>
<caption><p>The head model (volume conductor) inside the grid that has been warped to a common template.</p></caption>
<graphic xlink:href="fnins-12-00261-g0009.tif"/>
</fig>
<p>Applying the function <italic>make_leadfield</italic> takes &#x0007E;3 min per subject.</p>
<fig position="float">
<label>Code Snippet 20</label>
<caption><p>Code for calculating the lead field (forward model) for all the sources of the warped grid that are contained by the brain.</p></caption>
<graphic xlink:href="fnins-12-00261-g0035.tif"/>
</fig>
</sec>
</sec>
<sec id="s7">
<title>Statistics&#x02014;sensor space</title>
<p>The strategy used here will be to do statistics in the sensor space (Table <xref ref-type="table" rid="T8">8</xref>) to find the time period in the beta rebound (&#x0007E;15&#x02013;21 Hz) where the differences between novel (<italic>Standard 1</italic>) and repeated <italic>(Standard 3</italic>) stimulations are the greatest. Subsequently, the beamformer will be done on this time-frequency range. This strategy is one that one should be careful with since it may result in double dipping if anything that is found to be significant is reconstructed. In this example we have mitigated the risk of double dipping, since we specified we would test the beta rebound giving an approximate time range (500&#x02013;1,400 ms) and frequency range (15&#x02013;21 Hz), but we did not specify the exact time range and the exact frequency we would reconstruct for the purposes of comparing novel and repeated stimulations. In an ideal hypothesis testing study, both the time range and the frequency range would have been specified exactly beforehand.</p>
<table-wrap position="float" id="T8">
<label>Table 8</label>
<caption><p>The function related to sensor space operations in the <italic>statistics_functions</italic> folder and a brief description of its purpose.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>File names</bold></th>
<th valign="top" align="left"><bold>Description</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left"><italic>statistics_tfr.m</italic></td>
<td valign="top" align="left">Do statistics on the time-frequency representations</td>
</tr>
</tbody>
</table>
</table-wrap>
<sec>
<title>Statistics, time-frequency representation</title>
<p>To assess which differences in power arise due to differences in signal and which to change, one can run statistical tests on it (Code Snippet 21). Here, a simple mass-univariate test is run without correction. In Figure <xref ref-type="fig" rid="F10">10</xref>, a sensor plot can be seen where the non-significant changes (<italic>t</italic>-values &#x0003C; &#x0007E;-2.09 or <italic>t</italic>-values &#x0003E; &#x0007E;2.09) have been masked.</p>
<fig id="F10" position="float">
<label>Figure 10</label>
<caption><p><bold>(Top)</bold> Grand average multiplot masking the non-significant parts. Color shows where there is more/less power for Standard 1 when compared to Standard 3. Red square indicates the sensor shown below. <bold>(Bottom)</bold> Difference in the beta rebound. This is chosen for the subsequent beamformer analysis.</p></caption>
<graphic xlink:href="fnins-12-00261-g0010.tif"/>
</fig>
<p>Applying the function <italic>statistics_tfrs</italic> takes &#x0007E;10 min.</p>
<fig position="float">
<label>Code Snippet 21</label>
<caption><p>Code for calculating the statistics for the time-frequency representations.</p></caption>
<graphic xlink:href="fnins-12-00261-g0036.tif"/>
</fig>
</sec>
</sec>
<sec id="s8">
<title>Source space analysis</title>
<p>The source space analysis is dependent on the functions in the <italic>source_space_analysis_functions</italic> folder (Table <xref ref-type="table" rid="T9">9</xref>). First, the untimelocked data are cropped to the time period showing the difference in the beta rebound. Secondly, Fourier transformation is done to estimate the power in the beta rebound frequency range. Finally, beamformer contrasts are estimated based on a contrast against source activity in the non-stimulation trials (Table <xref ref-type="table" rid="T1">1</xref>). Optionally, the individual beamformer contrasts can be interpolated onto a common template for visualization if wished for.</p>
<table-wrap position="float" id="T9">
<label>Table 9</label>
<caption><p>Functions in the <italic>sensor_space_analysis_functions</italic> folder and a brief description of what their purposes are.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>File names</bold></th>
<th valign="top" align="left"><bold>Description</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left"><italic>crop_data.m</italic></td>
<td valign="top" align="left">Crop data to the time window of interest</td>
</tr>
<tr>
<td valign="top" align="left"><italic>get_fourier_transforms.m</italic></td>
<td valign="top" align="left">Get the Fourier transforms of the frequency of interest</td>
</tr>
<tr>
<td valign="top" align="left"><italic>get_beamformer_contrasts.m</italic></td>
<td valign="top" align="left">Get the beamformer localizations for all of the conditions contrasted again the beamformer localization for the non-stimulation condition</td>
</tr>
<tr>
<td valign="top" align="left"><italic>interpolate_beamformer.m</italic></td>
<td valign="top" align="left">Interpolate the beamformer localizations onto a common template (only for visualization)</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>Functions are put in the order that they are meant to be applied</italic>.</p>
</table-wrap-foot>
</table-wrap>
<sec>
<title>Crop data (17)</title>
<p>Crop the data to the time window of interest (Figure <xref ref-type="fig" rid="F10">10</xref>; Code Snippet 22). The cropped data can be seen in Figure <xref ref-type="fig" rid="F11">11</xref>. It should be visible that there is no timelocked activity here.</p>
<fig id="F11" position="float">
<label>Figure 11</label>
<caption><p>The epochs in the beta rebound where they differ between novel and repeated stimulation (800&#x02013;1,200 ms). It can be seen that there is no clear timelocked activity.</p></caption>
<graphic xlink:href="fnins-12-00261-g0011.tif"/>
</fig>
<p>Applying the function <italic>crop_data</italic> takes &#x0007E;30 s per subject.</p>
<fig position="float">
<label>Code Snippet 22</label>
<caption><p>Code for cropping the epoched data into the time window of interest.</p></caption>
<graphic xlink:href="fnins-12-00261-g0037.tif"/>
</fig>
</sec>
<sec>
<title>Fourier transforms (18)</title>
<p>Next step is to make Fourier transforms of the cropped data, focussing on the 18 Hz response (the beta rebound; Code Snippet 23). Estimated power for individual trials can be seen in Figure <xref ref-type="fig" rid="F12">12</xref>. It can be seen that power in general is higher for stimulations than non-stimulations. Three different transforms are made: one for each of the experimental conditions (<italic>Standards</italic> and <italic>Omissions</italic>), one for the <italic>Non-Stimulations</italic> and one for each of the combinations of each of the experimental conditions and the <italic>Non-Stimulations</italic>. Thus, 13 Fourier transforms are run for each subject.</p>
<fig id="F12" position="float">
<label>Figure 12</label>
<caption><p>Fourier transforms. On the <italic>y</italic>-axis, power is illustrated, and the <italic>x</italic>-axis shows the trials. For the Standards (red), it can be seen that the power is greater than for Non-Stimulations (blue).</p></caption>
<graphic xlink:href="fnins-12-00261-g0012.tif"/>
</fig>
<p>Applying the function <italic>get_fourier_transforms</italic> takes &#x0007E;20 s per subject.</p>
<fig position="float">
<label>Code Snippet 23</label>
<caption><p>Code for calculating the fourier transforms.</p></caption>
<graphic xlink:href="fnins-12-00261-g0038.tif"/>
</fig>
</sec>
<sec>
<title>Beamforming (19)</title>
<p>The actual source reconstruction is done using the non-stimulation trials (Table <xref ref-type="table" rid="T1">1</xref>) as a contrast (Code Snippet 24). Beamforming measures the power at each single source point in the brain by applying a spatial filter to each source point to minimize the contribution from all other sources (Gross et al., <xref ref-type="bibr" rid="B9">2001</xref>). The beamforming function (Code Snippet 24) is running three separate beamformers for each experimental condition (<italic>Standards</italic> and <italic>Omissions</italic>). First step is to run a beamformer on the Fourier transform based on the combination between the given experimental condition and the <italic>Non-Stimulation</italic> trials. The spatial filter estimated from the beamforming of that combination is then used for the subsequent beamforming of, second step, the given experimental conditions and, third step, the <italic>Non-Stimulation</italic> trials. Using a common filter makes the two beamforming results comparable. Finally, the beamformer contrast, i.e., between the beamforming of the given experimental condition and the beamforming of the <italic>Non-Stimulation</italic> trials is returned. For a given experimental condition, this reflects where sources are localized to that have greater or lesser power than the <italic>Non-Stimulation</italic> trials do.</p>
<p>Applying the function <italic>get_beamformer_contrasts</italic> takes &#x0007E;1.5 h per subject if all events are reconstructed.</p>
<fig position="float">
<label>Code Snippet 24</label>
<caption><p>Code for calculating the beamformer solutions based on the Fourier transforms and contrasting them against the non-stimulation cross-spectral density.</p></caption>
<graphic xlink:href="fnins-12-00261-g0039.tif"/>
</fig>
</sec>
</sec>
<sec id="s9">
<title>Grand averages</title>
<p>The <italic>grand_averages</italic> script is dependent on the functions in the <italic>grand_averages_functions</italic> folder (Table <xref ref-type="table" rid="T10">10</xref>). Note that there is one further option variable, <italic>running_on_grand_average</italic>. This is fed to the new convenience function <italic>apply_across_subjects</italic>, which is very similar to <italic>loop_through_subjects</italic> in its structure, but, as the name implies, <italic>apply_across_subjects</italic>, work on all subjects at the same time. <italic>running_on_grand_average</italic> is simply a logical variable telling <italic>apply_across_subjects</italic> whether subject data for each individual subjects needs to be loaded for the function applied. The grand averages are mostly for visualization.</p>
<table-wrap position="float" id="T10">
<label>Table 10</label>
<caption><p>Functions in the <italic>grand_averages_functions</italic> folder and a brief description of what their purposes are.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>File Names</bold></th>
<th valign="top" align="left"><bold>Description</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left"><italic>calculate_grand_average_tfr.m</italic></td>
<td valign="top" align="left">Get the grand averages for the time-frequency representations</td>
</tr>
<tr>
<td valign="top" align="left"><italic>calculate_grand_average_beamformer.m</italic></td>
<td valign="top" align="left">Get the grand averages for the beamformer source reconstructions</td>
</tr>
<tr>
<td valign="top" align="left"><italic>interpolate_grand_average_beamformer.m</italic></td>
<td valign="top" align="left">Interpolate the grand for the beamformer source reconstructions onto a common template</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>Functions are put in the order that they are meant to be applied</italic>.</p>
</table-wrap-foot>
</table-wrap>
<sec>
<title>Grand averages, time-frequency representations</title>
<p>Grand averages can be calculated across all subjects (Code Snippet 25). The grand averages can be seen in Figure <xref ref-type="fig" rid="F13">13</xref>. One thing to keep in mind when doing MEG is that channels will align differently to the head across subject due to fixed positions of the sensor helmet and the different sizes and shapes of subjects&#x00027; heads. This is in contrast to electroencephalography (EEG), where the EEG-cap is in the same relative place on all subjects. This difference in alignment has the consequence that grand averages should be interpreted with some care. Still the beta rebound is nicely present on all stimulations (Figure <xref ref-type="fig" rid="F13">13</xref>).</p>
<fig id="F13" position="float">
<label>Figure 13</label>
<caption><p>Grand average power topographical plots for Standards and Omissions (baselined with Non-Stimulation) based on gradiometers averaged over 500 to 1,400 ms and 15 to 21 Hz (the beta rebound). Scale is the same for all plots.</p></caption>
<graphic xlink:href="fnins-12-00261-g0013.tif"/>
</fig>
<p>Applying the function <italic>calculate_grand_average_tfr</italic> takes &#x0007E;8 min.</p>
<fig position="float">
<label>Code Snippet 25</label>
<caption><p>Code for calculating the grand averages for time-frequency representations.</p></caption>
<graphic xlink:href="fnins-12-00261-g0040.tif"/>
</fig>
</sec>
<sec>
<title>Grand averages, beamformer</title>
<p>Grand averages can also be calculated across subjects since we used warped grids for the leadfield (Code Snippet 26). An example grand average can be seen in Figure <xref ref-type="fig" rid="F14">14</xref> (note that interpolation is done before plotting on the common surface).</p>
<fig id="F14" position="float">
<label>Figure 14</label>
<caption><p>Grand average beamformer contrast. Color shows where there is more/less power for Standard 3 when compared to Non-Stimulation. (0 means equal power, and 0.2 means 20% more power).</p></caption>
<graphic xlink:href="fnins-12-00261-g0014.tif"/>
</fig>
<p>Applying the function <italic>calculate_grand_average_beamformer</italic> takes &#x0007E;10 min.</p>
<fig position="float">
<label>Code Snippet 26</label>
<caption><p>Code for calculating the grand averages for the beamformer source reconstructions.</p></caption>
<graphic xlink:href="fnins-12-00261-g0041.tif"/>
</fig>
</sec>
<sec>
<title>Grand averages, beamformer interpolation</title>
<p>To plot statistically thresholded grand averages, it is necessary to interpolate the grand averaged data onto a common template (Code Snippet 27).</p>
<p>Applying the function <italic>interpolate_grand_average_beamformer</italic> takes &#x0007E;10 s.</p>
<fig position="float">
<label>Code Snippet 27</label>
<caption><p>Code for interpolating the beamformer source reconstructions onto a common template.</p></caption>
<graphic xlink:href="fnins-12-00261-g0042.tif"/>
</fig>
</sec>
</sec>
<sec id="s10">
<title>Statistics&#x02014;source space</title>
<p>The statistics script is dependent on the functions in the <italic>statistics_functions</italic> folder (Table <xref ref-type="table" rid="T11">11</xref>). Note that <italic>running_on_grand_average</italic> and <italic>apply_across subjects</italic> are also used here, as they are in the <italic>grand_averages</italic> script. Mass-univariate tests can be run on both time-frequency representations and on the beamformer source reconstructions. In the examples, no corrections are done for multiple comparisons. The code can be easily amended to do more advanced statistical testing, such as cluster analysis (Maris and Oostenveld, <xref ref-type="bibr" rid="B21">2007</xref>). See <italic>ft_freqstatistics</italic> and <italic>ft_sourcestatistics</italic> for instructions on how to perform these.</p>
<table-wrap position="float" id="T11">
<label>Table 11</label>
<caption><p>Functions related to source space operations in the <italic>statistics_functions</italic> folder and a brief description of what their purposes are.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>File Names</bold></th>
<th valign="top" align="left"><bold>Description</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left"><italic>statistics_beamformer.m</italic></td>
<td valign="top" align="left">Do statistics on the beamformer source reconstructions</td>
</tr>
<tr>
<td valign="top" align="left"><italic>interpolate_statistics_beamformer.m</italic></td>
<td valign="top" align="left">Interpolate the statistics from the beamformer source reconstructions onto a common template</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>Functions are put in the order that they are meant to be applied</italic>.</p>
</table-wrap-foot>
</table-wrap>
<sec>
<title>Statistics, beamformer</title>
<p>Statistical significance can be assessed for the source reconstructed activity (Code Snippet 28) in a manner similar to how it was done for the sensor space activity (Code Snippet 21).</p>
<p>Applying the function <italic>statistics_beamformer</italic> takes &#x0007E;9 min.</p>
<fig position="float">
<label>Code Snippet 28</label>
<caption><p>Code for calculating the statistics for the beamformer source reconstructions.</p></caption>
<graphic xlink:href="fnins-12-00261-g0043.tif"/>
</fig>
</sec>
<sec>
<title>Interpolate beamformer statistics</title>
<p>The statistical values can also be interpolated onto a common template (Code Snippet 29). In Figure <xref ref-type="fig" rid="F15">15</xref> a source plot can be seen where the non-significant changes have been masked. The differences in the beta rebound between novel and repeated stimulations was localized to the somatosensory cortex, the motor cortex, the supplementary motor area and the insula. These results fit well with findings in the literature (Cheyne, <xref ref-type="bibr" rid="B1">2013</xref>).</p>
<fig id="F15" position="float">
<label>Figure 15</label>
<caption><p>Grand average beamformer interpolated onto a common template and non-significant voxels assigned no color. Colors indicate difference between Standard 1 and Standard 3. The cross-hair is centered on the contralateral motor cortex. Ipsilateral activation is also seen in the motor cortex.</p></caption>
<graphic xlink:href="fnins-12-00261-g0015.tif"/>
</fig>
<p>Applying the function <italic>interpolate_statistics_beamformer</italic> takes &#x0007E;5 s.</p>
<fig position="float">
<label>Code Snippet 29</label>
<caption><p>Code for interpolating the beamformer statistics onto a common template.</p></caption>
<graphic xlink:href="fnins-12-00261-g0044.tif"/>
</fig>
</sec>
<sec>
<title>Summary of analysis</title>
<p>On the sensor level we found the differences in the beta rebound bilaterally (Figure <xref ref-type="fig" rid="F10">10</xref>) across the central sensors, but with maximal power contralaterally (Figures <xref ref-type="fig" rid="F15">15</xref>). In the source domain the differences in the beta rebound between novel and repeated stimulations was localized to the somatosensory cortex, the motor cortex, the supplementary motor area, and the insula. These results fit well with findings in the literature (Gaetz and Cheyne, <xref ref-type="bibr" rid="B3">2006</xref>; Gaetz et al., <xref ref-type="bibr" rid="B4">2010</xref>; Cheyne, <xref ref-type="bibr" rid="B1">2013</xref>).</p>
</sec>
</sec>
<sec sec-type="discussion" id="s11">
<title>Discussion</title>
<p>The presented pipeline allows for covering all steps involved in a FieldTrip pipeline focussing on induced responses and the localization of their neural origin. Furthermore, it also supplies a very flexible framework that users should be able to extend the to meet any further needs that the user may have. For the functions that rely on FieldTrip functions, a user can easily change and add parameters in the normal FieldTrip way by adding and changing fields in the configuration (<italic>cfg</italic>) structures. To change the frequency to be reconstructed, for example, one can change the <italic>foilim</italic> field when making the Fourier transform (Code Snippet 23). It is also easy to include further steps in the analysis such as calculating connectivity, doing other kinds of source reconstructions such as Minimum Norm Estimates (H&#x000E4;m&#x000E4;l&#x000E4;inen and Ilmoniemi, <xref ref-type="bibr" rid="B10">1994</xref>).</p>
<sec>
<title>Comparison with other type of pipelines</title>
<p>The presented pipeline is especially use for extracting and imaging neural activity that is not phase-locked to any presented stimulation. When phase-locked activity is of interest, such as the time-locked activity depicted in Figure <xref ref-type="fig" rid="F6">6</xref>, there are other strategies that may work better, such as dipole fitting (Maugui&#x000E8;re et al., <xref ref-type="bibr" rid="B22">1997</xref>; Hari and Puce, <xref ref-type="bibr" rid="B11">2017</xref>) or distributed source reconstructions such as the Minimum Norm Estimates (H&#x000E4;m&#x000E4;l&#x000E4;inen and Ilmoniemi, <xref ref-type="bibr" rid="B10">1994</xref>) mentioned above. These strategies work especially well for primary sensory responses that are often tightly phase-locked both within and across subjects. Also when there are distal coherent sources in the brain, beamformer might fail as discussed below.</p>
</sec>
</sec>
<sec>
<title>Possible pitfalls and limitations</title>
<p>A major assumption of beamformer approaches is that it is assumed that no two extended sources are correlated with one another on the extent of square millimeters (van Veen and Buckley, <xref ref-type="bibr" rid="B29">1988</xref>; Hillebrand and Barnes, <xref ref-type="bibr" rid="B12">2005</xref>). Linearly correlated sources cannot be imaged faithfully with beamforming approaches. (van Veen et al., <xref ref-type="bibr" rid="B30">1997</xref>) showed that for two highly correlated sources, a beamforming approach reconstructed a single source in between the two sources. Hillebrand and Barnes (<xref ref-type="bibr" rid="B12">2005</xref>) argue that beamforming approaches generally work well, however, because neuronal processes are generally locally coherent but globally incoherent. A good example, however, of when this assumption is not met is when auditory stimulation is presented binaurally. The neuronal activity in the two auditory cortices will be coherent because they are phase-locked to the presentation of the stimulus. The paradigm used in this protocol article is likely to meet the assumption of uncorrelated sources since stimulation is presented unilaterally.</p>
<p>What may also be problematic with sensor-space analyses of induced responses is that the calculation of the grand average of sensors (as seen in e.g., Figure <xref ref-type="fig" rid="F14">14</xref>) rests on the assumption that the sensors measure the same neural activity across subjects. This is not likely to be the case since head shapes vary considerably between subjects. A possible strategy is to transform the head position of each subject to a position shared between subjects such as is possible with the MaxFilter software from Elekta. Another strategy employed here, is to perform the key analyses related to corroborating one&#x00027;s hypothesis in source space thereby eliminating the problem of sensors not measuring the same neural activity across subjects. The problem is not completely eliminated by doing the key analyses in source space, though, since there is a multitude of different time- and frequency-ranges one could choose to source reconstruct with a beamformer approach. Performing all possible source reconstructions for a given data set would cause a massive multiple comparisons problem, therefore statistics on the sensor space data can be used to constrain the number of time- and frequency-ranges one runs one&#x00027;s source reconstructions on. Constraining the number of source reconstructions in this manner, however, makes it clear that the analysis of induced responses is still dependent on the assumption of the sensors measuring the same neural activity across subjects. As long as this assumption is partially met, one might still find robust and statistically significant responses, such as the beta rebound effect found here.</p>
</sec>
<sec id="s12">
<title>Author contributions</title>
<p>The author confirms being the sole contributor of this work and approved it for publication.</p>
<sec>
<title>Conflict of interest statement</title>
<p>The author declares that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p></sec>
</sec>
</body>
<back>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Cheyne</surname> <given-names>D. O.</given-names></name></person-group> (<year>2013</year>). <article-title>MEG studies of sensorimotor rhythms: a review</article-title>. <source>Exp. Neurol.</source> <volume>245</volume>, <fpage>27</fpage>&#x02013;<lpage>39</lpage>. <pub-id pub-id-type="doi">10.1016/j.expneurol.2012.08.030</pub-id><pub-id pub-id-type="pmid">22981841</pub-id></citation></ref>
<ref id="B2">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Dalal</surname> <given-names>S. S.</given-names></name> <name><surname>Baillet</surname> <given-names>S.</given-names></name> <name><surname>Adam</surname> <given-names>C.</given-names></name> <name><surname>Ducorps</surname> <given-names>A.</given-names></name> <name><surname>Schwartz</surname> <given-names>D.</given-names></name> <name><surname>Jerbi</surname> <given-names>K.</given-names></name> <etal/></person-group>. (<year>2009</year>). <article-title>Simultaneous MEG and intracranial EEG recordings during attentive reading</article-title>. <source>Neuroimage</source> <volume>45</volume>, <fpage>1289</fpage>&#x02013;<lpage>1304</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2009.01.017</pub-id><pub-id pub-id-type="pmid">19349241</pub-id></citation></ref>
<ref id="B3">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gaetz</surname> <given-names>W.</given-names></name> <name><surname>Cheyne</surname> <given-names>D.</given-names></name></person-group> (<year>2006</year>). <article-title>Localization of sensorimotor cortical rhythms induced by tactile stimulation using spatially filtered MEG</article-title>. <source>Neuroimage</source> <volume>30</volume>, <fpage>899</fpage>&#x02013;<lpage>908</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2005.10.009</pub-id><pub-id pub-id-type="pmid">16326116</pub-id></citation></ref>
<ref id="B4">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gaetz</surname> <given-names>W.</given-names></name> <name><surname>MacDonald</surname> <given-names>M.</given-names></name> <name><surname>Cheyne</surname> <given-names>D.</given-names></name> <name><surname>Snead</surname> <given-names>O. C.</given-names></name></person-group> (<year>2010</year>). <article-title>Neuromagnetic imaging of movement-related cortical oscillations in children and adults: age predicts post-movement beta rebound</article-title>. <source>Neuroimage</source> <volume>51</volume>, <fpage>792</fpage>&#x02013;<lpage>807</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2010.01.077</pub-id><pub-id pub-id-type="pmid">20116434</pub-id></citation></ref>
<ref id="B5">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Galan</surname> <given-names>J. G. N.</given-names></name> <name><surname>Gorgolewski</surname> <given-names>K. J.</given-names></name> <name><surname>Bock</surname> <given-names>E.</given-names></name> <name><surname>Brooks</surname> <given-names>T. L.</given-names></name> <name><surname>Flandin</surname> <given-names>G.</given-names></name> <name><surname>Gramfort</surname> <given-names>A.</given-names></name> <etal/></person-group>. (<year>2017</year>). <article-title>MEG-BIDS: an extension to the brain imaging data structure for magnetoencephalography</article-title>. <source>bioRxiv</source> 172684. <pub-id pub-id-type="doi">10.1101/172684</pub-id></citation></ref>
<ref id="B6">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Garrido</surname> <given-names>M. I.</given-names></name> <name><surname>Barnes</surname> <given-names>G. R.</given-names></name> <name><surname>Kumaran</surname> <given-names>D.</given-names></name> <name><surname>Maguire</surname> <given-names>E. A.</given-names></name> <name><surname>Dolan</surname> <given-names>R. J.</given-names></name></person-group> (<year>2015</year>). <article-title>Ventromedial prefrontal cortex drives hippocampal theta oscillations induced by mismatch computations</article-title>. <source>Neuroimage</source> <volume>120</volume>, <fpage>362</fpage>&#x02013;<lpage>370</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2015.07.016</pub-id><pub-id pub-id-type="pmid">26187453</pub-id></citation></ref>
<ref id="B7">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Gr&#x000F6;chenig</surname> <given-names>K.</given-names></name></person-group> (<year>2013</year>). <source>Foundations of Time-Frequency Analysis</source>. <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Springer Science &#x00026; Business Media</publisher-name>.</citation></ref>
<ref id="B8">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gross</surname> <given-names>J.</given-names></name> <name><surname>Baillet</surname> <given-names>S.</given-names></name> <name><surname>Barnes</surname> <given-names>G. R.</given-names></name> <name><surname>Henson</surname> <given-names>R. N.</given-names></name> <name><surname>Hillebrand</surname> <given-names>A.</given-names></name> <name><surname>Jensen</surname> <given-names>O.</given-names></name> <etal/></person-group>. (<year>2013</year>). <article-title>Good practice for conducting and reporting MEG research</article-title>. <source>Neuroimage</source> <volume>65</volume>, <fpage>349</fpage>&#x02013;<lpage>363</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2012.10.001</pub-id><pub-id pub-id-type="pmid">23046981</pub-id></citation></ref>
<ref id="B9">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gross</surname> <given-names>J.</given-names></name> <name><surname>Kujala</surname> <given-names>J.</given-names></name> <name><surname>H&#x000E4;m&#x000E4;l&#x000E4;inen</surname> <given-names>M.</given-names></name> <name><surname>Timmermann</surname> <given-names>L.</given-names></name> <name><surname>Schnitzler</surname> <given-names>A.</given-names></name> <name><surname>Salmelin</surname> <given-names>R.</given-names></name></person-group> (<year>2001</year>). <article-title>Dynamic imaging of coherent sources: studying neural interactions in the human brain</article-title>. <source>Proc. Natl. Acad. Sci. U.S.A.</source> <volume>98</volume>, <fpage>694</fpage>&#x02013;<lpage>699</lpage>. <pub-id pub-id-type="doi">10.1073/pnas.98.2.694</pub-id><pub-id pub-id-type="pmid">11209067</pub-id></citation></ref>
<ref id="B10">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>H&#x000E4;m&#x000E4;l&#x000E4;inen</surname> <given-names>M. S.</given-names></name> <name><surname>Ilmoniemi</surname> <given-names>R. J.</given-names></name></person-group> (<year>1994</year>). <article-title>Interpreting magnetic fields of the brain: minimum norm estimates</article-title>. <source>Med. Biol. Eng. Comput</source>. <volume>32</volume>, <fpage>35</fpage>&#x02013;<lpage>42</lpage>. <pub-id pub-id-type="doi">10.1007/BF02512476</pub-id><pub-id pub-id-type="pmid">8182960</pub-id></citation></ref>
<ref id="B11">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Hari</surname> <given-names>R.</given-names></name> <name><surname>Puce</surname> <given-names>A.</given-names></name></person-group> (<year>2017</year>). <source>MEG-EEG Primer.</source> <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Oxford University Press</publisher-name>.</citation></ref>
<ref id="B12">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hillebrand</surname> <given-names>A.</given-names></name> <name><surname>Barnes</surname> <given-names>G. R.</given-names></name></person-group> (<year>2005</year>). <article-title>Beamformer analysis of MEG data</article-title>. <source>Int. Rev. Neurobiol</source>. <volume>68</volume>, <fpage>149</fpage>&#x02013;<lpage>171</lpage>. <pub-id pub-id-type="doi">10.1016/S0074-7742(05)68006-3</pub-id><pub-id pub-id-type="pmid">16443013</pub-id></citation></ref>
<ref id="B13">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hillebrand</surname> <given-names>A.</given-names></name> <name><surname>Barnes</surname> <given-names>G. R.</given-names></name> <name><surname>Bosboom</surname> <given-names>J. L.</given-names></name> <name><surname>Berendse</surname> <given-names>H. W.</given-names></name> <name><surname>Stam</surname> <given-names>C. J.</given-names></name></person-group> (<year>2012</year>). <article-title>Frequency-dependent functional connectivity within resting-state networks: an atlas-based MEG beamformer solution</article-title>. <source>Neuroimage</source> <volume>59</volume>, <fpage>3909</fpage>&#x02013;<lpage>3921</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2011.11.005</pub-id><pub-id pub-id-type="pmid">22122866</pub-id></citation></ref>
<ref id="B14">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hillebrand</surname> <given-names>A.</given-names></name> <name><surname>Singh</surname> <given-names>K. D.</given-names></name> <name><surname>Holliday</surname> <given-names>I. E.</given-names></name> <name><surname>Furlong</surname> <given-names>P. L.</given-names></name> <name><surname>Barnes</surname> <given-names>G. R.</given-names></name></person-group> (<year>2005</year>). <article-title>A new approach to neuroimaging with magnetoencephalography</article-title>. <source>Hum. Brain Mapp</source>. <volume>25</volume>, <fpage>199</fpage>&#x02013;<lpage>211</lpage>. <pub-id pub-id-type="doi">10.1002/hbm.20102</pub-id><pub-id pub-id-type="pmid">15846771</pub-id></citation></ref>
<ref id="B15">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hyv&#x000E4;rinen</surname> <given-names>A.</given-names></name> <name><surname>Oja</surname> <given-names>E.</given-names></name></person-group> (<year>2000</year>). <article-title>Independent component analysis: algorithms and applications</article-title>. <source>Neural Netw</source>. <volume>13</volume>, <fpage>411</fpage>&#x02013;<lpage>430</lpage>. <pub-id pub-id-type="doi">10.1016/S0893-6080(00)00026-5</pub-id><pub-id pub-id-type="pmid">10946390</pub-id></citation></ref>
<ref id="B16">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ikeda</surname> <given-names>S.</given-names></name> <name><surname>Toyama</surname> <given-names>K.</given-names></name></person-group> (<year>2000</year>). <article-title>Independent component analysis for noisy data&#x02014;MEG data analysis</article-title>. <source>Neural Netw</source>. <volume>13</volume>, <fpage>1063</fpage>&#x02013;<lpage>1074</lpage>. <pub-id pub-id-type="doi">10.1016/S0893-6080(00)00071-X</pub-id><pub-id pub-id-type="pmid">11156188</pub-id></citation></ref>
<ref id="B17">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ishii</surname> <given-names>R.</given-names></name> <name><surname>Canuet</surname> <given-names>L.</given-names></name> <name><surname>Ishihara</surname> <given-names>T.</given-names></name> <name><surname>Aoki</surname> <given-names>Y.</given-names></name> <name><surname>Ikeda</surname> <given-names>S.</given-names></name> <name><surname>Hata</surname> <given-names>M.</given-names></name> <etal/></person-group>. (<year>2014</year>). <article-title>Frontal midline theta rhythm and gamma power changes during focused attention on mental calculation: an MEG beamformer analysis</article-title>. <source>Front. Hum. Neurosci.</source> <volume>8</volume>:<fpage>406</fpage>. <pub-id pub-id-type="doi">10.3389/fnhum.2014.00406</pub-id><pub-id pub-id-type="pmid">24966825</pub-id></citation></ref>
<ref id="B18">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Jung</surname> <given-names>T.-P.</given-names></name> <name><surname>Makeig</surname> <given-names>S.</given-names></name> <name><surname>Westerfield</surname> <given-names>M.</given-names></name> <name><surname>Townsend</surname> <given-names>J.</given-names></name> <name><surname>Courchesne</surname> <given-names>E.</given-names></name> <name><surname>Sejnowski</surname> <given-names>T. J.</given-names></name></person-group> (<year>2000</year>). <article-title>Removal of eye activity artifacts from visual event-related potentials in normal and clinical subjects</article-title>. <source>Clin. Neurophysiol</source>. <volume>111</volume>, <fpage>1745</fpage>&#x02013;<lpage>1758</lpage>. <pub-id pub-id-type="doi">10.1016/S1388-2457(00)00386-2</pub-id><pub-id pub-id-type="pmid">11018488</pub-id></citation></ref>
<ref id="B19">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Jurkiewicz</surname> <given-names>M. T.</given-names></name> <name><surname>Gaetz</surname> <given-names>W. C.</given-names></name> <name><surname>Bostan</surname> <given-names>A. C.</given-names></name> <name><surname>Cheyne</surname> <given-names>D.</given-names></name></person-group> (<year>2006</year>). <article-title>Post-movement beta rebound is generated in motor cortex: evidence from neuromagnetic recordings</article-title>. <source>Neuroimage</source> <volume>32</volume>, <fpage>1281</fpage>&#x02013;<lpage>1289</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2006.06.005</pub-id><pub-id pub-id-type="pmid">16863693</pub-id></citation></ref>
<ref id="B20">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Luo</surname> <given-names>Q.</given-names></name> <name><surname>Holroyd</surname> <given-names>T.</given-names></name> <name><surname>Jones</surname> <given-names>M.</given-names></name> <name><surname>Hendler</surname> <given-names>T.</given-names></name> <name><surname>Blair</surname> <given-names>J.</given-names></name></person-group> (<year>2007</year>). <article-title>Neural dynamics for facial threat processing as revealed by gamma band synchronization using MEG</article-title>. <source>Neuroimage</source> <volume>34</volume>, <fpage>839</fpage>&#x02013;<lpage>847</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2006.09.023</pub-id><pub-id pub-id-type="pmid">17095252</pub-id></citation></ref>
<ref id="B21">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Maris</surname> <given-names>E.</given-names></name> <name><surname>Oostenveld</surname> <given-names>R.</given-names></name></person-group> (<year>2007</year>). <article-title>Nonparametric statistical testing of EEG- and MEG-data</article-title>. <source>J. Neurosci. Methods</source> <volume>164</volume>, <fpage>177</fpage>&#x02013;<lpage>190</lpage>. <pub-id pub-id-type="doi">10.1016/j.jneumeth.2007.03.024</pub-id><pub-id pub-id-type="pmid">17517438</pub-id></citation></ref>
<ref id="B22">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Maugui&#x000E8;re</surname> <given-names>F.</given-names></name> <name><surname>Merlet</surname> <given-names>I.</given-names></name> <name><surname>Forss</surname> <given-names>N.</given-names></name> <name><surname>Vanni</surname> <given-names>S.</given-names></name> <name><surname>Jousm&#x000E4;ki</surname> <given-names>V.</given-names></name> <name><surname>Adeleine</surname> <given-names>P.</given-names></name> <etal/></person-group>. (<year>1997</year>). <article-title>Activation of a distributed somatosensory cortical network in the human brain. A dipole modelling study of magnetic fields evoked by median nerve stimulation. Part I: location and activation timing of SEF sources</article-title>. <source>Electroencephalogr. Clin. Neurophysiol. Potentials Sect</source>. <volume>104</volume>, <fpage>281</fpage>&#x02013;<lpage>289</lpage>. <pub-id pub-id-type="doi">10.1016/S0013-4694(97)00006-0</pub-id><pub-id pub-id-type="pmid">9246065</pub-id></citation></ref>
<ref id="B23">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Muthukumaraswamy</surname> <given-names>S. D.</given-names></name> <name><surname>Singh</surname> <given-names>K. D.</given-names></name></person-group> (<year>2013</year>). <article-title>Visual gamma oscillations: the effects of stimulus type, visual field coverage and stimulus motion on MEG and EEG recordings</article-title>. <source>Neuroimage</source> <volume>69</volume>, <fpage>223</fpage>&#x02013;<lpage>230</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2012.12.038</pub-id><pub-id pub-id-type="pmid">23274186</pub-id></citation></ref>
<ref id="B24">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Oostenveld</surname> <given-names>R.</given-names></name> <name><surname>Fries</surname> <given-names>P.</given-names></name> <name><surname>Maris</surname> <given-names>E.</given-names></name> <name><surname>Schoffelen</surname> <given-names>J.-M.</given-names></name></person-group> (<year>2011</year>). <article-title>FieldTrip: open source software for advanced analysis of MEG, EEG, and invasive electrophysiological data</article-title>. <source>Comput. Intell. Neurosci.</source> <volume>2011</volume>:<fpage>156869</fpage>. <pub-id pub-id-type="doi">10.1155/2011/156869</pub-id><pub-id pub-id-type="pmid">21253357</pub-id></citation></ref>
<ref id="B25">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Salmelin</surname> <given-names>R.</given-names></name> <name><surname>Hari</surname> <given-names>R.</given-names></name></person-group> (<year>1994</year>). <article-title>Spatiotemporal characteristics of sensorimotor neuromagnetic rhythms related to thumb movement</article-title>. <source>Neuroscience</source> <volume>60</volume>, <fpage>537</fpage>&#x02013;<lpage>550</lpage>. <pub-id pub-id-type="doi">10.1016/0306-4522(94)90263-1</pub-id><pub-id pub-id-type="pmid">8072694</pub-id></citation></ref>
<ref id="B26">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Salmelin</surname> <given-names>R.</given-names></name> <name><surname>H&#x000E4;m&#x000E4;l&#x000E4;inen</surname> <given-names>M.</given-names></name> <name><surname>Kajola</surname> <given-names>M.</given-names></name> <name><surname>Hari</surname> <given-names>R.</given-names></name></person-group> (<year>1995</year>). <article-title>Functional segregation of movement-related rhythmic activity in the human brain</article-title>. <source>Neuroimage</source> <volume>2</volume>, <fpage>237</fpage>&#x02013;<lpage>243</lpage>. <pub-id pub-id-type="doi">10.1006/nimg.1995.1031</pub-id><pub-id pub-id-type="pmid">9343608</pub-id></citation></ref>
<ref id="B27">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Taulu</surname> <given-names>S.</given-names></name> <name><surname>Simola</surname> <given-names>J.</given-names></name></person-group> (<year>2006</year>). <article-title>Spatiotemporal signal space separation method for rejecting nearby interference in MEG measurements</article-title>. <source>Phys. Med. Biol</source>. <volume>51</volume>, <fpage>1759</fpage>&#x02013;<lpage>1768</lpage>. <pub-id pub-id-type="doi">10.1088/0031-9155/51/7/008</pub-id><pub-id pub-id-type="pmid">16552102</pub-id></citation></ref>
<ref id="B28">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>van Dijk</surname> <given-names>H.</given-names></name> <name><surname>Nieuwenhuis</surname> <given-names>I. L. C.</given-names></name> <name><surname>Jensen</surname> <given-names>O.</given-names></name></person-group> (<year>2010</year>). <article-title>Left temporal alpha band activity increases during working memory retention of pitches</article-title>. <source>Eur. J. Neurosci</source>. <volume>31</volume>, <fpage>1701</fpage>&#x02013;<lpage>1707</lpage>. <pub-id pub-id-type="doi">10.1111/j.1460-9568.2010.07227.x</pub-id><pub-id pub-id-type="pmid">20525083</pub-id></citation></ref>
<ref id="B29">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>van Veen</surname> <given-names>B. D.</given-names></name> <name><surname>Buckley</surname> <given-names>K. M.</given-names></name></person-group> (<year>1988</year>). <article-title>Beamforming: a versatile approach to spatial filtering</article-title>. <source>IEEE ASSP Mag</source>. <volume>5</volume>, <fpage>4</fpage>&#x02013;<lpage>24</lpage>. <pub-id pub-id-type="doi">10.1109/53.665</pub-id></citation></ref>
<ref id="B30">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>van Veen</surname> <given-names>B. D.</given-names></name> <name><surname>van Drongelen</surname> <given-names>W.</given-names></name> <name><surname>Yuchtman</surname> <given-names>M.</given-names></name> <name><surname>Suzuki</surname> <given-names>A.</given-names></name></person-group> (<year>1997</year>). <article-title>Localization of brain electrical activity via linearly constrained minimum variance spatial filtering</article-title>. <source>IEEE Trans. Biomed. Eng</source>. <volume>44</volume>, <fpage>867</fpage>&#x02013;<lpage>880</lpage>. <pub-id pub-id-type="doi">10.1109/10.623056</pub-id><pub-id pub-id-type="pmid">9282479</pub-id></citation></ref>
<ref id="B31">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Weisz</surname> <given-names>N.</given-names></name> <name><surname>M&#x000FC;ller</surname> <given-names>N.</given-names></name> <name><surname>Jatzev</surname> <given-names>S.</given-names></name> <name><surname>Bertrand</surname> <given-names>O.</given-names></name></person-group> (<year>2014</year>). <article-title>Oscillatory alpha modulations in right auditory regions reflect the validity of acoustic cues in an auditory spatial attention task</article-title>. <source>Cereb. Cortex</source> <volume>24</volume>, <fpage>2579</fpage>&#x02013;<lpage>2590</lpage>. <pub-id pub-id-type="doi">10.1093/cercor/bht113</pub-id><pub-id pub-id-type="pmid">23645711</pub-id></citation></ref>
</ref-list>
<fn-group>
<fn fn-type="financial-disclosure"><p><bold>Funding.</bold> Data for this study was collected at NatMEG (<ext-link ext-link-type="uri" xlink:href="http://www.natmeg.se">www.natmeg.se</ext-link>), the National infrastructure for Magnetoencephalography, Karolinska Institutet, Sweden. The NatMEG facility is supported by Knut &#x00026; Alice Wallenberg (KAW2011.0207). The study, and LA, was funded by Knut &#x00026; Alice Wallenberg Foundation (KAW2014.0102).</p>
</fn>
</fn-group>
</back>
</article>
