We tested the routines on ABR waveform responses to a click series, beginning at 75 dB and stepping down in 5 dB increments to 5 dB. These data were obtained as previously described19. We also tested the tool on tone pip data and obtained similar results. ABR data from most ABR systems can be exported as .txt (ASCII) files. We loaded ABR ASCII files onto a computer and opened them in RStudio as described in the protocol. After running the FindPeaks.R routine in batch form, we obtained sample waveforms with automated labeling (Figure 1) and a .csv file with the results. The results were reviewed to remove irrelevant peaks. To validate the automated labeling, we also used the ABR program capability to manually label the first five peaks and troughs on each waveform obtained with the click series described above. The experimenter performing this task had 2 years of experience recording and analyzing ABR data. Figure 2 shows this comparison, with the automated FindPeaks.R data in red and the manually obtained data in black. Each trace represents the data from a single mouse. The average for both methods with one standard deviation is also displayed. The results obtained by FindPeaks.R correlate strongly with results obtained manually (see Supplementary Figure S4).

Figure 1: Representative waveform response to a 75 dB click stimulus for a young F1 mouse. Latency in milliseconds is plotted on the x-axis, and amplitude in microvolts is plotted on the y-axis. The peaks were automatically identified with FindPeaks.R and are labeled in red, whereas the troughs are labeled in blue. Please click here to view a larger version of this figure.

Figure 2: Comparison of the data obtained from the manually identified peaks to the data provided by the FindPeaks.R analysis. (A,C,E,G,I) Amplitudes in microvolts and (B,D,F,H,J) latencies in milliseconds are plotted for sound levels between 5 dB and 75 dB (x-axis, all graphs) for peaks I-V in the waveforms obtained for click stimuli presented to 12 mice. The manually obtained values (black) are compared to the same datasets analyzed with FindPeaks.R (red). The averages are plotted as heavy lines, with the shaded region representing one standard deviation. No differences were seen between the methods when assessed with the Kruskal-Wallis rank sum test (A, difference = 0.0547977 ± 0.0010028, max = 0.96, p = 0.9216; B, difference = −0.0001734 ± 0.0001214, max = 0.04, p = 0.8289; C, difference = −0.0212209 ± 0.0006806, max = 0.92, p = 0.9687; D, difference = −0.0011047 ± 0.0001556, max = 0.06, p = 0.771; E, difference = −0.0323077 ± 0.0006169, max = 0.66, p = 0.899; F, difference = −0.0072189 ± 0.0001460, max = 0.04, p = 0.8644; G, difference = 0.201754 ± 0.0007407, max = 0.64, p = 0.9312; H, difference = −0.0007018 ± 0.0001717, max = 0.09, p = 0.8013; I, difference = 0.0347561 ± 0.0007343, max = 1.05, p = 0.8856; J, difference = −0.0078049 ± 0.0002762, max = 0.16, p = 0.886), and the results were highly correlated (chi-squared values: A, 0.009696; B, 0.046684; C, 0.0015395; D, 0.084742; E, 0.016102; F, 0.029153; G, 0.0074604; H, 0.063322; I, 0.020699; J, 0.020544; differences presented as mean ± SEM; max = absolute maximum difference). Please click here to view a larger version of this figure.
Supplementary Figure S1: Analysis with FindPeaks.R. (A) Selecting the working directory (see protocol step 3.2); (B) loading the program (see protocol step 3.3). Please click here to download this File.
Supplementary Figure S2: Script output and commands for the analysis of the waveforms. Commands for (A) individual files and (B) batch processing. (C) Output PDF file showing waveforms with labeled peaks and troughs. See protocol step 3.4. Please click here to download this File.
Supplementary Figure S3: Verification of the analysis. (A) Loading the waveform data (see protocol step 4.1). (B) Location of the Run App button. The sample data file is also indicated. (C) Shiny window with a waveform. In this instance, the sound level is 75 dB, as entered in the top window. Clicking on a desired peak and the following trough records the data for the amplitude and latency in the table (protocol step 4.6). Peak 3 data are shown. Please click here to download this File.
Supplementary Figure S4: Comparison of the individual data obtained from the manually identified peaks to the data provided by the FindPeaks.R analysis. (A,C,E,G,I) Amplitudes in microvolts and (B,D,F,H,J) latencies in milliseconds are plotted for sound levels between 5 dB and 75 dB (x-axis, all graphs) for peaks I-V in waveforms obtained for click stimuli presented to 12 mice. Each animal is labeled with a unique color, as shown in the legend. The data obtained with FindPeaks.R are labeled with solid colors, while the data obtained manually are labeled with less saturated versions of the same colors. While both data sets are plotted in this figure, when they are identical, only one line is apparent. Please click here to download this File.