-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGeissmann_Beckwith_mat_and_met.tex
143 lines (110 loc) · 8.81 KB
/
Geissmann_Beckwith_mat_and_met.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
% to compile do something like that:
% pref=Geismmann_Beckwith_mat_and_met && pdflatex $pref.tex && bibtex $pref.aux && pdflatex $pref.tex && pdflatex $pref.tex
\documentclass[a4paper,twoside,openright]{article}
\usepackage{amsmath}
\usepackage[utf8x]{inputenc}
\begin{document}
\section*{Fly stocks and rearing conditions}
Flies were raised under a 12~h light:12~h dark (LD) regimen at 25°C on standard corn and yeast media.
CantonS from Ralf Stanewsky (University of Münster, Germany) were employed for all experiments.
All analysed animals were socially naive, unless otherwise stated.
\section*{Behavioural experiments}
For all experiments, 7--8 days old pupae were sorted into glass tubes (70×5×3 mm [length × external diameter × internal diameter]) containing the same food used for rearing.
After eclosion, animals were sorted according to their sex and then the tubes were loaded into ethoscopes ``sleep arenas'' (20 animals per device)~\cite{geissmann_ethoscopes:_2017}. Three days of baseline were recorded before any treatment.
All experiments were carried out under LD condition, 50-70\% humidity, in incubators set at 2525°C and with \emph{ad libitum} access to regular food.
Animals that died during the experiment were excluded from the analysis, except for the longevity experiments.
To evaluate the effect of mating on sleep (Fig.~3), a naive male was introduced in the tube of each naive female and allowed to interact for 2~h, from ZT06 to ZT08 (zeitgeber time).
After the interaction, males were removed and the activity profile of the females was recorded for another 3.5~days.
The short duration of the interaction and the restrictive space of the glass tube reduces the probability of mating and only about 50\% of the flies underwent successful mating.
This setup provides the two necessary groups: mated females and females that were courted, but not mated.
Effective mating was scored as the presence of larvae in the food four days after the interaction.
The ``rotational module'' of the ethoscope platform was used to perform the 12~h dynamic sleep deprivation treatments shown in Figure~5.
Different durations of immobility were employed to trigger the rotation of the tube, as listed in the figure (from 10~s to 1000~s).
The effects of long lasting dynamic sleep deprivation shown in Figures~4 and 6 were tested using the ``optomotor module'', programmed with a 20~seconds immobility trigger.
Once a week, flies were transferred to fresh tube in order to ensure good quality food during the entire experiment.
For the experiment shown in Figure~6, sleep deprivation was stopped after 9.5~days of treatment and animals were allowed to recover for 3~days in the ethoscopes at 25°C to measure sleep rebound.
%
%
For the experiment shown in Figure~1C, behaviour of both males and females was recorded for seven days, then transferred to fresh tubes and recorded for another seven days.
In order to avoid confounding effects related to the location of the tube on sleep amount (\emph{e.g.} an ethoscope and incubator), the new position of all the tubes was systematically interspersed~\cite{hurlbert_pseudoreplication_1984}.
Namely, low and high sleepers from the same experiment and sex were paired as neighbours in a new arena and their behaviour was recorded for another week. Comparison was between days 2--7 and 8--13, ignoring the first day, and the day after the change of tube.
%
\section*{Behavioural scoring}
Immobility was scored by thresholding maximal velocity on ten second epochs, as previously described~\cite{geissmann_ethoscopes:_2017}.
Sleep was computed using the so-called five minute rule, according to which all immobility bouts longer than 300~s were counted as sleep bouts (including the first 300~s).
During mechanical sleep deprivation, velocity measurements subsequent to stimuli were masked in order to avoid false positive of fly movement~\cite{geissmann_ethoscopes:_2017}.
Specifically, data in the six seconds following the onset of each rotation were not considered for sleep scoring.
Sleep rebound shown in figure~5D and H was expressed as the difference between the sleep amount measured during rebound and the expected sleep amount. Expected sleep amounts were inferred by a linear regression between the reference baseline sleep and sleep during the rebound period, in the relevant control population. Formally, the homoeostatic rebound $H_i$ of an individual $i$ was expressed as:
\begin{align}
H_i &= R_i - \hat{R_i} \\
\hat{R_i} &= \alpha + \beta{} B_i
\end{align}
Where,
\begin{itemize}
\item $\hat{R}$ is the \emph{predicted} sleep \emph{after} treatment ($ZT \in [0, 3]$),
\item $R$ is the \emph{measured} sleep \emph{after} treatment ($ZT \in [0, 3]$),
\item $B$ is the sleep measured \emph{before} treatment ($ZT \in [0, 3]$), and
\item $\alpha$ and $\beta$ are the coefficients of the linear regression $R_C = \alpha + \beta{B_C}$ on the control group $C$.
\end{itemize}
\begin{align}
\alpha &= \bar{R_C} - \beta\bar{B_C} \\
\beta &= \frac{Cov(R_C, B_C)}{Var(B_C)}
\end{align}
Behavioural state (“quiescence”, “micro-movement” and “walking”) was defined for each consecutive minute of behaviour ($B$) according to the following rule:
\begin{align}
B =
\begin{cases}
quiescence, & \text{if } V_{max} < T_V \forall i\\
micro\text{-}movement, & \text{if } \sum^{i}{|X_i - X_{i-1}|} < T_d\\
walking, & \text{otherwise}
\end{cases}
\end{align}
Where,
\begin{itemize}
\item $V_{max}$ is the maximal velocity,
\item $T_V$ the validated threshold under which immobility is scored,
\item $X$ is the position along the tube and
\item $T_d$ is a threshold of 15 mm on the distance moved above which $walking$ is scored.
\end{itemize}
The $T_d$ was defined empirically based on the observation of a bimodal distribution of the total distance moved in a minute.
Due to the different amount of food and cotton wool in each tube, the space available inside each experimental tube may be slightly different between individual animals.
In order to compare flies position with respect to the boundary of their respective experimental environments, the animal longitudinal position was expressed relatively to the food (position = 0) and the cotton wool (position = 1) edges:
\begin{align}
position &= \frac{X - Q_{0.01}(X)}{Q_{0.99}(X - Q_{0.01}(X))}
\end{align}
Where, $Q_n$ is the quantile function.
First and last percentiles were used instead of minimum and maximum to avoid the possible effect of spurious artefactual detections beyond physical limits of the tube.
%
\section*{Dendrograms and hierarchical clustering}
The dendrograms in Fig.~3D and S2A are the result of a hierarchical clustering using the Unweighted Pair Group Method with Arithmetic Mean (UPGMA) method~\cite{sokal_statistical_1958}.
During an interval of time, the proportion of time spent by an animal in a behavioural state can be formulated as an empirical discrete probability density function.
In this context, the distance between each pair of animal was computed using the average of Bhattacharyya distances~\cite{bhattacharyya_measure_1943} over the entire day:
\begin{align}
D(p,q) &= \frac{\sum_{t \in T}{BD_t(p_t,q_t)}}{|T|} \\
BD_t(p_t,q_t) &= -\ln (BC(p_t,q_t))\\
BC(p_t,q_t) &= \sum_{x\in X} \sqrt{p_t(x) q_t(x)}
\end{align}
Where,
\begin{itemize}
\item $BD_t$ is the Bhattacharyya distance at a time interval $t$,
\item $T$ is the set of all tested time intervals: $T=\{[0, 0.25), [0.25,0.5), ..., [23.75, 24)\} h$,
\item $BC_t$ is the Bhattacharyya coefficient at a time interval $t$,
\item $p$ and $q$ are the observed distributions of behaviour for two different individuals, and
\item $X$ is a the set of discrete behaviours: $X = \{quiescent, micro\text{-}movement, walking\}$.
\end{itemize}
%
\section*{Statistics}
Unless otherwise stated, the shaded areas around the mean (\emph{e.g.} Fig.~3A and B), and the error bars (\emph{e.g.} Fig.~5B--D and F--H) are 95\% confidence interval computed using basic bootstrap resampling~\cite{efron_bootstrap_1979} with N=1000.
Median lifespan confidence intervals were estimated accounting for censored data~\cite{akritas1986bootstrapping}.
\paragraph*{Regressions}
The lines in figures~1C and 2B are linear regression and the shaded areas are 95\% parametric confidence intervals.
\paragraph*{Survival curves}
Figure~4B and C are Kaplan-Meier curves.
The shaded areas represent a 95\% confidence interval.
\paragraph*{Software}
All data analysis was performed in \texttt{R}~\cite{r} using the rethomics framework~\cite{geissmann_rethomics:_2018}.
Figures were drawn using \texttt{ggplot2}~\cite{wickam_hadley_ggplot2_2009} and ternary representations, in figures~2E and 3C. were generated with \texttt{ggtern}~\cite{hamilton_ggtern:_2017}.
% `Science.bst` from http://www.sciencemag.org/site/feature/contribinfo/prep/TeX_help/index.xhtml
\bibliographystyle{Science}
\bibliography{Geismmann_Beckwith_mat_and_met}
\end{document}