This repository contains all data and code used in the study:
"Cardiovascular adjustments during experimentally induced retraction and locomotion in the invasive terrestrial snail Cornu aspersum (Müller, 1774)"
This repository provides a reproducible workflow to quantify cardiac activity and locomotion speed in the land snail Cornu aspersum.
The approach combines optocardiography based on pixel intensity changes, automated stripe tracking on a snail treadmill using TrackMate, and deep learning-based segmentation with StarDist 2D.
Signal processing and heart rate variability (HRV) analyses are implemented in R to investigate the relationship between physiological adjustments and experimentally induced behavioral states, such as retraction and locomotion.
data/: Raw and processed datasetsscripts/: R scripts for data extraction and analysisimagej/: ImageJ macros for pixel intensity extraction and stripe detectionFigures/: Optocardiograms and Experimental setup images for Optocardiography
All scripts conducted in ImageJ and R are provided in sequential order:
01_heart_pixel_data_obtention.imj01_Optocardiography.R02_Extracting_HRV_metrics.R03_HR_HRV_vs_behavioral_states_analyses.R02_Macro_Trackmate_stripe_tracking.ijm04_speed_curation_and_speed_vs_heartrate_analyses.R05_Body_size_vs_HR_analyses.R
- R (version 4.4.2)
- Required packages:
- tidyverse
- pracma
- gridExtra
- readxl
- signal
- writexl
- RHRV
- lme4
- MuMIn
- scales
- lmodel2
- Fiji-ImageJ
- Required plugins:
- Java
- CSBDeep
- TensorFlow
- TrackMate
- StarDist 2D
- TrackMate-StarDist 2D
All data and code required to reproduce the analyses are included in this repository.
E. Alejandro Pardo-Sarmiento
- The source code in this repository is licensed under the MIT License.
- All data and figures are licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).