Skip to content

A tool for analysis of behavioral data in the 4 quadrant open field olfactory valence test.

License

Notifications You must be signed in to change notification settings

jamesrhowe/4FieldAnalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Header

4FieldAnalysis

Build Status Coverage Status License: MIT

4FieldAnalysis (4FA) is a dynamic dashboard application for data analysis, written in R and implemented using the Shiny framework. This application is designed to analyze behavioral data gathered using the 4 quadrant open field chamber behavioral assay to find the innate valence and fear/anxiety response associated with a given olfactory or optogenetic stimulus.

Initialization

Implementations

This tool has 2 current implementations.

Online/Remote: Hosted at https://jamesrhowe.shinyapps.io/4fieldanalysis/. It requires no user installation or initialization.

Local: Hosted on a local repository and accessible from the command line. Requires user installation and setup.

Local Installation

Navigate to the directory containing your local repository in the terminal by inputting cd insert/path/here

Initialize R in the terminal by simply inputting the letter R, then input install.packages(c("car", "colorRamps", "covr", "dplyr", "evaluate", "ggplot2", "multcomp", "nlme", "reshape2", "scales", "shiny", "shinythemes")) and follow the subsequent directions to install the following packages (which are also included in the packrat directory) required for the application to function:

Local Initialization

Initialize the application in R using the command shiny::runApp('4-quadrant-analysis') and the application should open itself in your browser automatically. If the application does not open in your browser automatically, copy the server port identity into your browser.

Usage

Upload and Analyze Data

On the control panel, click the "Select" button and and choose a text file output from the 4 quadrant open field chamber. Replace the placeholder text for the baseline and stimulus identities with the trial's relevant conditions, and choose the periods of time for analysis before and during the stimulus. To perform all analyses, simply click the "Analyze" button. This application includes four 30-minute sample trials for testing in the test-data directory.

Select Measures of Interest

This application can analyze both individual and grouped trial performance in the 4 quadrant open field chamber, in full and subdivided into control and stimulus conditions.

For each individual trial, the application can display the entire path traveled by the mouse in the chamber over the time series of interest. It can also track the instantaneous velocity at each time point, and summarize it over the course of the time series in a single graph.

This application can also estimate means and variances for each group of trials, graph them, and calculate the resulting statistics, and then make comparisons between each group.

The application also displays time series information for both grouped and individual trials in two different formats. The first is as a temporal raster plot, coloring based on the mouse's location or velocity at each time point. The second is a density function, showing the mean or cumulative time spent either freezing or in a location of interest.

Download Results and Graphics

All outputs can be downloaded individually. The total summarized results output can be downloaded from the control output page, as well as all individual time series analyses for the full length of the trial, its baseline period, and its stimulus period. Statistical comparisons between and within groups can be downloaded on the pages for their respective metrics. The application can automatically detect whether a paired t-test or a mixed design 2-way ANOVA is most appropriate.

All displayed graphics can be downloaded on the pages where they appear, and the downloaded version will appear exactly the same as the version displayed. Most graphics' proportions can be manipulated just by changing the width of the screen. All graphics are print quality (300 dpi).

License

4FA may be used, copied, or modified without restrictions under the terms of the MIT License.

Releases

No releases published

Packages

No packages published

Languages