ratPASTA v0.1.2


Monthly downloads



Processing Acoustic Startle Experimental Data

Used for processing data obtained from behaviour experiments studying acoustic startle response, a reflex to a loud sound, modulated by several brain regions. The input data is generated with PASTA (Platform for Acoustic STArtle), a DIY device made from a kitchen scale that measures the twitch of an animal standing on the device and records it as time-series data. The function of this package is to import all data, process it in accordance with default or custom metadata describing the experiment protocol, calculate measurements and visualize the results. The PASTA solution and this package are described in Virag et al. (2020) <doi:10.1101/2020.04.10.035766>.



R-based Awesome Toolbox for Platform for Acoustic STArtle

Travis build
status AppVeyor build
status Codecov test
coverage CRAN

ratPASTA is a package used for processing and visualising data from startle experiments in rodents. The input data for this package is created with a PASTA solution (Platform for Acoustic STArtle), described in detail here:

Virag, D., Homolak, J., Kodvanj, I., Babic Perhoc, A., Knezovic, A., Osmanovic Barilar, J., & Salkovic-Petrisic, M. (2020). Repurposing a digital kitchen scale for neuroscience research: a complete hardware and software cookbook for PASTA. BioRxiv, 2020.04.10.035766. https://doi.org/10.1101/2020.04.10.035766

Link to preprint


Install ratPASTA from CRAN:


…or install ratPASTA from Github:



Package includes the following functions:

  • loadStartleData() - loads and merges all pasta files (startle data)
  • basicStartlePlot() - creates a time-series plot
  • startlePlot() - returns several plots
  • summariseStartle() - returns a mathematical summary of the data
  • latencyPlot() - creates a list with two latency plots


For instructions on how to use this package read the vignette

Functions in ratPASTA

Name Description
loadStartleData Load Startle Data
ratpasta_demo Sample
datasummary global variables
summariseStartle Summarise Startle
latencyPlot Latency plot
startlePlot Startle Plot
basicStartlePlot Basic Startle Plot
map metadata
No Results!

Vignettes of ratPASTA

No Results!

Last month downloads


Type Package
License GPL-3
Encoding UTF-8
LazyData true
RoxygenNote 7.1.0
VignetteBuilder knitr
URL https://github.com/ikodvanj/ratPASTA
BugReports https://github.com/ikodvanj/ratPASTA/issues
NeedsCompilation no
Packaged 2020-07-04 14:50:54 UTC; ikodv
Repository CRAN
Date/Publication 2020-07-04 22:50:09 UTC

Include our badge in your README