The ERGtools2 package: a toolset for processing and analysing visual electrophysiology data.
Lindner M.
PURPOSE: To introduce ERGtools2, an open-source R package for processing, analysing and long-term storing visual electrophysiology data. METHODS: A dataset comprising Electroretinogram (ERG) recordings of C57Bl/6J mice, subjected to standard ISCEV stimuli, was used to present the functionality of ERGtools2. ERGtools2 stores and organizes all recordings, metadata, and measurement information from an individual examination in a single object, maintaining raw data throughout the analysis process. RESULTS: A standard workflow is presented exemplifying how ERGtools2 can be used to efficiently import, pre-process and analyse ERG data. Following this workflow, basic ERG measurements and visualisation of a single exam as well as group statistics are obtained. Moreover, special use cases are described, including for the handling of noisy data and the storage of data in the HDF5 format to ensure long-term preservation and accessibility. CONCLUSIONS: ERGtools2 provides a comprehensive, flexible, and device-independent solution for visual electrophysiology data analysis. Its emphasis on maintaining raw data integrity, combined with advanced processing and analysis capabilities, makes it a useful tool for preclinical and clinical research applications. The open-source nature and the use of open data formats promote reproducibility and data sharing in visual neurosciences.