3273
Comment:
|
7994
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= Basic Electrophysiology in Brainstorm = ''Authors: Konstantinos Nasiotis'' |
= Brainstorm's Suite for Basic Electrophysiology = '''[DRAFT, UNDER CONSTRUCTION:''' text in draft form and tutorial data not available yet - please come back soon - target release date: November 2018''']''' '''Note: '''In order to follow this tutorial, you need the latest version of Brainstorm (at least version 01-Nov-2018). ''Author: Konstantinos Nasiotis'' {{attachment:intro.png||width="700"}} |
Line 6: | Line 12: |
{{attachment:intro.png}} | == Introduction == We feature a series of data analysis tools specifically dedicated to basic electrophysiology research (e-phys). We see this suite of expanded Brainstorm features as an opportunity for enabling a methodological continuum between (multi)cellular and systems level (with EEG and MEG) data analytics and facilitate the scientific dialogue and interactions between subdisciplines in the field. |
Line 8: | Line 15: |
== Introduction == Invasive e-phys recordings aim in capturing the spiking activities of individual or small group of neurons. Since every spiking event is a very transient phenomenon (most spikes last around 1ms), the sampling rate of the recording system needs to be very high. Nowadays, acquisition systems can accommodate recordings from hundreds of channels from multiple multi-electrode arrays from different areas of the animal’s brain. A 10-minute recording that was used at the time of this tutorial from 224 channels (2 x 96 channel Utah arrays in PFC and TEO and one 32 channel depth electrode in the hippocampus) resulted to 10 min*60 sec*30,000 samples*224 channels* 2 bytes precision /1024 kb/1024 MB/1024 GB = ~7.5 GB. Since most recordings usually last much longer, there is a need for efficient data management and utilization of maximum processing power. |
Invasive electrophysiological recordings capture the spiking activity of individual or small groups of neurons. Since spiking events are transient phenomena (the typical duration of spikes is 1ms), the sampling rate of e-phys recording systems is typically much faster than for scalp EEG and MEG recordings. State-of-the-art acquisition systems can accommodate simultaneous recordings from hundreds of channels over several multi-electrode arrays positioned across the preparation. |
Line 11: | Line 17: |
Users that have Matlab’s parallel processing toolbox, will greatly benefit from the utilization of its properties. Most functions of the electrophysiology toolbox have a checkbox where users can enable parallelization of the processes. | We foresee that Brainstorm will contribute to the efficient data management and processing when there is a need for efficient, open and reproducible data management and utilization of large quantities of data. Users that have Matlab’s parallel processing toolbox, will greatly benefit from the utilization of its properties. Most functions of the electrophysiology toolbox have a checkbox where users can enable parallelization of the processes. |
Line 15: | Line 21: |
All the function that will be described on this toolbox, are located in the __Electrophysiology__ processes tab. | All the function that will be described on this toolbox, are located in the ''Electrophysiology'' processes tab. |
Line 19: | Line 25: |
This tutorial uses a dataset collected from Dr. Christopher Pack’s lab (www.packlab.mcgill.ca), from a macaque monkey with a penetration chamber implanted in areas MT and MST. The recording probe consisted of 32 channels and 1 reference electrode. Users can download this tutorial data that will contain a converted Plexon acquisition system raw file (ytu288c-01_converted.bst), and an anatomy folder (Floyd MRI) that can all be imported to Brainstorm. The task for the animal was to maintain fixation on a target while a superflow stimulus was presented with different directions. The events from the stimulation system are saved along with pre-spike-sorted events. | This tutorial uses a dataset collected from Nardin Nakhla in Dr. Christopher Pack’s lab (www.packlab.mcgill.ca), from a macaque monkey with a penetration chamber implanted in areas MT and MST. The recording probe consisted of 32 channels and 1 reference electrode. Users can download this tutorial data that will contain a converted Plexon acquisition system raw file (ytu288c-01.plx), an events file (this is a converted to Brainstorm events file that labels the experimental conditions appropriately), a channel positioning file and an anatomy folder (Floyd MRI) that can all be imported to Brainstorm. The task for the animal was to maintain fixation on a target while a superflow stimulus (dots that rotate, expand or translate in a partially coherent mode) was presented in one of 9 possible visual locations (as shown in the figure below). The events from the stimulation system are saved along with pre-spike-sorted events. {{attachment:stimulus.png||width="700"}} |
Line 22: | Line 30: |
{{attachment:importingRaw.png}} | {{attachment:importingRaw.png||width="700"}} |
Line 31: | Line 39: |
* Give the Protocol name: Tutorial_e-Phys. * For the anatomy set it to: No, use individual anatomy. |
* Give the Protocol name: ''Tutorial_e-Phys. '' * For the anatomy set it to: ''No, use individual anatomy. '' * Default Channel File: ''No, use one channel file per acquisition run.'' {{attachment:newProtocol.png}} Press create, and this will create the new protocol. '''__''Add Subject''__''' The next step will be to set the subject/monkey. Right click on the protocol created: Tutorial_e-Phys (subjects) and select New Subject (Make sure the Functional Data (sorted by subjects) tab is selected– select it under the Tutorial_e-Phys drop-down). {{attachment:newSubject.png}} A new window will appear that allows users to set the Subject name and to choose the individual anatomy and default channel file. Choose no for both default anatomy and default channel file. Use subject Name: ''Floyd'' {{attachment:FloydSubject.png}} Once Save is selected, a new subject (Floyd) will be created in the database. '''''__Import MRI (Optional)__'''''Users can now import the MRI if needed. Instructions on how to import the MRI can be found [[https://neuroimage.usc.edu/brainstorm/Tutorials/ImportAnatomy|here]] and just use the Floyd MRI folder as the Freesurfer/anatomy folder. However, the analysis described on later steps (besides a few visualization functions) does not require an anatomical MRI. '''''__Add an Acquisition system File__''''' Raw files can be imported by selecting the acquisition system used, and sequentially selecting the raw file. Just right click on the Subject (Floyd) and then click on ''Review raw file.'' {{attachment:reviewRaw.png}} A new window will pop-up that allows users to select the acquisition system and the raw file. Select EEG:Plexon (*.plx) as the acquisition system and navigate to the folder the ytu288c-01.plx raw file is saved. {{attachment:selectRaw_new.png||width=700}} Once the procedure is complete, this will create a new folder and two new files in the database: ytu288c-01_converted which is the name of the raw file, and one channel file (''Plexon channels (33)'') and the ''Link to raw file''. These two files contain all the information from the header of the acquisition system. It is important to note that no data (actual recordings) have been imported in Brainstorm yet. {{attachment:importedRaw.png}} By double clicking on the Link to raw file, a viewer will open that allows the user to navigate through the recordings. This is a very easy way to inspect the recordings for artifacts or stimulation effects since only the selected part is loaded in memory on-the-fly, without importing anything in the database. The events are automatically loaded from the importer. It is important to note that some acquisition systems might have enabled their own automatic spike sorter. These events are automatically labeled with the convention that is used throughout the e-phys toolbox: “Spikes Channel ChannelLabel”, where ChannelLabel is the Label of the electrode assigned by the acquisition system. If the acquisition system assigned the spikes’ waveforms into more than one cluster/neuron during this automatic clustering, the neuronal events would be (e.g. for an electrode that picked up spikes from 3 neurons): “Spikes Channel ChannelLabel |1|”, “Spikes Channel ChannelLabel |2|”, “Spikes Channel ChannelLabel |3|” The events are comprised of the signals that the stimulation system has sent (Stim On, Start, Stop etc.) and the pre-spike-sorted events that the Plexon acquisition system can perform (Spikes Channel AD01, Spike Channel AD02 etc.). In case users need to input events from a separate file, this can be easily done by clicking on the events panel: File -> Add events from file… {{attachment:displayRaw.png||width="700"}} <<EmbedContent("http://neuroimage.usc.edu/bst/get_prevnext.php?next=/e-phys/SpikeSorting")>> <<EmbedContent(http://neuroimage.usc.edu/bst/get_feedback.php?e-phys/Introduction)>> |
Brainstorm's Suite for Basic Electrophysiology
[DRAFT, UNDER CONSTRUCTION: text in draft form and tutorial data not available yet - please come back soon - target release date: November 2018]
Note: In order to follow this tutorial, you need the latest version of Brainstorm (at least version 01-Nov-2018).
Author: Konstantinos Nasiotis
Contents
Introduction
We feature a series of data analysis tools specifically dedicated to basic electrophysiology research (e-phys). We see this suite of expanded Brainstorm features as an opportunity for enabling a methodological continuum between (multi)cellular and systems level (with EEG and MEG) data analytics and facilitate the scientific dialogue and interactions between subdisciplines in the field.
Invasive electrophysiological recordings capture the spiking activity of individual or small groups of neurons. Since spiking events are transient phenomena (the typical duration of spikes is 1ms), the sampling rate of e-phys recording systems is typically much faster than for scalp EEG and MEG recordings. State-of-the-art acquisition systems can accommodate simultaneous recordings from hundreds of channels over several multi-electrode arrays positioned across the preparation.
We foresee that Brainstorm will contribute to the efficient data management and processing when there is a need for efficient, open and reproducible data management and utilization of large quantities of data. Users that have Matlab’s parallel processing toolbox, will greatly benefit from the utilization of its properties. Most functions of the electrophysiology toolbox have a checkbox where users can enable parallelization of the processes.
Additionally, it is highly recommended for users that need to analyze large files, to select a large number for memory utilization on any processes that allow users to adjust the memory used, since the speed of the processes (especially the spike sorting procedures that use demultiplexing of the raw signal) can be greatly improved by the extra memory used.
All the function that will be described on this toolbox, are located in the Electrophysiology processes tab.
Any toolboxes embedded represent the work of their respective authors and need to be appropriately cited. Links to the papers that the toolboxes correspond to are located on each section.
This tutorial uses a dataset collected from Nardin Nakhla in Dr. Christopher Pack’s lab (www.packlab.mcgill.ca), from a macaque monkey with a penetration chamber implanted in areas MT and MST. The recording probe consisted of 32 channels and 1 reference electrode. Users can download this tutorial data that will contain a converted Plexon acquisition system raw file (ytu288c-01.plx), an events file (this is a converted to Brainstorm events file that labels the experimental conditions appropriately), a channel positioning file and an anatomy folder (Floyd MRI) that can all be imported to Brainstorm. The task for the animal was to maintain fixation on a target while a superflow stimulus (dots that rotate, expand or translate in a partially coherent mode) was presented in one of 9 possible visual locations (as shown in the figure below). The events from the stimulation system are saved along with pre-spike-sorted events.
Importing raw e-phys data
The importation of raw e-phys data into Brainstorm follows the same procedure as it does for any other raw recording. Users firstly assign a name for their protocol/study, followed by the name of the subject/monkey, and sequentially can review their raw file.
All these steps are briefly repeated here for the example e-Phys file for completeness.
Create Protocol
When a new study needs to be analyzed, users have to create a new protocol: File -> New Protocol.
Give the Protocol name: Tutorial_e-Phys.
For the anatomy set it to: No, use individual anatomy.
Default Channel File: No, use one channel file per acquisition run.
Press create, and this will create the new protocol.
Add Subject
The next step will be to set the subject/monkey. Right click on the protocol created: Tutorial_e-Phys (subjects) and select New Subject (Make sure the Functional Data (sorted by subjects) tab is selected– select it under the Tutorial_e-Phys drop-down).
A new window will appear that allows users to set the Subject name and to choose the individual anatomy and default channel file. Choose no for both default anatomy and default channel file.
Use subject Name: Floyd
Once Save is selected, a new subject (Floyd) will be created in the database.
Import MRI (Optional)Users can now import the MRI if needed. Instructions on how to import the MRI can be found here and just use the Floyd MRI folder as the Freesurfer/anatomy folder. However, the analysis described on later steps (besides a few visualization functions) does not require an anatomical MRI.
Add an Acquisition system File
Raw files can be imported by selecting the acquisition system used, and sequentially selecting the raw file. Just right click on the Subject (Floyd) and then click on Review raw file.
A new window will pop-up that allows users to select the acquisition system and the raw file. Select EEG:Plexon (*.plx) as the acquisition system and navigate to the folder the ytu288c-01.plx raw file is saved.
Once the procedure is complete, this will create a new folder and two new files in the database: ytu288c-01_converted which is the name of the raw file, and one channel file (Plexon channels (33)) and the Link to raw file. These two files contain all the information from the header of the acquisition system. It is important to note that no data (actual recordings) have been imported in Brainstorm yet.
By double clicking on the Link to raw file, a viewer will open that allows the user to navigate through the recordings. This is a very easy way to inspect the recordings for artifacts or stimulation effects since only the selected part is loaded in memory on-the-fly, without importing anything in the database.
The events are automatically loaded from the importer. It is important to note that some acquisition systems might have enabled their own automatic spike sorter. These events are automatically labeled with the convention that is used throughout the e-phys toolbox:
“Spikes Channel ChannelLabel”, where ChannelLabel is the Label of the electrode assigned by the acquisition system. If the acquisition system assigned the spikes’ waveforms into more than one cluster/neuron during this automatic clustering, the neuronal events would be (e.g. for an electrode that picked up spikes from 3 neurons): “Spikes Channel ChannelLabel |1|”, “Spikes Channel ChannelLabel |2|”, “Spikes Channel ChannelLabel |3|”
The events are comprised of the signals that the stimulation system has sent (Stim On, Start, Stop etc.) and the pre-spike-sorted events that the Plexon acquisition system can perform (Spikes Channel AD01, Spike Channel AD02 etc.).
In case users need to input events from a separate file, this can be easily done by clicking on the events panel: File -> Add events from file…