Learn R Programming

phase (version 1.2.9)

Analyse Biological Time-Series Data

Description

Compiles functions to trim, bin, visualise, and analyse activity/sleep time-series data collected from the Drosophila Activity Monitor (DAM) system (Trikinetics, USA). The following methods were used to compute periodograms - Chi-square periodogram: Sokolove and Bushell (1978) , Lomb-Scargle periodogram: Lomb (1976) , Scargle (1982) and Ruf (1999) , and Autocorrelation: Eijzenbach et al. (1986) . Identification of activity peaks is done after using a Savitzky-Golay filter (Savitzky and Golay (1964) ) to smooth raw activity data. Three methods to estimate anticipation of activity are used based on the following papers - Slope method: Fernandez et al. (2020) , Harrisingh method: Harrisingh et al. (2007) , and Stoleru method: Stoleru et al. (2004) . Rose plots and circular analysis are based on methods from - Batschelet (1981) and Zar (2010) .

Copy Link

Version

Install

install.packages('phase')

Monthly Downloads

225

Version

1.2.9

License

MIT + file LICENSE

Maintainer

Lakshman Abhilash

Last Published

March 9th, 2023

Functions in phase (1.2.9)

binData

Bin activity data to desired intervals
allActograms

Generate actograms
allPeriodogramsAct

Periodogram analysis for activity data
anticipationAct

Compute anticipation for activity data
allSomnograms

Generate actograms for sleep data (Somnograms)
indPeriodogramAct

Periodogram plot for activity data of individual flies
indActogram

Plot actogram of individual fly
CoM

Objectively quantify and visualise phases and calculate consolidation in pre-defined time-windows
allPeriodogramsSleep

Periodogram analysis for sleep data
df

Example DAM data
profilesSleep

Compute and plot sleep profiles
indPeriodogramSleep

Periodogram plot for sleep data of individual flies
rosePlotsSleep

Generate rose plots for averaged sleep data
sleepOnsetBoutLength

Computes, tabulates and plots day-time and night-time onset of sleep bouts and their respective lengths
rosePlotsAct

Generate rose plots for averaged activity data
peakIdentifier

Phase identifier for activity data
sleepStages

Plot sleep stages in individual flies
trimData

Trim data for downstream analyses
profilesAct

Compute and plot activity profiles
sleepData

Equivalent of binData() but for sleep data
sleepStat

Computes and tabulates day-time and night-time sleep statistics
indSomnogram

Generate actograms for sleep data (Somnograms) for individual flies
transitionProbs

Plot and generate data for transition frequencies between sleep stages