Skip to content

clay-j/ZANTIKS_YMaze_Analysis_Script

Repository files navigation

Zantiks Y-Maze Analysis Script

This is an R script designed to batch analyse raw data files output by Zantiks behavioural research equipment Y-maze protocol using zebrafish (Danio rerio). Please read the instructions below before use. If you use this script to analyse data that goes on to be published please cite this work appropriately.

Instructions

Prerequisites

  1. Download and install R from https://www.r-project.org/
  2. Download and install RStudio from https://www.rstudio.com/
  3. On this github repository, go to the top of the page and click the green "Clone or download" button and then click "Download Zip".

Launch RStudio and install dependencies

  1. On your local machine, navigate to where "ZANTIKS_YMaze_Analysis_Script-master.zip" was downloaded and extract the contents.
  2. Launch RStudio.
  3. Install dependencies: Inside the R console window, type install.packages(c("tidyverse", "lubridate")) and press enter.

Open and run the script

  1. Inside a filebrowser on your local machine open the "ZANTIKS_YMaze_Analysis_Script-master" directory.
  2. You will find example data in the "data" directory inside the main "ZANTIKS_YMaze_Analysis_Script-master" directory. Feel free to use this to test the script. Once you have finished testing, please move the example data out of the "data" directory.
  3. Copy and paste the data that you would like to analyse into the "data" directory.
  4. Inside RStudio click File > Open File
  5. Navigate to the "ZANTIKS_YMaze_Analysis_Script-master" directory, select script.R and press Open.
  6. Inside the script window in RStudio, change the path of input and output to the location of the "data" and "output" directories, which are found inside the main "ZANTIKS_YMaze_Analysis_Script-master" directory.
  7. Run the script.
  8. Your analysed data will be located in the "output" directory inside the main "ZANTIKS_YMaze_Analysis_Script-master" directory.

N.B.

  • Data must be in .csv format
  • Fish IDs can only contain numbers

Reference

Fontana, B. D., Cleal, M., Clay, J. M., & Parker, M. O. (2019). Zebrafish (Danio rerio) behavioral laterality predicts increased short-term avoidance memory but not stress-reactivity responses. Animal Cognition. https://doi.org/10.1007/s10071-019-01296-9

About

An R script to batch analyse Zantiks Y-Maze files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published