10606
Comment:
|
14588
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= Tutorial 3: Importing MEG recordings = We are now going to import the recordings you downloaded in the previous tutorial (bst_sample_ctf): the averaged reponses to electric stimulation of the thumbs on both hands, 400 trials for each hand. Stimulus occurs at time 0. |
'''[WARNING: This page is part of the old tutorials, please refer to the [[Tutorials|new documentation]]]'''<<BR>><<BR>><<BR>> |
Line 4: | Line 3: |
<<TableOfContents(3)>> | = Tutorial 4: Importing MEG recordings = ''Authors: Francois Tadel, Sylvain Baillet'' We are now going to import the recordings you downloaded in the previous tutorial (sample_ctf): the averaged responses to electric stimulation of the thumbs on both hands, 400 trials for each hand. Epochs Stimulus occurs at time 0. Note that the recordings used in this example have already been pre-processed, epoched and averaged, so that you could go faster to the source analysis. The full process from the raw continuous recordings to the averaging is documented in the three tutorials in the section [[Tutorials/TutRawViewer|Process continuous recordings]]. But please keep on reading the tutorials in the way they are listed on the tutorials page. Be patient, you'll get there. <<TableOfContents(2,2)>> |
Line 7: | Line 13: |
1. Select the TutorialCTF protocol, and go to the ''Functional data (sorted by subject)'' view of the database.<<BR>><<BR>> {{attachment:dbFunctionalData.gif}} 1. Right-click on Subject01, select ''Import MEG/EEG...'' <<BR>>In the file format selection box, pick "''MEG/EEG: CTF .ds (*.meg4;*.res4)''". Go to ''bst_sample_ctf''/data/ directory, select the the ''somMDYO-18av.ds'' directory and click on Open.<<BR>><<BR>> {{attachment:panelImportCtf.gif}} * Two blocks of data are available in this file. The names are not really meaningful, so you have to know what was saved in the file. In this specific case, the first "epoch" is the average, the second is the standard deviation for the same trials. Keep both "epochs" selected. * Check the "''Remove DC offset''" option, together with "''Time range''", between -49.6 and 0. For each sensor, this will compute the average value across the time (on the for the pre-trigger period, ie. where times < 0), and substract this mean to all the time values.<<BR>> => In MEG, this operation is always needed, unless it was already applied during one of the pre-processing steps. * Click on Import. 1. A condition was created, called after the filename. It contains three items: <<BR>><<BR>> {{attachment:panelRenameCond.gif}} * The first is the channel file: description of the positions, names, types, and various properties of the sensors that recorded the data. The value (''182)'' means that there are 182 channels of data in the data files. They are not necessarily MEG channels, it may also includes EEG, EOG, stimulation lines, references, etc. * The last two represent the recordings (average and standard deviation) * Having the channels defined in the same file as the recordings is specific to MEG. Those systems always store all the available information at the same time. When dealing with EEG, you have to import separately the positions of the electrodes. This will be developped in another tutorial. * Rename the condition into ''Right'' (F2, or successive left clicks, or right-click>Rename) |
1. Select the TutorialCTF protocol, and go to the ''Functional data (sorted by subject)'' view |
Line 18: | Line 15: |
== Display channel file == | . {{attachment:dbFunctionalData.gif}} 2. Right-click on Subject01, select ''Import MEG/EEG...'' . __File format__: "MEG/EEG: CTF .ds (*.meg4;*.res4)" . __File__: sample_ctf/data/somMDYO-18av.ds (select the full directory and click on Open) . {{attachment:panelImportCtf.gif}} * Two blocks of data are available in this file. The names are not really meaningful, so you have to know what was saved in the file. In this specific case, the first "epoch" is the average, the second is the standard deviation for the same trials. Keep both "epochs" selected. * Check the "''Remove DC offset''" option, together with "''Time range''", between -49.6 and 0. For each sensor, this will compute the average value across the time (only for the pre-trigger period, ie. where times < 0), and subtract this mean to all the time values.<<BR>>This option removes the baseline value of each sensor, ie. the continuous (DC) offset that is added permanently on top of the recordings of interest. In MEG, the sensors record variations around a somewhat arbitrary level, therefore this operation is always needed, unless it was already applied during one of the pre-processing steps.<<BR>>Note that a high-pass filter with a very low frequency (for instance 0.3Hz) can replace efficiently this DC correction. If a high-pass filter has already been applied to the recordings, you may want to unselect this option. * Click on Import. The files are read, and a 3D window that shows the position of the head in the CTF helmet pops-up. This window is the same as the one obtained with the popup menu "MRI registration > Check", that is described later in this tutorial. 3. A condition was created, called after the filename. It contains three items: . {{attachment:panelRenameCond.gif}} * The first is the channel file: description of the positions, names, types, and various properties of the sensors that recorded the data. The value (''182)'' means that there are 182 channels of data recorded in all the files. They are not necessarily MEG channels, it may also includes EEG, EOG, stimulation lines, references, etc. * The last two represent the recordings associated with the stimulation of the Right thumb (average and standard deviation). * Having the channels defined in the same file as the recordings is specific to MEG. These systems always store all the available information at the same time. When dealing with EEG, you have to import separately the positions of the electrodes. * Rename the condition into ''Right'' (F2, or successive left clicks, or right-click>Rename) == Channel file == |
Line 21: | Line 41: |
{{attachment:popupChannel.gif}} |
|
Line 22: | Line 44: |
The two menus in the ''Display ''menu display the same thing, but in a different way. You can add the scalp surface easily with the toolbar in the ''Surfaces ''tab, in the main window (''Add a surface'' button). | The menus in the ''Display ''menu display the same thing, but in a different way. You can add the scalp (or cortex) surface easily with the toolbar in the ''Surfaces ''tab, in the main window (''Add a surface'' "+" button). |
Line 24: | Line 46: |
{{attachment:channelCtf.gif||height="169",width="272"}} {{attachment:channelMeg.gif||height="168",width="271"}} | {{attachment:channelCtf.gif||height="161px",width="208px"}} {{attachment:channelHelmet.gif||height="161px",width="206px"}} {{attachment:channelMeg.gif||height="161px",width="206px"}} |
Line 26: | Line 48: |
* '''CTF axial gradiometers''' (only available for CTF recordings): * All the CTF MEG axial gradiometers (only the coil close to the head is represented). * This menu displays them as they will be used in the forward model computation. The small squares do not represent exactly the reality, as CTF coils are circular, but they are modelized like that. * '''MEG''': MEG sensors are now represented as small white dots (center of the coils close to the head), and tesselated. |
* '''CTF coils''': Display the coils of this CTF MEG system: they are all axial gradiometers, only the coils close to the head are represented. The coils are represented the way there are processed in the forward model computation. The small squares do not represent exactly the reality, as CTF coils are circular, but the way they are modeled. * '''CTF Helmet''': Show a surface that represents the inner surface of the MEG helmet (ie. the plastic surface that the subject's head is almost supposed to touch). This view is useful for verifying that the registration is correct: if the registration is really wrong, there is a high chance that you would observe the scalp and helmet surfaces intersecting. * '''MEG''': MEG sensors are represented as small white dots (centers of the coils close to the head), and can be selected by clicking on them. |
Line 38: | Line 59: |
* '''Indice ''': Indice of the channel, which is also the indice of the row in the data matrix ('F' field in the recordings file). You can edit this field if you need to reorder the channels (might be useful for EEG recordings). | * '''Index ''': Index of the channel, which is also the index of the row in the data matrix ('F' field in the recordings file). You can edit this field if you need to reorder the channels (might be useful for EEG recordings). |
Line 42: | Line 63: |
* To delete a channel from this file: select "(Delete)" in the type column, and then save the window to save the file. | |
Line 47: | Line 69: |
=== Menu: MRI Registration === For the moment, the registration between anatomy and sensors is based only on three points that are manually positioned (nasion and ears). This rough alignment technique is quite robust but also very imprecise, and depends on the precision with which the people defined the fiducials, both during the data acquisition and on the MRI slices. For this reason, it is sometimes necessary to correct the position of the sensors. * '''Check''': Show all the possible information that may help to verify the registration between the sensors and the anatomy. For these specific recordings, it would just show the head surface, and the inner helmet surface, exactly like the "Display sensors > CTF Helmet" menu. * '''Edit...''': Opens a window where you can move manually the MEG helmet relatively to the head. It works the same way as the interface to co-register surfaces presented in the previous tutorial: select an operation by clicking on it in the toolbar, and then right-click+move up/down to apply it. From a scientific point of view it is not a exactly a rigorous operation, but sometimes it is much better than using wrong default positions.<<BR>><<BR>> {{attachment:channelAlign.gif||height="133px",width="183px"}} * '''Refine using head points''': If some digitized head points are available, this menu launches an iterative algorithm that uses these points to try to get a better MRI/sensors registration. In our case, there are no such points that were acquired, and you will get an error message if you select this menu. There is nothing to change here, but remember to '''always '''check the registration scalp/sensors just after you import MEG or EEG recordings. === Menu: Digitized head points === Before locking your subject into that dark shielded room, when you acquire the position of some reference points with a magnetic tracking system (eg. Polhemus Isotrak), it is a good practice to acquire also many other points at the surface of the head. It does not take a very long time but provides very valuable information to register properly the MEG sensors with the MRI and surfaces. The more head points the better, with a __minimum__ of 50 or 100, avoiding the softer parts of the head (cheeks, base of the neck, ears, eyes) because they may have different shapes when the patient is sitting on the MEG chair and when he/she is laying down in the MR scanner. Always insist on the nose, it provides a really good indicator of the orientation of the head. * '''View head points''': Visualize the head points that were digitized before the MEG acquisition. There are no extra points here, so you will have to read another tutorial to play with these menus. * '''Add points''': Add extra head points to the existing ones, from any type of file. * '''Remove all points''': Removes all the currently defined head points. * '''Warp''': Use these digitized head points to create a pseudo-individual anatomy, in the case you don't have an individual MRI for the subject. It uses the default anatomy (MNI/Colin27) and deforms it to match the head points. Make sure the alignment is correct before calling this menu. This step is described better in [[Tutorials/TutWarping|this page]]. __Note__: The digitization of the head shape and the head localization coils with a Polhemus device can be done with Brainstorm: see the [[Tutorials/TutDigitize|digitize tutorial]]. |
|
Line 48: | Line 89: |
Some other fields are present in the channel file that cannot be accessed with the ''Channel editor'' window. You can explore those other fields with the ''File ''menu, selecting ''View file contents'' or ''Export to Matlab''. As we saw in previous tutorial. | Some other fields are present in the channel file that cannot be accessed with the ''Channel editor'' window. You can explore these other fields with the ''File ''menu, selecting ''View file contents'' or ''Export to Matlab''. As we saw in previous tutorial. |
Line 55: | Line 96: |
* '''!MegRefCoef''': Noise compensation matrix for CTF recordings, which is computed by the CTF systems, based on some other sensors that are located far away from the head. | * '''MegRefCoef''': Noise compensation matrix for CTF recordings, which is computed by the CTF systems, based on some other sensors that are located far away from the head. |
Line 57: | Line 98: |
* '''!TransfMeg''': Transformations that were applied to the positions of the MEG sensors to bring them in the Brainstorm coordinate system (as Brainstorm and CTF coordinate systems are the same, this field is empty). * '''!TransfEeg''': Same for the position of the EEG electrodes. * '''!HeadPoints''': Extra head points that were digitized with a tracking system (eg. Polhemus Isotrak). |
* '''TransfMeg / TransfMegLabel''': Transformations that were applied to the positions of the MEG sensors to bring them in the Brainstorm coordinate system (as Brainstorm and CTF coordinate systems are the same, this field is empty). * '''TransfEeg'''''' / TransfEegLabel''': Same for the position of the EEG electrodes. * '''HeadPoints''': Extra head points that were digitized with a tracking system. * '''Channel''': An array that defines each channel individually * '''History''': Describes all the operations that were performed with Brainstorm on this file. To get a better view of this piece of information, use the menu File > View file history. |
Line 61: | Line 104: |
=== Menu: MRI Registration === For the moment, the registration between anatomy and sensors is based only on three points that are manually positioned (nasion and ears). This rough alignment technique is quite robust but also very unprecise, and depends on the precision with which the people defined the fiducials, both during the data acquisition and on the MRI slices.For this reason, it is sometimes necessary to correct the position of the sensors. Two options: ==== Automatic Registration ==== Menu ''MRI Registration > Auto registration (using head points)''. <<BR>>If some digitized head points are available, this menu launches an iterative algorithm that uses those points to try to get a better MRI/sensors registration. Here, there are no such points that were acquired, and you will get an error message if you select this menu. ==== Manual registration ==== From a scientific point of view it is not a really rigorous operation, but sometimes it is much better than using wrong default positions. There are two menus: one to check the alignment head surface/sensors, and one to fix it. The ''Manual MEG-MRI registration'' menu works exactly the same way as the surface alignment tools introduced in previous tutorial (select buttons in the toolbar and right-click+move in the windows). {{attachment:channelAlignCheck.gif||height="196",width="272"}} {{attachment:channelAlign.gif||height="196",width="273"}} Nothing to change here, but remember to '''always '''check the registration scalp/sensors just after you import MEG or EEG recordings. == Display recordings == To understand what is stored in the two recording files: double-click on the first, then double-click on the second. |
== MEG recordings == To understand what is stored in the two other files: double-click on the first, then double-click on the second. |
Line 81: | Line 109: |
* The first one is the response to the electric stimulation averaged over 400 trials across the time (the values of each MEG sensors is represented by a black line, and they are all overlaid). Roughly, you can observe a first response peak at 23ms, and a second one at about 47ms. | * The first one is the response to the electric stimulation averaged over 400 trials, from 50ms before to 250ms after the stimulus. The values for each MEG sensor is represented by a black line, all the sensors are all overlaid on the same graph. * Roughly, you can observe a first response peak at 23ms, and a second one at about 47ms. |
Line 83: | Line 112: |
* You can rename them ''ERP ''and ''Std ''(or ''Error''), because it makes more sense than ''somMDYO-18av (#1)'' and ''somMDYO-18av (#2)''. * Close the windows using the ''Close all'' button on the right of the main Brainstorm toolbar. It closes all the figures at the same time and frees all the memory. Try to always use this instead of closing the figures individually. <<BR>><<BR>> {{attachment:closeAllButton.gif}} |
* You can rename them ''ERF ''(for Evoked Response Field) and ''Std'', to get something more meaningful than ''somMDYO-18av (#1)'' and ''somMDYO-18av (#2)''. Use F2 or any other renaming method. * Close the windows using the ''Close all'' button on the right of the main Brainstorm toolbar. It closes all the figures at the same time and frees all the memory. Always use this instead of closing the figures individually. <<BR>><<BR>> {{attachment:closeAllButton.gif}} |
Line 86: | Line 115: |
Now have a look to what is inside a recording file: right-click on ''Right/ERP > File > View file contents''. | Now have a look at what is inside a recording file: right-click on ''Right/ERP > File > View file contents''. |
Line 88: | Line 117: |
{{attachment:dataFileMat.gif}} | . {{attachment:dataFileMat.gif}} |
Line 90: | Line 119: |
* '''F''': recordings values (nChannels x nTime), in Volts * '''!ChannelFlag''': one value per channel, 1 means good channel, -1 means bad channel (and will not be displayed or processed) * '''Time''': Time values, in second |
* '''F''': recordings time series (nChannels x nTime), in Volts * '''Comment''': String displayed in the Brainstorm database explorer to represent this file * '''ChannelFlag''': one value per channel, 1 means good, -1 means bad (not displayed or processed) * '''Time''': Time values, in seconds * '''DataType''': Type of the data saved in the F matrix (recordings, Z-score...) |
Line 95: | Line 126: |
* '''Events''': Time markers available in the file (stimulus triggers or other events) | |
Line 96: | Line 128: |
* '''DataType''': Type of the data saved in the F file (recordings, zscore...) * '''BadTrial''': 0 if this block of data is accepted as a valid data file, 1 if the file was classified as unusable (automatically or manually) * '''Comment''': String displayed in the Brainstorm database explorer to represent this file All the recordings display tools will be introduced in the next tutorial. |
|
Line 105: | Line 132: |
1. Create a new condition for your Subject01, called ''Left''. To do that: right-click on Subject01 > Add condition... 1. Import the second file (''somMGYO-18av.ds)'' in the ''Left ''condition. Rename the recordings in ''ERP ''and ''Std''. 1. Switch to the ''Functional data (sorted by condition)'', by click on the third button in main Brainstorm toolbar.<<BR>><<BR>> {{attachment:dbSortByCond.gif}} |
1. Right-click on Subject01 > New folder > Left 1. Import the second file (''somMGYO-18av.ds)'' in the ''Left ''condition. Same options as before. 1. Rename the recordings in ''ERF ''and ''Std''. 1. Switch to the ''Functional data (sorted by condition)'', with the third button in the explorer toolbar.<<BR>><<BR>> {{attachment:dbSortByCond.gif}} |
Line 111: | Line 139: |
Everything is now loaded in ''TutorialCTF ''protocol : subject anatomy (MRI and surfaces), recordings and channels description. | Everything is now loaded in ''TutorialCTF ''protocol : subject anatomy (MRI and surfaces), recordings and channels description. The next tutorial presents all the tools available to [[Tutorials/TutExploreRecodings|explore the recordings]]. |
Line 113: | Line 141: |
The next tutorial will present all the tools available to [[Tutorials/TutExploreRecodings|explore the recordings]]. | <<EmbedContent(http://neuroimage.usc.edu/bst/get_feedback.php?Tutorials/TutImportRecordings)>> |
[WARNING: This page is part of the old tutorials, please refer to the new documentation]
Tutorial 4: Importing MEG recordings
Authors: Francois Tadel, Sylvain Baillet
We are now going to import the recordings you downloaded in the previous tutorial (sample_ctf): the averaged responses to electric stimulation of the thumbs on both hands, 400 trials for each hand. Epochs Stimulus occurs at time 0.
Note that the recordings used in this example have already been pre-processed, epoched and averaged, so that you could go faster to the source analysis. The full process from the raw continuous recordings to the averaging is documented in the three tutorials in the section ?Process continuous recordings. But please keep on reading the tutorials in the way they are listed on the tutorials page. Be patient, you'll get there.
Import recordings
1. Select the TutorialCTF protocol, and go to the Functional data (sorted by subject) view
2. Right-click on Subject01, select Import MEG/EEG...
File format: "MEG/EEG: CTF .ds (*.meg4;*.res4)"
File: sample_ctf/data/somMDYO-18av.ds (select the full directory and click on Open)
- Two blocks of data are available in this file. The names are not really meaningful, so you have to know what was saved in the file. In this specific case, the first "epoch" is the average, the second is the standard deviation for the same trials. Keep both "epochs" selected.
Check the "Remove DC offset" option, together with "Time range", between -49.6 and 0. For each sensor, this will compute the average value across the time (only for the pre-trigger period, ie. where times < 0), and subtract this mean to all the time values.
This option removes the baseline value of each sensor, ie. the continuous (DC) offset that is added permanently on top of the recordings of interest. In MEG, the sensors record variations around a somewhat arbitrary level, therefore this operation is always needed, unless it was already applied during one of the pre-processing steps.
Note that a high-pass filter with a very low frequency (for instance 0.3Hz) can replace efficiently this DC correction. If a high-pass filter has already been applied to the recordings, you may want to unselect this option.Click on Import. The files are read, and a 3D window that shows the position of the head in the CTF helmet pops-up. This window is the same as the one obtained with the popup menu "MRI registration > Check", that is described later in this tutorial.
3. A condition was created, called after the filename. It contains three items:
The first is the channel file: description of the positions, names, types, and various properties of the sensors that recorded the data. The value (182) means that there are 182 channels of data recorded in all the files. They are not necessarily MEG channels, it may also includes EEG, EOG, stimulation lines, references, etc.
- The last two represent the recordings associated with the stimulation of the Right thumb (average and standard deviation).
- Having the channels defined in the same file as the recordings is specific to MEG. These systems always store all the available information at the same time. When dealing with EEG, you have to import separately the positions of the electrodes.
Rename the condition into Right (F2, or successive left clicks, or right-click>Rename)
Channel file
Let's explore what you can do with the first file. Right-click on the CTF channels file and try all the menus.
Menu: Display
The menus in the Display menu display the same thing, but in a different way. You can add the scalp (or cortex) surface easily with the toolbar in the Surfaces tab, in the main window (Add a surface "+" button).
CTF coils: Display the coils of this CTF MEG system: they are all axial gradiometers, only the coils close to the head are represented. The coils are represented the way there are processed in the forward model computation. The small squares do not represent exactly the reality, as CTF coils are circular, but the way they are modeled.
CTF Helmet: Show a surface that represents the inner surface of the MEG helmet (ie. the plastic surface that the subject's head is almost supposed to touch). This view is useful for verifying that the registration is correct: if the registration is really wrong, there is a high chance that you would observe the scalp and helmet surfaces intersecting.
MEG: MEG sensors are represented as small white dots (centers of the coils close to the head), and can be selected by clicking on them.
Menu: Edit channel file
Display a table with all the information about the individual channels. You can use this window to view and edit the channels properties.
The channel file describes each channel separately, with the following information:
Index : Index of the channel, which is also the index of the row in the data matrix ('F' field in the recordings file). You can edit this field if you need to reorder the channels (might be useful for EEG recordings).
Name : Name that was given to the channel by the acquisition device.
Type : Channel type, eg. MEG, EEG, EOG, ECG, EMG, Stim, Other, etc.
- Sometimes you have to change the Type for some sensors. For instance if the EOG channel was saved as a regular EEG channel, you have to change its type to prevent it from being used in the source estimation.
- To delete a channel from this file: select "(Delete)" in the type column, and then save the window to save the file.
Comment : Description of the channel.
Loc : Indicates the position in space of the sensor (x,y,z coordinates). One column per coil and per integration point. You should not modify these values from this interface.
Orient : Indicates the orientation of the coil (x,y,z coordinates). One column per coil or per integration point.
Weight : When there are more than one coil or integration point, the Weight field indicates the multiplication factor to apply to each of these points.
Menu: MRI Registration
For the moment, the registration between anatomy and sensors is based only on three points that are manually positioned (nasion and ears). This rough alignment technique is quite robust but also very imprecise, and depends on the precision with which the people defined the fiducials, both during the data acquisition and on the MRI slices. For this reason, it is sometimes necessary to correct the position of the sensors.
Check: Show all the possible information that may help to verify the registration between the sensors and the anatomy. For these specific recordings, it would just show the head surface, and the inner helmet surface, exactly like the "Display sensors > CTF Helmet" menu.
Edit...: Opens a window where you can move manually the MEG helmet relatively to the head. It works the same way as the interface to co-register surfaces presented in the previous tutorial: select an operation by clicking on it in the toolbar, and then right-click+move up/down to apply it. From a scientific point of view it is not a exactly a rigorous operation, but sometimes it is much better than using wrong default positions.
Refine using head points: If some digitized head points are available, this menu launches an iterative algorithm that uses these points to try to get a better MRI/sensors registration. In our case, there are no such points that were acquired, and you will get an error message if you select this menu.
There is nothing to change here, but remember to always check the registration scalp/sensors just after you import MEG or EEG recordings.
Menu: Digitized head points
Before locking your subject into that dark shielded room, when you acquire the position of some reference points with a magnetic tracking system (eg. Polhemus Isotrak), it is a good practice to acquire also many other points at the surface of the head. It does not take a very long time but provides very valuable information to register properly the MEG sensors with the MRI and surfaces. The more head points the better, with a minimum of 50 or 100, avoiding the softer parts of the head (cheeks, base of the neck, ears, eyes) because they may have different shapes when the patient is sitting on the MEG chair and when he/she is laying down in the MR scanner. Always insist on the nose, it provides a really good indicator of the orientation of the head.
View head points: Visualize the head points that were digitized before the MEG acquisition. There are no extra points here, so you will have to read another tutorial to play with these menus.
Add points: Add extra head points to the existing ones, from any type of file.
Remove all points: Removes all the currently defined head points.
Warp: Use these digitized head points to create a pseudo-individual anatomy, in the case you don't have an individual MRI for the subject. It uses the default anatomy (MNI/Colin27) and deforms it to match the head points. Make sure the alignment is correct before calling this menu. This step is described better in this page.
Note: The digitization of the head shape and the head localization coils with a Polhemus device can be done with Brainstorm: see the digitize tutorial.
Menu: File
Some other fields are present in the channel file that cannot be accessed with the Channel editor window. You can explore these other fields with the File menu, selecting View file contents or Export to Matlab. As we saw in previous tutorial.
Some fields you may find there:
Comment : String that is displayed in the Brainstorm database explorer
MegRefCoef: Noise compensation matrix for CTF recordings, which is computed by the CTF systems, based on some other sensors that are located far away from the head.
Projector: SSP projectors used for denoising purposes.
TransfMeg / TransfMegLabel: Transformations that were applied to the positions of the MEG sensors to bring them in the Brainstorm coordinate system (as Brainstorm and CTF coordinate systems are the same, this field is empty).
TransfEeg / TransfEegLabel: Same for the position of the EEG electrodes.
HeadPoints: Extra head points that were digitized with a tracking system.
Channel: An array that defines each channel individually
History: Describes all the operations that were performed with Brainstorm on this file. To get a better view of this piece of information, use the menu File > View file history.
MEG recordings
To understand what is stored in the two other files: double-click on the first, then double-click on the second.
- The first one is the response to the electric stimulation averaged over 400 trials, from 50ms before to 250ms after the stimulus. The values for each MEG sensor is represented by a black line, all the sensors are all overlaid on the same graph.
- Roughly, you can observe a first response peak at 23ms, and a second one at about 47ms.
- The second one is the standard deviation of the trials that were average, for each sensors and at each time.
You can rename them ERF (for Evoked Response Field) and Std, to get something more meaningful than somMDYO-18av (#1) and somMDYO-18av (#2). Use F2 or any other renaming method.
Close the windows using the Close all button on the right of the main Brainstorm toolbar. It closes all the figures at the same time and frees all the memory. Always use this instead of closing the figures individually.
Now have a look at what is inside a recording file: right-click on Right/ERP > File > View file contents.
F: recordings time series (nChannels x nTime), in Volts
Comment: String displayed in the Brainstorm database explorer to represent this file
ChannelFlag: one value per channel, 1 means good, -1 means bad (not displayed or processed)
Time: Time values, in seconds
DataType: Type of the data saved in the F matrix (recordings, Z-score...)
Device: Name of the acquisition system used to record this file
nAvg: For averaged files, number of trials that were used to compute this file
Events: Time markers available in the file (stimulus triggers or other events)
History: Operations performed on file since it was imported
Managing conditions
You have already imported the average response for the stimulation of the right thumb. Let's also import the left thumb, but proceeding in a slightly different way.
Right-click on Subject01 > New folder > Left
Import the second file (somMGYO-18av.ds) in the Left condition. Same options as before.
Rename the recordings in ERF and Std.
Switch to the Functional data (sorted by condition), with the third button in the explorer toolbar.
- This view is not very useful when you have one subject and two conditions. But remember this option for later, it will be very useful when you will have 60 subjects and 12 conditions per subject in your database.
Next
Everything is now loaded in TutorialCTF protocol : subject anatomy (MRI and surfaces), recordings and channels description. The next tutorial presents all the tools available to ?explore the recordings.