There is a newer version of the record available.

Published October 9, 2024 | Version v1
Software Open

HD-MEA NEUROPulse

  • 1. ROR icon University of Pavia
  • 2. Università degli Studi di Pavia
  • 3. IRCCS Mondino Foundation

Contributors

  • 1. University of Pavia

Description

 

Abstract (English)

The analysis of data for scientific research often requires routines that go beyond the standard preprocessing provided by companies along with the hardware for signal recording. We present a Python-based script for data extraction from 3Brain© HD-MEA datasets recorded using Brainwave© X or 4, 5 or 6. The code is optimized for cerebellar slice recordings (including both evoked and spontaneous activities) but it can be adapted to various types of recordings with minor adjustments. This tool is designed to facilitate data extraction and visualization from 3Brain© systems. With some modifications, it can also be applied to other multi-electrode array systems. The program efficiently extracts information directly from the raw Brainwave file (.brw) and processed datasets (.bxr, with spike detection and sorting results). The program output consists of .csv files with the extracted data and corresponding plots. The GUI structure is straightforward, featuring the following panels:

  • manual selection of channels to be analyzed
  • file paths specification
  • saving folders definition
  • region-of-interest (ROI) or channel group (.bwcg) files.

Three distinct panels cope with different types of analysis. The first panel is dedicated to evoked local field potential (LFP) detection, parameter extraction, and result plotting. The second panel focuses on autorhythmic unit evoked activity and generates peri-stimulus time histograms (PSTHs). The third panel manages spontaneous activity, generating inter-spike interval (ISI) plots and calculating the average firing rate ± SEM (standard error of the mean), modal firing rate (which could be helpful for long recordings), and firing rate variability (CV and CV21).

Methods

INSTRUCTIONS

The program is available as a .exe file, which can be run by double-clicking the icon (ensure not to delete the auxiliary files in the folder). The Python source code is also provided, but specific libraries are needed to run it.

Additionally, we provide a dataset (including both .brw and .bxr files) with a pre-selected ROI (.bwcg) for both LFP and autorhythmic cell analysis.

For Autorhythmic Cells Evoked Activity Analysis (PSTH) and Autorhythmic Cells Spontaneous Activity Analysis (ISI), spike detection and spike sorting are required: these steps can be easily performed directly in Brainwave© and exported as a .bxr file. Notice that sorting should be supervised in order to have one unit per channel.

File Requirements for Different Analyses:

  • LFP Analysis: Requires only the .brw file.
  • PSTH Analysis: Requires both .brw and .bxr files.
  • ISI Analysis: Requires only the .bxr file.          

GENERAL OPERATIONS

As described above, the first panel of the GUI, named ID Conversion, is dedicated to the manual selection of ROIs (in contrast to ROI upload). In this panel, you can input the coordinates of the channels to be analysed, one by one. Next to this panel, a second panel, named File Path, allows to upload information from files. It contains four text fields allowing to specify the paths for the .brw file, .bxr file, saving folder, and ROI file. For convenience, you can also select these paths by browsing the folders using the white folder icon next to each text field. Each manually added channel or loaded ROI is displayed in green on the MEA virtual map (the blue square at the top right corner), demonstrating that the ROI is correctly loaded. Once all files are correctly loaded and the ROI is selected, the analysis can begin. Regardless of the type of analysis, the data is initially stored as digital values in a machine-friendly format. The program's first operation is to convert this digital data into a format that can be easily visualized and analysed. Once the data is reorganized, the actual analysis can be performed.

LFP ANALYSIS

The field potential analysis is fully optimized for cerebellar granular layer evoked field potentials, whose waveform is well characterized 2,3,4. The LFP Analysis panel features four parameters:

  • LFP Extraction Time: The total duration of the trace to be extracted and plotted (consider that the program uses the entire trace for statistical validation of the signal and that this time needs to be refined depending on the stimulation frequency).
  • N2a N2b Time Window: The time interval between the N2a and N2b peaks, which are characteristic negative peaks of cerebellar granular layer LFP.
  • Blind Time: The time window that should be excluded as the final part of the stimulus artifact.
  • Low Pass Filter Frequency: A low-pass filter where you can select the cutoff frequency.

The LFP analysis algorithm begins by detecting every stimulation frame and storing it in an array. The second part of the script detects the first minimum (the N2a peak) and the second minimum (the N2b peak) in the trace extracted between the stimulus frame plus the blind time and the  last frame in the ‘LFP extraction time’. Results are stored in an array. These operations are repeated for each field potential in each channel within the ROI. At the end, results from each channel ID, including the average trace, are grouped, plotted and stored in a matrix. The program performs a statistical validation to select only signals that exceed the noise. Since data in the extracted trace follow a normal distribution, the required peak is the outlier. Based on this idea, the program sets a threshold for each LFP in each channel equal to MEAN - 3*STDEV. This threshold ensures 95% confidence for the detected peak. The final part of the routine is dedicated to saving results, which are exported as a .csv file containing peak amplitudes and a .csv file with time frames of stimulus delivery. Additionally, every LFP group is plotted and saved as a .png file (it can also be saved as a vector by changing .png to .svg) for each channel.

ANALYSIS OF EVOKED ACTIVITY IN AUTORHYTHMIC CELLS

The Autorhythmic Cells Evoked Activity Analysis (PSTH) analysis panel allows to set six parameters:

  • Bin Size: The size of the bin used to count spikes and calculate the PSTH bin frequency.
  • Pre-Stimulus Time Window: The desired time interval to be analysed before stimulus delivery.
  • Post-Stimulus Time Window: The desired time interval to be analysed after stimulus delivery .
  • Number of Permutations for Significance Test: The number of random permutations performed during the permutation test for statistical significance between pre- and post-stimulus groups.
  • Frequency of Stimulation Train Delivered.
  • Number of Stimulation Pulses Delivered.

The PSTH analysis algorithm starts with stimulus detection, similarly to the LFP analysis. Then, it builds an array for every channel in the ROI and for each bin in the selected time windows (merging the previously defined pre- and post-stimulus time windows). It then counts the number of events (spikes) in each bin for every delivered stimulus, divides by the number of delivered stimuli, and calculates the frequency in Hz for data visualization. At this point, the algorithm removes the stimulus artifact tag (sometimes the stimulus artifact is mistakenly considered a spike) and performs two kinds of statistical validation. The first is a permutation test between the pre-stimulus and the post-stimulus groups. The second is a z-score statistic comparing the pre-stimulus group to each bin of the post-stimulus group. The algorithm generates a PSTH for each channel, marking significant bins with a red star. The output of the algorithm includes a .csv file with the results, the PSTHs for each channel as .png files, and a summary plot of all channels activity in colorscale as a .png file.

*Z = (post stim freq bin - pre stim freq mean) / pre stim freq stdev           Z>1.645 or Z<-1.645 for 95% significance

SPONTANEOUS ACTIVITY ANALYSIS

The Autorhythmic Cells Spontaneous Activity Analysis (ISI) panel allows to set three parameters:

  • Bin Size: The bin size used for ISI calculation and plotting.
  • ISI Bin Limit: The maximum ISI considered.
  • Total Time: The full length of the recordings.

The spontaneous activity analysis algorithm calculates the ISI for each channel in the ROI, the average firing rate ± SEM, the modal firing rate, CV and CV2. The outputs of the algorithm are .csv files containing both the ISI data and the features of each unit, and ISI plots for each channel as .png files. 

CV = stdev(ISI) / mean firing rate (ISI)                        CV2 = 2 |ISIn+1 - ISIn| / |ISIn1+ISIn|  

 

Technical info

Files in the repository should be grouped in two folders

  • NEUROPULSE: array.dat, channels ids table.csv, folderico.png, HD-MEA NEUROPulse.exe, HD-MEA NEUROPulse.py, img.png, img_map.png, NeuroPulseLogo.png, python.png
  • DATASET: example.brw, example.bxr, example_SA.bxr, ROI_LFP.bwcg, ROI_PCs.bwcg, ROI_PCs_stim.bwcg

follow instruction in EXAMPLE ANALYSIS PIPELINE.pdf to perform data analysis on given example files. 

Files

channels ids table.csv

Files (13.4 GB)

Name Size Download all
md5:4e15d590c8200e95b3496d51b35f70d9
8.4 kB Download
md5:8def4dc51f89c5e35d5136cc99d7ffe1
19.7 kB Preview Download
md5:3b3bf5efc6e12fa17528581080ad117b
31.1 kB Preview Download
md5:149b323a6d57ab269156ba46197e2c31
13.2 GB Download
md5:ce61afa8434a2ac162d8e1c008b3eb8f
53.3 MB Download
md5:f669090861a38d6267dfc37901688df0
35.1 MB Download
md5:ab5a40fe78fe689114091ebd9a972187
475 Bytes Preview Download
md5:78f63d9f5a5b1d6323c9084c2626c2ce
176.6 MB Download
md5:f4ba6ae4a628804a2ba973f0e2bcc8ff
59.4 kB Download
md5:5cc1e895ac7e37c9a0aa3f38b82b23c1
3.1 kB Preview Download
md5:e042b2220fdc193ec85ac3e649881c22
7.0 kB Preview Download
md5:542589588725a19950943569e238ff13
12.3 kB Preview Download
md5:6f24419a3f5658943288ec10030d2db7
8.7 kB Preview Download
md5:d4413e0707c9255a0c9ab2ebb1d892db
9.0 kB Download
md5:d816449456c467c3c420f7786c8c2e9d
6.5 kB Download
md5:898fc5b5709429ab0e036ee5702f255a
876 Bytes Download

Additional details

Software

Programming language
Python
Development Status
Active

References

  • 1- Kruse, Wolfgang, et al. "Optogenetic modulation and multi-electrode analysis of cerebellar networks in vivo." PloS one 9.8 (2014): e105589. https://doi.org/10.1371/journal.pone.0105589
  • 2- Mapelli, Jonathan, and Egidio D'Angelo. "The spatial organization of long-term synaptic plasticity at the input stage of cerebellum." Journal of Neuroscience 27.6 (2007): 1285-1296. https://doi.org/10.1523/JNEUROSCI.4873-06.2007
  • 3- Gagliano, G.; Monteverdi, A.; Casali, S.; Laforenza, U.; Gandini Wheeler-Kingshott, C.A.M.; D'Angelo, E.; Mapelli, L. Non-Linear Frequency Dependence of Neurovascular Coupling in the Cerebellar Cortex Implies Vasodilation–Vasoconstriction Competition. Cells 2022, 11, 1047. https://doi.org/10.3390/cells11061047
  • 4- Monteverdi A, Di Domenico D, D'Angelo E, Mapelli L. Anisotropy and Frequency Dependence of Signal Propagation in the Cerebellar Circuit Revealed by High-Density Multielectrode Array Recordings. Biomedicines. 2023; 11(5):1475. https://doi.org/10.3390/biomedicines11051475