= SEEG epileptogencity maps = '''[TUTORIAL UNDER DEVELOPMENT: NOT READY FOR PUBLIC USE] ''' ''Authors: Francois Tadel, Olivier David.'' This tutorial introduces some concepts that are specific to the management of SEEG recordings in the Brainstorm environment, and explains how to compute maps of epileptogenicity from ictal recordings. It is based on a clinical case from the Grenoble University Hospital, France. Note that the operations used here are not detailed, the goal of this tutorial is not to introduce Brainstorm to new users. For in-depth explanations of the interface and theoretical foundations, please refer to the [[http://neuroimage.usc.edu/brainstorm/Tutorials#Get_started|introduction tutorials]]. ''Warning: The same tools can be used for processing and displaying ECOG, but this hasn't been debugged properly yet. Please share with us any suggestion for improving the ECOG support.'' <> <> == Download and installation == * '''Requirements''': You have already followed all the introduction tutorials and you have a working copy of Brainstorm installed on your computer. * Go to the [[http://neuroimage.usc.edu/bst/download.php|Download]] page of this website, and download the file: '''tutorial_epimap.zip''' * Unzip it in a folder that is not in any of the Brainstorm folders (program folder or database folder) * Start Brainstorm (Matlab scripts or stand-alone version). * Select the menu File > Create new protocol. Name it "'''TutorialEpimap'''" and select the options: * "'''No, use individual anatomy'''", * "'''No, use one channel file per acquisition run'''". == Import the anatomy == === Pre-implantation MRI === * Right-click on the TutorialEpimap folder > '''New subject''' > '''Subject01'''.<
>Keep the default options you defined for the protocol. * Switch to the "anatomy" view of the protocol. * Right-click on the subject node > '''Import MRI''':<
>Set the file format: "All MRI file (subject space)"<
>Select the file: '''tutorial_epimap/anat/MRI/3DT1pre_deface.nii''' * Do you want to apply the transformation to the MRI file? '''YES''' * The MRI viewer opens automatically. Click on "[[http://neuroimage.usc.edu/brainstorm/Tutorials/ImportAnatomy#MNI_transformation|Click here to compute MNI transformation]]". It computes an affine transformation between the subject space and the MNI ICBM152 space, and sets default positions for all the anatomical landmarks.<
> {{attachment:mni_transformation.gif}} * Click on [Save] to close the MRI viewer. === Post-implantation MRI === * The pre-implantation MRI will be used as the anatomical reference for this subject. We will now import a second scan done after the SEEG implantation, on which we can see the SEEG electrodes and contacts. In this dataset, the post-implantation volume is another T1 MRI scan (contacts hyposignal appear in black), but it is more commonly a CT scan (contacts hypersignal appear in white). * Right-click on the subject node > '''Import MRI''':<
>Select the file: '''tutorial_epimap/anat/MRI/3DT1post_deface.nii''' * Do you want to apply the transformation to the MRI file? '''YES'''<
>This will reorient the MRI in Brainstorm's standard orientation, so you can see the coronal/sagittal/axial views correctly oriented. * How to register the new volume? '''IGNORE'''<
>The two volumes have already been coregistered with SPM. See the section [[http://neuroimage.usc.edu/brainstorm/Tutorials/Epileptogenicity#Volume_coregistration|Volume coregistration]] for more details on this option. * Reslice the volume? '''YES'''<
>This will rewrite the volume with the orientation and resolution of the pre-implantation MRI, so that the two volumes can be overlaid in the MRI viewer. You may answer no to this question when the resolution of the pre-implantation MRI is very low and/or when you want to edit the positions of the fiducials in the original post-implantation volume (CT or MRI). * The MRI viewer opens automatically, showing the post-implantation volume as an colored layer on top of the previous volume. Adjust the transparency and amplitude threshold of this layer in the section Data options in the Surface tab, adjust its colormap with the popup menu of the figure. Use this display to validate that the coregistration of the two volume is correct, all the parts of the head must align well. <
><
> {{attachment:anat_overlay.gif||width="591",height="277"}} === Generate default surfaces === * Right-click on the pre-implantation MRI > '''SPM canonical surfaces'''. * Leave the default option selected (20484). This represents the resolution of SPM template surface used in this process. The higher the better, but it will slow down significantly the computation of the epileptogenicity maps. * These surfaces will be used later, in the computation of the epileptogenicity maps. Read the advanced sections of this page for information on [[http://neuroimage.usc.edu/brainstorm/Tutorials/Epileptogenicity#Importing_realistic_surfaces|how to use realistic surfaces]] from BrainVISA or FreeSurfer.<
><
> {{attachment:anat_canonical.gif||width="598",height="161"}} == Access the recordings == === Link the recordings === * Switch to the "functional data" view (2nd button, on top of the database explorer). * Right-click on the subject folder > '''Review raw file''': * Select the file format: "'''SEEG: Deltamed/Micromed/...'''" * Select all the SEEG recordings: '''tutorial_epimap/seeg/*.TRC''' * The new files "Link to raw file" let you access directly the contents of the original SEEG files. The menu "Review raw file" does not actually copy any data to the database. [[http://neuroimage.usc.edu/brainstorm/Tutorials/ChannelFile#Review_vs_Import|More information]]. <
><
> {{attachment:import_link.gif||width="634",height="202"}} === Import the contacts positions === In order to generate epileptogenicity maps, we need accurate 3D positions for the contacts of the depth electrodes. Placing the contacts requires a good understanding of the implantation scheme reported by the neurosurgeon, and some skills in reading MRI scans. To make this tutorial easier to reproduce and follow, we distribute the positions of the contacts saved in a text file (folder /anat/implantation). For instructions to place the SEEG contacts using Brainstorm, read the advanced section [[http://neuroimage.usc.edu/brainstorm/Tutorials/Epileptogenicity#Editing_the_contacts_positions|Editing the contacts positions]]. * The channel files "Micromed channels" contain the name of the channels, but not their positions. We need to import or edit separately the positions of the SEEG contacts. * Click on the [+] next to the three SZ folders, select all the channel files simultaneously. * Right-click one channel file > '''Add EEG positions''' > '''Import from file''': * Select the file format: "'''EEG: ASCII: Name, XYZ (*.*)'''" * Select the file: '''tutorial_epimap/anat/implantation/elec_pos_patient.txt '''<
><
> {{attachment:import_pos_file.gif||width="585",height="178"}} * Select a scaling factor: '''0.1''' (keep the default selection)<
>The positions in this text file are in millimeters, while the expected unit for "EEG: ASCII" is the centimeter. This option means that the values will be interpreted as 0.1*cm, ie. millimeters. <
><
> {{attachment:import_pos_factor.gif||width="407",height="111"}} * Apply MRI transformation? '''YES'''<
>This will interpret the coordinates in the text file as positions in the referential defined by the voxel-to-world transformation (vox2ras) transformation available in the MRI, if available (in NIfTI format, this corresponds to matrices qform or sform). If you answer no here, it would load the positions as [[CoordinateSystems|Brainstorm SCS coordinates]] and try to realign them based on the NAS/LPA/RPA landmarks. <
><
> {{attachment:import_pos_transf.gif||width="345",height="98"}} * At the end you get a report indicating how many channels from the SEEG recordings were attributed a new 3D position. The channels are matched by name: the position file you import must include the labels of the electrodes and they must be named exactly in the the same way as in your recordings. * The type of the channels for which a position was not found is set to '''EEG_NO_LOC''', so they are ignored when you process the SEEG channels. In this example dataset, the channels that are not found are "fz" and "cz", which are indeed not SEEG contacts. * You should always validate that the type of all the channels has been detected correctly. Check also that the names are correct and using the same convention for all the contact of a given electrode. These are entered manually, and typing errors are frequent. Right-click on a channel file > '''Edit channel file'''.<
><
> {{attachment:import_pos_edit.gif||width="595",height="120"}} * '''MNI coordinates''': Note that you can also import contact positions in MNI coordinates. In this example dataset includes the positions, they are available in the file "elec_pos_patient.txt". To import this file correctly, make sure you select a file format that explicitely mentions MNI coordinates. In this example, it would be: "EEG: ASCII: Name, XYZ'''_MNI''' (*.*)". * If you don't have the positions for the SEEG contacts, or if they don't look correctly aligned, you can directly place them in the MRI viewer. See the section [[http://neuroimage.usc.edu/brainstorm/Tutorials/Epileptogenicity#Editing_the_contacts_positions|Editing the contacts positions]]. == Display the depth electrodes == === 3D figures === * Right-click on the channel file > '''Display sensors''' > Explore all the options available. {{attachment:display_menu.gif}} * You can render the SEEG depth electrodes in 3D together with the subject surfaces, pre- or post-implantation volumes. You can add more anatomy elements to the figure with the button "Add a surface" at the top-right of the Surface tab. For more help: [[http://neuroimage.usc.edu/brainstorm/Tutorials/ExploreAnatomy#MRI_in_3D|Display the anatomy]]. <
><
> {{attachment:display_3d.gif||width="507",height="273"}} * Click on contact to select it, right-click on the figure to get its name: <
><
> {{attachment:display_selectchan.gif||width="408",height="247"}} === MRI Viewer === * You can also display the contacts in the MRI viewer, on top of the the pre- or post-implantation volumes. By default, the electrode is displayed in a slice if there is a contact of attached to this electrode in the slice.<
><
> {{attachment:display_mri.gif||width="542",height="422"}} * To display all the electrodes, select the option "'''MIP: Functional'''". For a glass-brain view, select at the same time the option "'''MIP: Anatomy'''". <
><
> {{attachment:display_mri_mip.gif||width="621",height="508"}} * Zoom in/out with the buttons or the associated shortcuts (Ctrl+Scroll or +/-) and explore the volume with (Shift+)x/y/z. Additional display options are available in the popup menu for this figure. All the shortcuts listed in [[http://neuroimage.usc.edu/brainstorm/Tutorials/ImportAnatomy#Using_the_MRI_Viewer|this tutorial]]. * You can '''edit the position of a contact''' directly by clicking on its dot in one of the slice and moving it around. Modifications are not saved immediately and can be cancelled when you close the window. Alternatively, you can right-click on the figure > '''Set electrode position'''. === Panel iEEG === * When opening SEEG/ECOG recordings, the panel iEEG is added to the Brainstorm window. You can use it to edit the display properties of the depth electrodes. In this interface, "'''electrode'''" refers to entire depth electrode implanted in the head of the patient while "'''contact'''" refers to recording sites on the electrode. There are multiple contacts on an electrode, and one contact corresponds to one channel of data in the channel file and the recordings. <
><
> {{attachment:panel_ieeg.gif||width="611",height="319"}} * SEEG depth electrodes are graphical objects, they are defined independently from the SEEG contacts available in the channel file and recordings. A contact/channel is associated to a depth electrode using the '''Group''' property of the channel, accessible with a right-click on the channel file > '''Edit channel file'''. * In this example, the depth electrodes available in the panel iEEG have been detected automatically based on the names and positions of the data channels. In the convention used here, the contact names must start with one or more letters (the name of the electrode) followed by a number representing the index of the contact on the electrode. Contact #1 is at the tip of the electrode, and is therefore the deeper contact of the electrode. If the convention used in your recordings is different, you may have to edit the electrodes properties in order to get them displayed correctly. * Buttons in the toolbar: * '''Add an electrode''': Adds an entry for a new depth electrode. The new electrode will not be displayed until you set its properties and position. This will not add or remove SEEG contacts or channels of data. * '''Remove selected electrodes''': Deletes a depth electrode from the list, but does not modify the list of SEEG contacts or channels of data. * '''Set color for selected electrodes''': Self explanatory. * '''Show/hide selected electrodes''': To hide an electrode in the 3D figures and MRI viewers, select it in the list then click on this button. Select all the electrodes with the standard shortcut Ctrl+A. * '''Display contacts as''': Depth electrodes / Spheres. * '''Contacts > Set default positions''': For each of the selected electrodes, the current positions of the SEEG contacts are discarded and replaced with the default positions of the contacts on the electrode. The properties used for setting the position of the contacts are the contact spacing, the tip of the electrode and the entry point in the skull. Contact #i is placed along the electrode at (i-1)*contact_spacing millimeters for the tip of the electrode. * '''Contacts > Project on electrode''': For each of the selected electrodes, the contacts are projected orthogonally on the electrode. This menu can be useful for aligning contacts that were marked one by one. * '''Contacts > Save modifications''': Save the current modifications to the channel file. Otherwise, the modifications are saved only when you close the figure (dialog box "Save modifications to channel file?") * '''Contacts > Export contacts positions''': Save the 3D positions of the SEEG contacts in the current channel file in one of the file formats supported by Brainstorm. * Electrode properties: ''Properties that have an impact on the position of the contacts''.<
> * If you edit the properties, the modifications will apply to all the selected electrodes in the current channel file. Check what is selected before making changes. * '''Type''': SEEG/ECOG * '''Model''': List of electrode models. If you select an entry in this menu, it will copy the default properties for this model to the selected electrodes. If you are using electrodes that are not in this list, please post on the specification of your devices on the user forum and we will add them to this list. * '''Number of contacts''': Number of recording sites on the electrode. By default, this is set for SEEG to the maximum index found in a group of contacts. Example: electrode s' is associated to channels s'1, s'2, s'3, s'10, s'11, s'12 => detected number of contacts is 12. * '''Contact spacing''': Distance between the centers of two consecutive contacts in the electrode. In this example dataset, the default value corresponds to the average distance observed between pairs of adjacent contacts. * '''Set tip''': Select one electrode in the list, then move the cursor of the MRI viewer to the tip of the selected electrode (center of the first contact), and finally click on [Set tip]. * '''Set skull entry''': Select one electrode in the list, then move the cursor of the MRI viewer to the point where the depth electrode enters the skull (or the center of the screw), and finally click on [Set skull entry]. This position does not correspond to any contact, it is used only to estimate the direction of the depth electrode. * Display options: Properties that only affect the way the electrodes are renderer graphically. * '''Contact length''': Defines the length along the electrode axis of the yellow cylinder that represents the contacts, or the diameter of the sphere when the electrodes are not rendered. * '''Contact diameter''': Diameter of the yellow cylinders representing the contacts. By default, this value is slightly larger than the electrode diameter so that it is rendered correctly. If you use the same value as the electrode diameter, the contacts might not be visible. * '''Electrode diameter''': Diameter of the cylinder representing the SEEG depth electrode. * '''Electrode length''': Length of the cylinder representing the SEEG depth electrode. == Display the SEEG recordings == === SEEG time series === * Right-click on any "Link to raw file" > '''SEEG '''> '''Display time series'''.<
><
> {{attachment:display_ts.gif||width="637",height="276"}} * For instructions on how to use this viewer, please refer to these tutorials: * [[Tutorials/ReviewRaw|Review continuous recordings]] * [[http://neuroimage.usc.edu/brainstorm/Tutorials/Epilepsy#Review_EEG_recordings|EEG and epilepsy: Review EEG recordings]] * Typical display configuration includes: * Set the page duration tp 20s or 30s: Record tab > Page settings. * Change the display mode to "columns": Record tab > Toolbar > First button. * Change the montage (bipolar/monopolar): Record tab > Note all the default montages available for SEEG: you can display all the contacts at once, or each electrode individually. * Set visualization filters: Filter tab. * Disable the automatic scaling when changing page: Button [AS] in the time series figure. * Adjust the amplitude scale: Right-click+move up/down, or buttons [^] and [v]. * Set the resolution precisely: Right-click on the figure > Figure > Set axes resolution. * With the menus "'''3D electrodes'''" you can visualize the SEEG values at the current time point. Move the time cursor and it will update the values represented on the SEEG contacts. <
><
> {{attachment:display_3delectrodes.gif||width="640",height="299"}} === Interpolate on the anatomy === * From the same SEEG display menu, you can also project the SEEG values on the MRI or the cortex. You can edit the colormap for the displayed value [[http://neuroimage.usc.edu/brainstorm/Tutorials/Colormaps|like any other colormap]]. * '''MRI volume''': All the voxels in the neighborhood of a contact are attributed the value associated with this contact. In the figure below, both "MIP: functional" and "MIP: anatomy" options are selected. * '''Cortex surface''': The values of the vertices are interpolated from the nearest SEEG contacts (the magnitude decreases with the distance to the contact). <
><
> {{attachment:display_interp_anat.gif||width="640",height="263"}} == Review recordings == === Bad channels === We will now to review the recordings for the three seizures recorded for this subject: SZ1, SZ2, SZ3. All the following steps are illustrated only for '''SZ1''' but need to be reproduced for the other files. * Double-click on '''SZ1/Link to raw file''' to open the SEEG recordings for the first seizure. * We need to mark the bad channels using a "'''monopolar'''" montage (common reference). If you are currently reviewing the recordings with a bipolar montage, swith it back to "All channels", using the menu in the toolbar of the record tab or with the popup menu of the time series figure. Otherwise, marking a signal as bad (eg. "v'2-v'1") would actually mark two channels as bad ("v'1" and "v'2"), while only one contact ("v'1") is not recording properly. * Click on the channels that you consider as bad to select them. For SZ1, select '''v'1''' and '''f'1'''. * Press the '''delete''' key, or use the popup menu Channels > '''Mark selected as bad'''. <
><
> {{attachment:mark_bad.gif||width="465",height="217"}} * Close the figure and repeat for the two other files. * Bad channels for the three seizures: * SZ1: '''v'1''', '''f'1''' * SZ2: '''v'1''' * SZ3: '''o'1''', '''t'8''' === Seizure onset === Two events are already available in this file: "Part1" only indicates the beginning of the file, and "Seizure" indicates approximately the onset of the first seizure. This marking was done for clinical use, to jump quickly to the page of interest, but here we need a more accurate marker. We will create a new marker "Onset" where we observe the beginning of the fast gamma activity, which is the main feature used computation of the epileptogenicity maps is based on. * Double-click on '''SZ1/Link to raw file''' to open the SEEG recordings for the first seizure, or do this immediately after marking the bad channels. * Switch to a '''bipolar montage''': bipolar-1 is sparse (eg. g2-g1, g4-3), bipolar-2 is exhaustive (eg. g2-g1, g3-g2, g4-3), depending on how dense you want your figure to be. * In the Record tab, click on the event group "'''Seizure'''", then on the event timing. This will jump quickly to the page on which we will place our Onset marker. * Zoom around the '''g'''' contacts (using the buttons on the right of the figure or the corresponding shortcuts, indicated if you leave your mouse over the buttons for a second), or select the g' electrode in the '''montage menu'''. * If needed, zoom locally in time in the current page (mouse wheel) and change the amplitude scale (right-click+mouse up/down). * Create an event group "Onset": Record tab > Events > '''Add group > "Onset"''', or select it. * Place the time cursor at '''120.800s''', add an Onset marker at this time (press the key "E", or use the popup menu Add/delete event). <
><
> {{attachment:mark_onset.gif||width="638",height="270"}} * If you are marking a lot of events, you might be interest in using [[http://neuroimage.usc.edu/brainstorm/Tutorials/EventMarkers#Custom_shortcuts|custom shortcuts]]. * Repeat for the other files. Seizure onset time for the three seizures: * SZ1: '''120.800s''' * SZ2: '''143.510s''' * SZ3: '''120.287s''' === Baseline === In the following sections, we will compute a time-frequency decomposition of the seizure and normalize it with respect to a baseline level. We will identify and import this baseline now. The baseline could be a segment of 5s to 30s of recordings, typically before the seizure, that contains as little interictal epileptiform activity as possible. The duration of the baseline influences the computation time for the following steps of this tutorial. We will work here with short segments of 5s for illustration purposes, between 72.8s and 77.8s. Use longer segments for more accurate results. * Create a new event group "'''Baseline'''". * Select the segment '''[72.8s, 77.8s]''': Click and drag your mouse, or right-click > Time selection > Set selection manually. Then create a Baseline extended event ("E" or "Add/delete event"). <
><
> {{attachment:mark_baseline.gif||width="642",height="242"}} * Repeat for the other files. Baselines for the three seizures: * SZ1: '''[72.800, 77.800]s''' * SZ2: '''[103.510, 108.510]s''' * SZ3: '''[45.287, 50.287]s''' * Close the viewer to save the modifications, or use the menu File > Save modifications. == Import epochs of interest == At this point of the analysis, we are still looking at the original files, no SEEG data was copied to the database. The montages are saved in the Brainstorm preferences, the bad channels and new events are saved in the links of the database but not eported to the original .TRC files. If you delete your protocol at this point, you would only lose the event marking and bad channel selection. We are now going to import two segments of recordings for each seizure file: the seizure (10s before and 40s after the onset) and the baseline (all the segment selected). This will make real copies of the data in the database, so we can run additional processes on them. === Import in database === * Right-click on the '''SZ1 / Link to raw file''' > '''Import in database''': * Time window: All, the only interesting point is to have access to the Onset marker. * Split in time blocks: Disabled * Use events: Enabled, select '''Onset''' * Epoch time: '''[-10000, +40000] ms''' (imports -10s to 40s around the event "Onset") * Remove DC offset: Disabled * Resample: Disabled * Create a separate folder for each event type: Disabled <
><
> {{attachment:import_onset.gif||width="601",height="262"}} * Repeat the last operation to import the baseline, modify only the following options: * Use events: Select '''Baseline''' * Epoch time: Not applicable, the event Baseline already defines a start and an end * Repeat for the three seizures. * At the end, you should have three new folders SZ1/SZ2/SZ3, the same name as the original .TRC files, but without the tag "raw" on top of it. These new folders contain copy of the SEEG recordings, if you delete these folders from the database explorer, you lose the files they contain. * The imported epochs are saved with a new timing: for the seizure onsets, the reference time t=0s is now the event "Onset", which has been removed from the list. You can still see the other marker Seizure, which should be slightly before 0s. For the baselines, the reference t=0 is the beginning of the segment.<
><
> {{attachment:import_database.gif||width="632",height="283"}} === Bipolar montage === We will run the rest of the analysis using a bipolar montage (bipolar-2). The montage selected in the Record tab is for visualization only, most processes ignore this selection and work only on the original common-reference data. To force all the processes to work on the bipolar values, we need to explicitly apply the montage to the recordings. * In Process1, drag and drop all the imported recordings (either the folders or the files). * Run the process '''Standardize >''' '''Apply montage''': * Montage: '''Subject01: SEEG (bipolar 2)''' * Create new folders: '''Enabled''' <
><
> {{attachment:import_montage.gif||width="475",height="191"}} * This process rewrites the channel files and data files in the selected folders. The position associated with a bipolar channel in the channel file is the middle of the segment between the two contacts (eg. "b'2-b'1" is placed half-way between "b'1" and "b'2"). <
><
> {{attachment:import_montage_files.gif}} {{attachment:import_montage_chan.gif||width="379",height="119"}} * If you display these new recordings and select the montage "All channels", it would now show the bipolar values. If you select a bipolar montage for these new files, it would do something you don't want, such as displaying values like "(b'4-b'3)-(b'2-b'1)". <> === Uniform list of channels === In this example dataset, the list of channels recorded for all the files is the same, we can directly process the three seizures together. But this is not always the case, the list of recorded channels might be different between two files. This could happen if the patient was implanted multiple times, or if not all the contacts could be recorded simultaneously due to technical limitations related with the amplifiers or the acquisition software. For files that have different channels recorded, or the same contacts in a different order, you need to chose one of the two following approaches: * '''Process the two files separately''': the differences will not matter, but you would obtain one epileptogenicity map for each file instead of a group result. * '''Process the two files together''': in this case, only the contact names that are found in all the input files are kept. All the other contacts are removed from the channel files and the recordings files. This will allow the computation of possibly more stable group results, but at the cost of ignoring some of the data. This approach is acceptable only if the deleted channels are far from the seizure onset zone, or you already know they cannot be associated with any interesting information. * If you choose the second option, you need to call a process that deletes the unwanted channels. Select all the bipolar files (Onset and Baseline) in Process1, and run the process '''Standardize > Uniform list of channels''', with the option "'''Keep only the common channel names'''". {{attachment:import_uniform.gif||width="491",height="306"}} == Time-frequency analysis == The aim of this section is only to evaluate the frequency range for the computation of the epileptogenicity maps. We need to identify which frequency band is the most representation and specific of the high-frequency activity at the beginning of a seizure. Starting from this step, you need to have the [[http://www.fil.ion.ucl.ac.uk/spm/software/download/|SPM12 toobox]] installed on your computer and added to your Matlab path. We need here the multitaper functions from the FieldTrip toolbox, which are also included in the SPM package. * In Process1, select all the bipolar files (Epoch and Baseline). * Run the process: '''Frequency > FieldTrip: ft_mtmconvol (Multitaper)''': * '''Time window''': [-10, 10]s * '''Sensor types''': SEEG * '''Taper''': hanning * '''Frequencies''': 10:3:220 * '''Modulation factor''': 10 * '''Time resolution''': 1000ms * '''Measure''': Magnitude * '''Save average''': Disabled * Add the process: '''Standardize > Baseline normalization''': * '''Baseline''': [-10, -1]s * '''Method''': Z-scoe transformation * '''Overwrite''': Enabled * Add the process: '''Average > Average files''': * '''Group files''': Everything * '''Function''': Arithmetic average * Run the pipeline.<
><
> {{attachment:timefreq_multitaper.gif||width="511",height="442"}} <
><
> {{attachment:timefreq_normalize.gif||width="630",height="496"}} * Four new files are available in the database: one for each bipolar Onset epoch, and one average, saved in folder "Intra-subject". * Right-click on the average time-frequency map > '''All channels'''. Then you can click on a channel to open it in a separate figure. Change the colormap to "GIN" and the colormap maximum to [-0.1,+0.1]*10^2 to reproduce the figures below. <
><
> {{attachment:timefreq_allchan.gif||width="650",height="247"}} == Epileptogenicity maps == === Volume === === Surface === <> == Guidelines panel == Easy way for reproducing all these steps <> == On the hard drive == IntraElectrodes structure <> == Volume coregistration == <> == Editing the contacts positions == <> == Creating a new implantation file == Same as previous section, but not starting from an existing of contacts. <> == Importing realistic surfaces == == ECOG == Maybe a separate tutorial? == TODO == * Fix all the links in this page * Proofread and check spelling * Send for review: John, Sylvain, Martin, Richard, Francois D, Jean G, Jean-Marc, Christophe, Laurent S, Christoph, Marcel, Beth, Jeremy, Olivier, Leila, Jean-Michel, Katia, Manuel, Chauvels, Christian, Ghislaine, Stan, Vladimir, forum users posting about SEEG == Scripting == The following script from the Brainstorm distribution reproduces the analysis presented in this tutorial page: [[https://github.com/brainstorm-tools/brainstorm3/blob/master/toolbox/script/tutorial_epileptogenicity.m|brainstorm3/toolbox/script/tutorial_epileptogenicity.m]] <)>><><)>> <>