Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Bringing Statistics Up to Speed with Data in Analysis of Lymphocyte Motility

  • Kenneth Letendre,

    Affiliations Department of Molecular Genetics and Microbiology, University of New Mexico School of Medicine, Albuquerque, NM, United States of America, Department of Computer Science, University of New Mexico, Albuquerque, NM, United States of America

  • Emmanuel Donnadieu,

    Affiliation Inserm, U1016, Institut Cochin, Université Paris Descartes, Sorbonne Paris Cité, Paris, France

  • Melanie E. Moses ,

    Contributed equally to this work with: Melanie E. Moses, Judy L. Cannon

    Affiliations Department of Computer Science, University of New Mexico, Albuquerque, NM, United States of America, Department of Biology, University of New Mexico, Albuquerque, NM, United States of America, Santa Fe Institute, Santa Fe, New Mexico, United States of America

  • Judy L. Cannon

    Contributed equally to this work with: Melanie E. Moses, Judy L. Cannon

    jucannon@salud.unm.edu

    Affiliation Department of Molecular Genetics and Microbiology, University of New Mexico School of Medicine, Albuquerque, NM, United States of America

Abstract

Two-photon (2P) microscopy provides immunologists with 3D video of the movement of lymphocytes in vivo. Motility parameters extracted from these videos allow detailed analysis of lymphocyte motility in lymph nodes and peripheral tissues. However, standard parametric statistical analyses such as the Student’s t-test are often used incorrectly, and fail to take into account confounds introduced by the experimental methods, potentially leading to erroneous conclusions about T cell motility. Here, we compare the motility of WT T cell versus PKCθ-/-, CARMA1-/-, CCR7-/-, and PTX-treated T cells. We show that the fluorescent dyes used to label T cells have significant effects on T cell motility, and we demonstrate the use of factorial ANOVA as a statistical tool that can control for these effects. In addition, researchers often choose between the use of “cell-based” parameters by averaging multiple steps of a single cell over time (e.g. cell mean speed), or “step-based” parameters, in which all steps of a cell population (e.g. instantaneous speed) are grouped without regard for the cell track. Using mixed model ANOVA, we show that we can maintain cell-based analyses without losing the statistical power of step-based data. We find that as we use additional levels of statistical control, we can more accurately estimate the speed of T cells as they move in lymph nodes as well as measure the impact of individual signaling molecules on T cell motility. As there is increasing interest in using computational modeling to understand T cell behavior in in vivo, these quantitative measures not only give us a better determination of actual T cell movement, they may prove crucial for models to generate accurate predictions about T cell behavior.

Introduction

Time-lapse two photon microscopy provides stunning video of the 3-dimensional movement and interaction of immune cells within living tissue [14]. This technology affords us an unprecedented view into the behavior of immune cells in vivo. An on-going question is how best to analyze quantitative data extracted from such videos in order to more accurately describe T cell motility and determine differences in behavior across different T cell populations.

There has been increasing interest in precise quantitative analysis of T cell motility to parameterize computational models of immune responses [58]. The movement of thousands of T cells can be captured in videos of two-photon images, and the speeds and turning angles of each T cell can be calculated. However, there are difficulties in obtaining unbiased analyses of in vivo motility data. While the speed of a cell during an observation seems obvious to calculate (by dividing the distance a cell has traveled by the time the cell has been tracked in the video; see [4,9,10]), two different approaches have been used to estimate both speed and turning angle. In a review, Beltman, Maree and De Boer [9] highlighted “cell-based” versus “step-based” analyses. The most commonly used method is cell-based analysis which calculates the mean or median cell speed or migration angle for each continuously tracked cell. These ‘cell-based parameters’ are the unit of analysis with each derived mean or median treated as one data point. On the other hand, step-based analysis pools all observations of individual cells across all time steps without regard to the identity of individual cells that produced those observations ('step-based parameters'). We show below that these analyses can generate very different estimates of cell speed and turning angle. Because researchers use cell speed and turning angle to estimate motile behavior and calculate “motility coefficients” to characterize the scanning capacity of T cells [11,12], using cell-based versus step-based approaches can significantly affect our understanding of lymphocyte motility.

There is an additional difficulty in analyzing in vivo T cell movement using two-photon microscopy due to the complexity of experimental designs. T cells must be visualized using fluorescent vital dyes or tagging by fluorescent proteins. Fluorescent cells are introduced into recipient animals, multiple fields within multiple tissues are visualized, and the process is repeated for reproducibility. Motility can be affected by environmental conditions such as oxygenation, blood flow, and temperature [13]. The fluorescent dyes commonly used to visualize T cells can also affect motility. Dyes are chosen to balance the need for fluorescence intensity against the potential phototoxicity [13]. To control for potential confounding effects of the dyes methodologically, researchers often repeat experiments with dyes inverted with respect to the experimental cell populations [1,1416]. However, few studies report sample sizes or quantitative results for these repeated trials, specific dye effects have not been quantitatively detailed, nor have methods been proposed to verify that dye effects are appropriately controlled for so that they do not alter quantitative or qualitative conclusions from experiments.

Finally, a standard statistical treatment of T cell motility data has not been established. In order to detect effects of specific signaling pathways on T cell motility, researchers compare motility of WT and gene-deleted populations. While many studies have used the Student’s t-test to detect differences [14,16,17], some studies have also used non-parametric techniques to analyze motility of T cell populations [4,13,17]. To date, there has been no systematic discussion of what statistical test is appropriate for analyzing T cell motility parameters.

In our current study, we compare the motility of WT T cells versus PKCθ-/-, CARMA1-/-, and CCR7-/- T cells as well as PTX treated T cells to determine the role of individual molecules in regulating T cell motility. We analyze these data using the commonly used t-test and Mann-Whitney U test to demonstrate the differences between the results obtained by these tests and the techniques we recommend, as well as to illustrate how these tests are inappropriate. These tests are inappropriate in analysis of T cell motility data because of the dependence introduced into the data by the experimental design, which these tests cannot account for. Furthermore, parametric tests such as the t-test assume that the residuals of the analysis are normally distributed, an assumption that T cell motility data often fails to satisfy. Non-parametric tests make no assumptions about the distribution of data or the residuals of these analyses and are therefore more appropriate for data for which the assumption of normality is violated. We show for the first time a method to combine the biologically relevant cell-based analysis with the statistical power of step-based data. We formally show the precise effect of specific dyes on T cell motility, and demonstrate the use of factorial ANOVA to statistically control for previously unaccounted for dye effects. We also suggest alternatives to the typically used parametric Student’s t-test for obtaining non-parametric estimates and p-values, in analysis of non-normally distributed data such as T cell speeds and migration angles. Readily available statistical tools (we use JMP 10.0.0 http://www.jmp.com but many others are available) allowed us to generate more accurate estimate measures of T cell motility in vivo. These more accurate estimates enhance our ability to identify how molecular regulators modulate T cell motility within lymph nodes, and they also provide better data to parameterize computational models. As researchers in this field make large investments to obtain detailed data afforded by two-photon microscopy, greater rigor in statistical analysis combined with better reporting methods can increase the reliability and reproducibility of published findings, addressing recently highlighted problems with statistical analyses and reporting [18,19].

Material and Methods

Ethics statement

The protocol was approved by the IACUC at the University of New Mexico (protocol # 10–100487). The breeding and maintenance of mice used in this research conform to the principles outlined by the Animal Welfare Act of the National Institutes of Health. All efforts were made to minimize suffering with use of ketamine and xylazine when appropriate. Euthanasia was performed by isofluorane overdose.

Mice

C57BL/6 mice, B6.PKCθ-/-, and B6.CCR7-/- mice were from Jackson Laboratories (Bar Harbor, ME). B6.CARMA1-/- animals were a gift from Dr. Marisa Alegre (University of Chicago). All mice were bred and/or maintained in a specific pathogen-free condition in barrier facilities (Albuquerque, NM).

Two photon imaging of explanted lymph nodes

For the WT:PKCθ-/-; WT:CARMA1-/-, SuB and PTX experiments, T cells were purified by nylon wool exactly as previously described [20] and purified T cells labeled with either 1μM CFSE (Invitrogen) or 5 μM CMTMR (Invitrogen, Carlsbad, CA). Both WT and knockout or PTX-/suB- (from Sigma Aldrich, St. Louis, MO) treated T cells were labeled with both CFSE and CMTMR to account for dye effects. 5 to 10 x106 labeled T cells were injected I.V. into recipient mice and inguinal lymph nodes were removed 15–18 hours later and imaged using two photon-imaging. For PTX experiments, T cells were treated at a concentration of 5 to 10 ng/mL cells/mL with PTX (SIGMA, P159-40UG) or suB (SIGMA, P7208-50UG) at 5.106/mL for 10 minutes in DMEM 10% FCS following the protocol described by [21].

WT:PKCθ-/- and WT:CCR7-/- imaging experiments were previously published. WT:PKCθ-/- experiments are described in Cannon et al., 2013; WT:CCR7-/- raw data (microscopy acquisitions) were taken from a published study [14] and reanalyzed. These experiments used cells dyed with 1 μM CMFDA or 2 μM fura-2 AM from Invitrogen (Carlsbad, CA) and imaging is described in [14]. The structure of the data is presented in Fig 1 and S1, S2 and S3 Figs.

thumbnail
Fig 1. Experimental design and resulting data structure for WT vs PKCθ-/- experiments.

Data on PKCθ-/- (KO) and wild-type (WT) T cell motility were collected during experiments on 5 days, using 6 total mice, from which 7 total lymph nodes were extracted, with observation in 9 total microscopic fields, in which 4,458 total tracks were observed, containing 131,638 total step observations.

https://doi.org/10.1371/journal.pone.0126333.g001

WT:CARMA1-/- experiments were conducted with a 2-photon microscope in the Fluorescence Microscopy Facility in the UNM Cancer Center with a mode locked Ti:Sapphire infrared laser (Coherent Ultra II; tunable from 680–1080 nm; avg. power 3.5 W) for multiphoton fluorescence excitation. The microscope stand is a Zeiss Axiovert 200 with motorized XY stage and IR-corrected long working distance objectives (25X:multi-immersion and 40X:water immersion) and image acquisition via a Zeiss LSM510 scanhead. Ex vivo tissue and organs are maintained during microscopic observation in a stage microincubator system (LCI-Live Cell Imaging) equipped with heating, humidity, CO2 atmosphere and perfusion. Explanted lymph nodes were placed on a glass cover-slip in the chamber. The sample is perfused with a 37°C solution of DMEM (phenol red free, Gibco) bubbled with 95% O2 and 5% CO2. T cell behavior within a lymph node was monitored in the T cell area at a minimum of 50μm below the surface of the node. For 4D analysis of T cell motility, multiple stacks in the z axis (z step = 3μm) were acquired every 15–20sec (depending on the number of z stacks acquired) for 15–50 min, with an overall field thickness of 40–60μm. Cell motility was analyzed with Imaris software (version 6; Bitplane). Tracks that lasted fewer than 3 time steps (corresponding to tracks lasting less than 100 seconds using the duration filter in Imaris) were not taken into account in the analysis. Length filter (threshold of 17μm = 3 times the diameter of the cell), and displacement2 filter (threshold of 300μm2 = 17μm x 17μm) were also used to discard tracks of non-motile cells in the PKCθ and CARMA1 data sets. Videos were made by projecting the 4D information along the z axis in a single plane.

Statistical methods

Student's t-test.

The following simple equation describes the values of our data in two groups: (1) where yij is each of our 1…j observations in each of our 1…i groups (i = 2 in this case; or if we were performing one-way ANOVA, i ≥ 3); μ is the overall mean; μi = μ + αi is the mean for each group i; and eij is an error term for the variance left unexplained by our two groups (i.e. the residuals, or how much the value of each yij is above or below the group mean μi). For the t-test, the assumption of normality requires that eij are distributed as N(0,σ2) (according to a normal distribution with mean zero and variance equal to the sample variance σ2 [22]). Eq (1) amounts to a model describing our observations yij as the sum of the population mean μ1 or μ2 for our two populations of cells plus random deviation from that mean for each observation. We wish to know with what degree of confidence we can say that our population means μ1μ2; a p-value gives us this confidence. (For more detail on the calculation of p-values see [22].)

Mann-Whitney U Test, and Non-Parametric Methods.

The Mann-Whitney U test is a non-parametric counterpart to Student's t-test. In this test, observations are ordered from lowest to highest value, and assigned ranks from the first to the last value in this ordering, allowing estimates of differences in groups without regard to the magnitude of differences in values in the sample. Conover & Iman [23] have suggested rank transformation of data as a general technique to apply non-parametric tests using analyses designed for parametric statistics. Non-parametric tests such as Mann-Whitney U test and the Kruskal-Wallis test for differences in median, rather than mean, values as means are more heavily influenced by outliers in non-normal data. Basic formulas for the non-parametric methods are identical to those for the parametric methods. Calculations are performed on rank-transformed data.

Factorial ANOVA.

We control for the effects of the fluorescent dyes on cell motility by including the dyes and their interactions with our cell populations as factors in factorial ANOVA. This allows us to examine the effects of different dyes on lymphocyte motility and simultaneously control these effects while estimating the effects of the cell populations of interest.

We can express the resulting model: (2) where μ is the overall mean; αi is the effect of our cell populations; βj is the main effect of the dyes; and αβij is the interaction of the cell populations and the dyes [22]. We repeated this analysis using rank-transformed speeds and migration angles in order to obtain non-parametric estimates.

Mixed Modeling.

To combine cell-based and step-based analyses, we used the track ID provided by Imaris as a predictor to control for individual cell behavior. Because differences amongst tracks within a WT or knockout population are not only factors we imposed experimentally, and because the cells we sampled are a sub-sample of all the cells we might have observed, we treated this as a nuisance variable ([22], p. 33) that we control by entering it into our model as a random effect variable, which mathematically incorporates the effect of track ID into the error term, rather than as a fixed effect of the model. Statistical control for track ID allows our model take into account the fact that individual cells may move differently than others, and also importantly, the fact that individual tracks have different durations, and thus different sample sizes of instantaneous steps. Our model, which now contains both fixed and random effects, is an example of mixed model ANOVA.

We add our variables containing unique IDs for each cell to Eq 2 giving: (3) where γk is the random effect of individual cell behavior for each of our 1 … k observed cells, assuming that γk is independently distributed according to N(0,σγ2) and that {γk} is independent of {eijk} [22]. We repeated this analysis using rank-transformed speeds and migration angles respectively in order to obtain non-parametric estimates.

Nested Factors.

We enter date IDs, mouse, lymph node, and field, with the date as our top level random effect in this analysis. The other random effects we enter are nested within date, and within each other to match the hierarchical structure in our data (see Fig 1). We enter mouse IDs nested in date; lymph nodes nested in mouse and date; fields nested in lymph node, mouse, and date; and finally cells nested in field, lymph node, mouse and date. (See S5 Fig sfor model specification in JMP.) It is important to ensure that all the IDs at each level are unique (similar to our treatment of the cell IDs, our unique mouse IDs are concatenated strings of the date of observation and the mouse ID). Note that if there is perfect overlap between any of the nested levels, such as only one mouse used on each date of observation, the lower level variable will take up all the variance explained by the other level. This was the case in our CARMA1 dataset, for example, and we therefore excluded date from our nested analysis of these data.

We repeated this analysis using rank-transformed speeds and migration angles in order to obtain non-parametric estimates.

Data and tool sharing

We have made our statistical analysis procedure available at the following website: http://stmc.health.unm.edu/tools-and-data/. The minimal dataset underlying this paper is also available at http://stmc.health.unm.edu/tools-and-data/index.html as comma-separated values (.csv) files which contain track data required to reproduce statistical analyses. Raw images files are available from the corresponding author upon request.

Results

Our goal is to identify molecular regulators that modulate T cell motility within lymph nodes. Lack of CCR7 and pertussis toxin (PTX) inhibition of CCR7 and associated chemokine receptors have shown that CCR7 and chemokine receptor signaling is key to driving T cell motility within LNs [12,14,24]. We recently showed that PKCθ is activated downstream of CCR7 [20], and CARMA1 is an interacting partner of PKCθ [25]. To determine the effect of each signaling molecule on T cell motility, we compared the motility of WT T cells with T cells deficient in PKCθ, CARMA1, and CCR7 (data from [14,20]). We purified and visualized T cell motility using 2-photon microscopy of each population as described in the Methods. We calculated typical motility parameters such as speed and turning angles of individual cells in order to determine whether the lack of PKCθ, CARMA1, or CCR7 changed T cell motility. We also used PTX to inhibit T cell motility and used a non-active subunit B alone (suB) as the WT control.

To formally assess whether parametric or non-parametric statistical tests should be used, we analyzed speed and turning angle distributions of WT T cells moving within LNs. T cell motility data—both migration speeds and angles, and particularly in step-based data—are not normally distributed, thus parametric tests like the t-test would be incorrect, requiring use of non-parametric statistical tests. Fig 2 and [1,26] show non normal distribution of instantaneous speed and turning angles; Fig 2 and [10] show non-normal distribution of instantaneous speeds. Thus, we performed the Mann-Whitney U test (for non-parametric data) for comparison to the Student's t-test (parametric data) on each of our four datasets: WT:PKCθ-/-; WT:CARMA1-/-; WT:CCR7-/-, and SuB:PTX. For each of the analyses we describe below, we repeat the analysis with rank-transformed data to obtain non-parametric estimates and p-values.

thumbnail
Fig 2. Distribution of step-based T cell speeds and migration angles in mouse lymph nodes.

Histograms showing the distribution of motility parameters calculated from 2P microscopic observation of PKCθ-/- and wild-type T cells: A) speeds (in microns/minute) and B) migration angles (in degrees).

https://doi.org/10.1371/journal.pone.0126333.g002

Using the Student’s t-test, we find that PKCθ-/-, CARMA1-/-, CCR7-/, and PTX treated T cells all showed statistically significant differences from WT T cell speeds (Table 1) as well as turning angles (Table 2). We find that the Mann-Whitney U test produced lower estimates for both speeds (Table 1) and migration angles (Table 2). This difference in estimates between the t-test and Mann-Whitney U test reflects the non-correspondence of the mean (t-test) and median (Mann-Whitney) due to the non-normality of these data. While the estimates of speed and turning angle are different, the magnitude of differences in the estimates (i.e. the effect sizes) as well as significance are generally similar with the Mann-Whitney U test compared to those obtained by Student's t-test.

Control for dye effects: use of the factorial ANOVA

In order to compare WT and knockout populations of T cells within the same lymph node, we used the commonly used CFSE and CMTMR dye combination. Because of the potential effect of different dyes on motility, we reversed cell-type and dye combinations between observations to balance the numbers of experiments performed with each dye. However, perfectly balancing observation of the various combinations of cell type with dye is next to impossible as there is no guarantee that the exact same number of cells will appear in the field each day, nor that cell tracks will all be equally long on one day or another. For example, while we made an effort to balance our observations of cell type and dye, due to chance differences in the success of individual observations and the numbers of cells observed in each experiment, among the 122,293 observations (individual time step for a single cell track), for WT:PKCθ-/- experiments, we have 11,940 steps from 543 tracks WT/CFSE, 49,717 steps from 1613 tracks WT/CMTMR, 57,751 steps from 1797 tracks PKCθ-/-/CFSE, and 12,230 steps from 505 tracks PKCθ-/-/CMTMR observations. The only way to guarantee that samples are perfectly balanced is to take the smallest sample size in any cell type/dye observation and throw out observations at random from the other groups until each group is exactly the same size. This would unnecessarily reduce statistical power by eliminating data from the analysis, and still does not account for the possibility that dyes have a biological effect on motility, leading to a source of unexplained variance that increases within-group variance and reduces our power to detect between-group differences [27].

To account for potential dye effects and differences in the sample size between dyes, we used a two-way or factorial ANOVA. We entered the main effect of the dyes (i.e. the effect of one dye causing cells in general to move faster or slower or to turn more or less than the other); and the dye X cell type interaction (i.e. the effect of one dye making one cell type move faster, and the other slower; or more generally, that dyes will affect different cell types differently) on cell speeds and migration angles. We found a significant effect of the dyes on T cell speed (Table 3) and turning angle (Table 4) in all four data sets we tested. Furthermore, we found that the dyes have a confounding effect on the speed (Table 3) and migration angles (Table 4) of the two cell types. If we simply average the total WT CFSE/WT CMTMR and PKCθ-/- CFSE/PKCθ-/- CMTMR and perform a Mann-Whitney U test (Table 1), we see a statistically significant difference between WT speed at 5.28μm/min and PKCθ-/- at 5.19μm/min (Fig 3A). However, if we break out the WT CFSE—WT CMTMR—PKCθ-/- CFSE—PKCθ-/- CMTMR, we see that the effect of the dye on individual populations was not consistent (Fig 3B). WT cells dyed with CMTMR moved faster than WT cells dyed with CFSE, while the opposite was true for PKCθ-/- T cells (Fig 3B). Thus, the p-value reported by the Mann-Whitney U test for differences in speed for WT versus PKCθ-/- T cells is unreliable because of dependence in the data caused by the use of the CFSE dye in some observations and CMTMR in others. Using the factorial ANOVA to control for the effects of the dyes, our new estimates are 5.05μm/min for WT cells and 4.85μm/min for PKCθ-/-. We did the same analysis for migration angles, and found that with factorial ANOVA, the difference between the turning angles taken by WT (38.5) and PKCθ-/- (38.9) is now not significant, with p = 0.1262 (Fig 4B; and see Table 2). These results show that the significant difference previously found using the Mann Whitney U test was due to the confounding effect of the dye. We found the same dye effects for two other dyes used to assess WT:CCR7-/-, showing that dye effects are likely to be a generalized effect (Fig 5).

thumbnail
Fig 3. Cell speeds in WT and PKCθ-/- T cells in mouse lymph nodes.

Box-plots showing step-based cell speeds calculated from 2P microscopic observation of PKCθ-/- (KO) and wild-type (WT) T cells: A) Cell speeds for KO and WT T cells without regard to dyes used in observations; B) The same data broken out by cell type and dye and the two dyes used to image them, CFSE and CMTMR, illustrating the confounding effect of the dyes on T cell speeds.

https://doi.org/10.1371/journal.pone.0126333.g003

thumbnail
Fig 4. T cell migration angle in WT and PKCθ-/- motility in mouse lymph nodes.

Box-plots showing step-based migration angles calculated from 2P microscopic observation of PKCθ-/- (KO) and wild-type (WT) T cells: A) Migration angles for KO and WT T cells without regard to dyes used in observations; B) The same data broken out by cell type and the two dyes used to image them, CFSE and CMTMR, illustrating the confounding effect of the dyes on T cell migration angles.

https://doi.org/10.1371/journal.pone.0126333.g004

thumbnail
Fig 5. Cell speeds in WT and CCR7-/- T cell motility in mouse lymph nodes, by cell type and dye.

Box-plots showing step-based cell speeds calculated from 2P microscopic observation of CCR7-/- (KO) and wild-type (WT) T cells broken out by cell type and the two dyes used to image them, CMFDA and fura.

https://doi.org/10.1371/journal.pone.0126333.g005

thumbnail
Table 3. Relative effects of cell populations, dyes, and cell population X dye interactions on cell speed.

https://doi.org/10.1371/journal.pone.0126333.t003

thumbnail
Table 4. Relative effects of cell populations, dyes, and cell population X (crossed with) dye interactions on migration angle.

https://doi.org/10.1371/journal.pone.0126333.t004

In most cases the magnitude of the dye effect is similar to or larger than that of the experimental treatment. For example, in examining cell speeds: the effect of PKCθ-/- is -0.13μm/min (e.g WT T cells moved 0.13μm/min faster than PKCθ-/- T cells), while the main effect of the dye is 0.08μm/min, and the dye X cell type interaction is 0.50μm/min (the CFSE dye causes a 0.50μm/min increase in PKC-/- cells) (Table 3). We found a similar result for turning angles (Table 4). In fact, only PTX vs. suB cell speeds show that the magnitude of the experimental treatment is substantially larger than both the main and interaction effects of the dyes. These results demonstrate that the dye effects can be large and significant, and if not correctly accounted for statistically, may contribute to effects erroneously attributed to cell type differences.

As noted above for the t-test and Mann-Whitney U test, we find that when we apply this test to rank-transformed data to correct for non-normality, we obtain lower estimates for both speed (e.g. 6.21μm/min for WT cells in un-transformed data from our PKCθ sample vs. 5.05μm/min estimated from rank-transformed data) and turning angles (54.0 degrees vs. 38.5 degrees). Again this reflects the fact that estimates obtained by analysis of un-transformed data correspond to the mean value whereas estimates obtained by analysis of rank-transformed data correspond to the median. However, these estimates still have yet to account for dependence resulting from the fact that steps originate from T cell tracks.

Incorporating cell-based and step-based analysis

The choice of cell-based vs step-based analysis can influence the estimated differences between the speed and turning angles of WT and PKCθ-/-, CARMA-/-, CCR7-/-, or PTX treated T cells. While it is intuitive to think about the behavior of individual cells, step-based analysis offers the advantage of greater statistical power [28]. Both cell-based and step-based analyses introduce biases into statistical analysis. Step-based analysis doesn’t take into account differences in behavior of individual tracks, and therefore loses an important level of variation by only considering differences in motility parameters pooled across all tracks without regard to the fact that multiple measurements are taken from individuals tracks. Statistical tests assume that there are no correlations (dependence) in the data that are not accounted for in the statistical model. Therefore tests such as the t-test that fail to take into account the important dependence among multiple observations of the same cell are not only less than optimal, but violate this assumption and are therefore inappropriate to apply to step-based data. Cell-based analyses compare track means for these parameters, which may differ due to real differences in the motion of different cells, but without regard to sample size or other information about the cells (e.g. standard deviation). Fast-moving or highly diffusive cells tend to move quickly through the frame, while slow-moving cells or cells with undirected movement may linger in the frame longer, and may therefore be over-represented in step-based data [9]. This is demonstrated by S4 Fig, showing 37 step-based samples of WT speeds, and 82 samples of PKCθ-/- speeds. Using a t-test, we find that the mean speed for the selected WT cells is 1.79μm/min, whereas the mean for KO cells is 9.51μm/min, a large and statistically significant difference (p < 0.001.) However, these two samples represent observations of a single WT cell and a single PKCθ-/- cell, and thus cannot answer the question of whether the populations of WT and PKCθ-/- T cells behave differently. While this is an extreme example, it illustrates the exaggeration of our power to test our hypotheses when we group together step-based data without regard to the individual cells that produced the observations. On the other hand, if we convert the data to cell-based parameters we reduce our sample size to two, and in the process we have discarded all other information about our sample, including standard deviation, standard error, and sample size within the steps of a cell.

To resolve the step-based and cell-based conundrum, we again use the factorial ANOVA to enter unique cell IDs as a predictor variable in our model. This allows our model to take into account the fact the multiple observations were made of each cell, and the fact that cells may show individual variation. We analyzed cell speed and migration angle data using mixed-model ANOVA, including the dyes and the dye X cell type interaction we described previously, and also cell IDs to control the dependence in our data owing to repeated observations of the same cells. After including control for cell IDs as a random effect, estimates of cell speed (Table 1) are generally higher and migration angle (Table 2) generally lower than without the cell ID as control. This results from correcting for the over-sampling of cells with slow speeds or high migration angles that linger in the frame longer than cells that move quickly. In fact, for the WT versus CARMA1-/- comparison, a simple Mann-Whitney U test showed a statistically significant difference in cell speed with WT at 7.8μm/min and CARMA1-/- at 7.2μm/min. After controlling for dye effects and the cell ID, our parameters and statistical model are now in effect simultaneously “step-based” and “cell-based”. This more accurate model shows that in fact, CARMA1-/- T cells move slightly faster than WT T cells (WT: 8.4μm/min; CARMA1-/- 9.0μm/min).

Nested ANOVA controlling for all experimental factors

While we have controlled for dye effects and determined the effect of the cell type (WT versus knockout) on T cell motility, it is possible that other unknown experimental variables may affect our estimates of T cell speed and turning angle. We perform experiments on multiple days, using multiple animals, multiple lymph nodes from different animals, and multiple fields within each lymph node (see Fig 1, and S1, S2 and S3 Figs for experimental setup). Each of these nuisance factors are additional potential sources of dependence that we can check and control for statistically. We do this by entering each factor into our model as random effects much as we do cell ID above. These additional random effects allow for the possibility that observations on particular days, or on particular mice may vary for reasons unrelated to the experimental treatment we are investigating, despite our efforts at methodological control across observations. We again used factorial ANOVA and included the date as our top level random effect and entered the other effects as random effects nested within date, and within each other to match the hierarchical structure in our data (see Fig 1).

We performed our full nested model of cell speeds and migration angles and found that in general, nested analysis does not produce very different estimates or p-values than our mixed model ANOVA controlling for cell IDs (Tables 1 and 2). The 95% confidence intervals for the estimates of date, mouse, lymph nodes, and fields all span zero, indicating that these are non-significant effects in the model. The only random effect we entered with an estimate significantly different from zero is the track IDs (95% CI: 81.1 to 96.0 degrees). These analyses gives us confidence that our experimental observations are well controlled across each field, lymph node, mouse, and date, and that our results are not confounded by differences among these factors.

In one analysis, inclusion of nested factors did allow us to find significant effects where we found non-significant or marginally significant effects in the mixed model controlling for cell IDs. After controlling for dye effects and cell ID, we found a non-significant effect of PKCθ on T cell migration angle in un-transformed data and a marginally significant effect (WT: median migration angle 37.8 degrees; KO: 38.3 degrees; p = 0.0744; see Table 2) in rank-transformed data. When including nested factors in the analysis, we now find significant effects in both un-transformed (WT: 51.6 degrees; KO: 52.8 degrees; p = 0.0333) and rank-transformed data (WT: 37.0 degrees; KO: 37.8 degrees; p = 0.0144). Inclusion of nested factors controlling for experimental blocks can provide greater resolution on differences between experimental groups, even when these factors fail to reach significance because of small sample size (small number of fields, and increasingly smaller numbers of higher level factors up to the days on which experiments were carried out). Agreement between the results of analysis of un-transformed and rank-transformed data gives confidence that these results are not due to violation of the assumption of normality. The median values provided by analysis of rank-transformed data may be regarded as more meaningful as mean values are of questionable usefulness in skewed data such as these.

Interestingly, we also find the surprising result that CARMA1-/- T cells move faster than WT cells that we observed after controlling for dye effects persists when including controls for all nested experimental blocks. Nested analysis of rank-transformed data estimates median speed of 7.8μm/min for WT T cells and 8.4μm/min for KO T cells, with p = 0.0304 (Table 2). Our new statistical analysis approach shows that inappropriate statistics may lead to the incorrect conclusion that CARMA1 deficiency leads to slower motility (if t-test is used). Instead, we find that absence of CARMA1 leads to higher motility, suggesting that CARMA1 normally slows T cell movement in LNs.

Discussion

Remarkable advances in video microscopy over the last several decades have provided stunning images of cell form and movement in living tissues. Acquisition of this data is expensive in terms of funding invested in the equipment and the time to carry out the observations. With improvements in the statistical techniques used to analyze this valuable data, immunologists can avoid known pitfalls in data analysis and gain substantially more power to obtain accurate estimates of cell motility.

In our study, we resolve three problems in the analysis of in vivo T cell motility, and we show how resolving these problems changes quantitative estimates, and in some cases qualitative understanding, of T cell motility. First, we demonstrate how simple rank transformation of data resolves inaccurate estimates that come from using the Student’s t-test due to the non-normally distributed motility data. Second, we show that cell dyes have significant and unpredictable effects on T cell motility, and we demonstrate the use of statistical methods to correctly control for dye effects. Finally, we demonstrate how to leverage the accuracy of cell-based analysis without sacrificing the statistical power of step-based analysis of speed and turning angles.

Researchers in the field have recognized the difficulties of working with complex quantitative motility data, including the effects of the dyes used in two-photon microscopy on lymphocyte motility [13], and the difficulties and potential biases inherent in the choice between cell-based and step-based parameters [9]. We examined in detail the effects of dyes on T cell motility in four data sets using two different dye combinations. In each data set we found not only effects of certain dyes making cells move more slowly, but we also found interaction effects, where dyes may unpredictably affect the motility of T cells of one cell population differently than those of another population. While the effects of the dyes can be lessened through methodological controls, experimental methods cannot fully control for dye effects. (Our nested models including all nested models lost the significance of the dye interaction effects, although their magnitudes were not reduced. This is likely due to small sample sizes for higher level nested effects such as date and mouse.) We show that factorial ANOVA statistical analyses can statistically control the possible confounding effect of the dyes. An additional advantage of the use of the factorial ANOVA is that we can make use of all available data even if the populations are not perfectly balanced. As it is impossible to predict the potential effect of different dyes used to label T cells, this statistical level of control is critical to avoid erroneously reporting an effect of cell type or other experimental treatment that is in fact only due to the choice of dyes.

The techniques we suggest here do not reduce the need for methodological control in experiments. While dye effects are particularly significant, when we use a nested analysis to test for other experimental variables, including field visualized, lymph node, and date of experiment, we find no significant effect of these other experimental variables. These results show that the effect of the dye is a real biological effect, and thus require statistical control in addition to experimental controls. This is in contrast with other experimental variables that can be adequately controlled for by standard experimental techniques.

We also find that WT cells behave differently under different conditions, as shown by the WT motility parameters obtained in the four different sets of results WT:PKCθ-/- (WT speed: 5.8μm/min); WT:CARMA1-/- (WT speed: 7.8μm/min); and WT:CCR7-/- (WT speed 4.92μm/min)(see Table 1). The differences are statistically significant, and are likely due to the fact that each of these sets of data were collected using different microscopes under different experimental conditions. Thus, while we can directly compare WT and knockout T cells within the same sets of experiments done using similar environmental conditions, different experimental setups, (including different microscopes, temperature settings, optics etc.), can affect the precise measure of motility.

We also present a method to resolve the dilemma between step-based and cell-based parameters. However, the mixed modeling we use does not resolve all the potential biases. Fast moving cells may change their behavior after moving out of the field, while slow moving cells are over sampled. While experimental limitations remain, our analysis more completely accounts for the behavior of individual cells in analysis of step-based data, as well as the data structure inherent in these experimental designs. Proper statistical analysis is particularly important when comparing populations of T cells with subtle differences in motility, when cell population effects may be swamped by noise, e.g. that introduced by the fluorescent dyes. However, with these more powerful techniques we may be able to find significant differences between the motility of populations of cells where in fact the magnitudes of those differences are relatively small. For example in our final nested analysis of rank-transformed PKCθ-/- vs. WT T cell speeds, we find a 5% reduction in cell speed, yet the result is highly significant with p<0.0001; and a 1.8% increase in migration angle, with p = 0.0144. We also observe that CARMA1-/- T cells move approximately 8% faster than WT T cells. While the precise biological significance of small decrease or increase in motility is beyond the scope of this study, with the recent increase in the use of computational modeling, we will gain further insight into the effect of both PKCθ and CARMA1 by better estimates of motility. In such cases researchers must consider the biological importance of their results beyond looking for a significant p-value.

Quantitative measurements of T cell motility have been increasingly used as inputs into computational models to better understand T cell behavior [29,30]. Computational modeling requires precise quantitative measures of speed, turning angle, and other parameters to accurately predict a wide variety of immune response parameters, including the initiation a T cell response [7,29,30], generation of CD8 T cell memory [31], CD8 T cell killing [32]. We show that statistical controls can dramatically change the quantitative estimate for the speed and turning angle taken by T cells moving in lymph nodes. The difference between the estimate for T cell speed with and without full statistical control can be more than 10% (Tables 1 and 2), which may lead to significant differences in computational models.

While the statistical techniques we describe here can lead to more precise quantitative estimates, we find that different analyses, e.g. parametric vs. non-parametric, factorial ANOVA versus mixed modeling, with control for cell IDs and for experimental variability, produce similar qualitative differences between WT and knockout populations. This gives us some assurance that the results we report are not the result of our choice of a particular statistical test. We encourage researchers to check the assumptions of their statistical tests, and if these assumptions are in question, repeat their analyses using alternate methods, including repeating their analysis with rank-transformation in the case of non-normally distributed residuals.

The techniques we have outlined here give researchers more effective tools for addressing widely recognized concerns in analysis of lymphocyte motility: the non-parametric nature of motility data; the effects of fluorescent dyes on lymphocyte motility; and answer the problem of choosing between cell-based and step-based parameters. We have already used these techniques to analyze the effect of PKCθ on T cell motility [20]. These techniques provide a general approach to designing statistical tests that fit the structure of T cell motility data and all possible sources of variance to give the clearest view of T cell motility in vivo.

Supporting Information

S1 Fig. Experimental design and resulting data structure for WT vs CARMA1-/- experiments.

Data on CARMA1-/- (KO) and wild-type (WT) T cell motility were collected during experiments on 6 days, using 10 total mice, from which 17 total lymph nodes were extracted, with observation in 22 total microscopic fields, in which 3,883 total tracks were observed, containing 128,611 total step observations.

https://doi.org/10.1371/journal.pone.0126333.s001

(TIF)

S2 Fig. Experimental design and resulting data structure for WT vs CCR7-/- experiments.

Data on CCR7-/- (KO) and wild-type (WT) T cell motility were collected during experiments on 2 days, using 2 total mice, from which 7 total lymph nodes were extracted, with observation in 8 total microscopic fields, in which 1,402 total tracks were observed, containing 15,931 total step observations.

https://doi.org/10.1371/journal.pone.0126333.s002

(TIF)

S3 Fig. Experimental design and resulting data structure for suB- vs PTX-treated T cell experiments.

Data on subunit B- (suB, control) and PTX-treated T cell motility were collected during experiments on 7 days, using 10 total mice, from which 17 total lymph nodes were extracted, with observation in 22 total microscopic fields, in which 4,096 total tracks were observed, containing 111,251 total step observations.

https://doi.org/10.1371/journal.pone.0126333.s003

(TIF)

S4 Fig. Step-based data on cell speeds for a single PKCθ-/- and single WT T cell.

Plot of step-based cell speeds calculated from 2P microscopic observation of a single PKCθ-/- (KO) and a single wild-type (WT) T cells. A t-test would incorrectly conclude that KO cells move at faster speeds than WT (p < 0.001). In fact, these data points represent samples of the motility of only one KO and one WT cell. The t-test does not take into account the dependence among these observations. We do not have sufficient data in this sample to conclude anything about differences between WT and KO cell populations when the identity of the individual cells from which these observations were made are taken into account.

https://doi.org/10.1371/journal.pone.0126333.s004

(TIFF)

S5 Fig. Model specification of nested model in JMP.

Specification of the final nested model for analysis of PKCθ-/- vs wild-type T cell speed. The model includes factors: PKCθ (KO or WT), dye, and the cell-type X dye interaction; and hierarchically nested factors, date, mouse, lymph node, field, and cell, each entered into the model as random effects. See http://www.jmp.com/support/help/Construct_Model_Effects.shtml for further information on nested factors and model specification in JMP. See http://stmc.health.unm.edu/tools-and-data/ for replication data and JMP procedure for the nested model.

https://doi.org/10.1371/journal.pone.0126333.s005

(TIF)

Acknowledgments

The authors would like to acknowledge Francois Asperti-Boursin for collection of data, Rob J. de Boer for helpful conversation and input in the development of this project and manuscript. We would like to acknowledge Rebecca Lee, Genevieve Phillips, and Angela Wandinger-Ness of the fluorescence microscopy facility at the University of New Mexico Health Sciences Center for their assistance. We would also like to acknowledge John Connor and Denis Bragin of the BRaIN Center Optical Core at the University of New Mexico Health Sciences Center.

Author Contributions

Conceived and designed the experiments: KL ED MEM JLC. Analyzed the data: KL. Contributed reagents/materials/analysis tools: ED MEM JLC. Wrote the paper: KL MEM JLC.

References

  1. 1. Miller MJ, Wei SH, Parker I, Cahalan MD (2002) Two-photon imaging of lymphocyte motility and antigen response in intact lymph node. Science 296: 1869–1873. pmid:12016203
  2. 2. Stoll S, Delon J, Brotz TM, Germain RN (2002) Dynamic imaging of T cell-dendritic cell interactions in lymph nodes. Science 296: 1873–1876. pmid:12052961
  3. 3. Bousso P, Bhakta NR, Lewis RS, Robey E (2002) Dynamics of thymocyte-stromal cell interactions visualized by two-photon microscopy. Science 296: 1876–1880. pmid:12052962
  4. 4. Mempel TR, Henrickson SE, Von Andrian UH (2004) T-cell priming by dendritic cells in lymph nodes occurs in three distinct phases. Nature 427: 154–159. pmid:14712275
  5. 5. Harris TH, Banigan EJ, Christian DA, Konradt C, Tait Wojno ED Norose K et al. (2012) Generalized Lévy walks and the role of chemokines in migration of effector CD8+ T cells. Nature 486: 545–548. pmid:22722867
  6. 6. Fricke GM, Hecker JP, Cannon JL, Moses ME (2013) From Microbiology to Microcontrollers : Adv Artif Life 12: 1009–1016.
  7. 7. Gong C, Mattila JT, Miller M, Flynn JL, Linderman JJ, Kirschner D. (2013) Predicting lymph node output efficiency using systems biology. J Theor Biol 335: 169–184. pmid:23816876
  8. 8. Textor J, Dannenberg K, Liskiewicz M (2014) A Generic Finite Automata Based Approach to Implementing Lymphocyte Repertoire Models. Proceedings of the 2014 Conference on Genetic and Evolutionary Computation. ACM. pp. 129–136.
  9. 9. Beltman JB, Marée AFM, de Boer RJ (2009) Analysing immune cell migration. Nat Rev Immunol: 1–11.
  10. 10. Miller MJ, Safrina O, Parker I, Cahalan MD (2004) Imaging the single cell dynamics of CD4+ T cell activation by dendritic cells in lymph nodes. J Exp Med 200: 847–856. pmid:15466619
  11. 11. Nombela-Arrieta C, Mempel TR, Soriano SF, Mazo I, Wymann MP, Hirsch E et al. (2007) A central role for DOCK2 during interstitial lymphocyte motility and sphingosine-1-phosphate—mediated egress. J Exp Med 204: 497–510. pmid:17325199
  12. 12. Worbs T, Mempel TR, Bölter J, von Andrian UH, Förster R (2007) CCR7 ligands stimulate the intranodal motility of T lymphocytes in vivo. J Exp Med 204: 489–495. pmid:17325198
  13. 13. Huang JH, Cárdenas-Navia LI, Charles C, Plumb TJ, Radu CG, Rocha PN et al. (2007) Requirements for T lymphocyte migration in explanted lymph nodes. J Immunol 178: 7747–7755. pmid:17548612
  14. 14. Asperti-Boursin F, Real E, Bismuth G, Trautmann A, Donnadieu E (2007) CCR7 ligands control basal T cell motility within lymph node slices in a phosphoinositide 3-kinase-independent manner. J Exp Med 204: 1167–1179. pmid:17485513
  15. 15. Jacobelli J, Friedman RS, Conti MA, Piel M, Sorensen CM, Adelstein RS et al. (2010) Confinement-optimized three-dimensional T cell amoeboid motility is modulated via myosin IIA—regulated adhesions. Nat Immunol.
  16. 16. Matheu MP, Deane JA, Parker I, Fruman DA, Cahalan MD (2007) Lymphocyte motility in the lymph node. J Immunol 1: 2261–2269.
  17. 17. Jacobelli J, Bennett FC, Pandurangi P, Tooley AJ, Krummel MF (2009) Myosin-IIA and ICAM-1 regulate the interchange between two distinct modes of T cell migration. J Immunol 182: 2041–2050. pmid:19201857
  18. 18. Landis SC, Amara SG, Asadullah K, Austin CP, Blumenstein R, Bradley EW et al. (2012) A call for transparent reporting to optimize the predictive value of preclinical research. Nature 490: 187–191. pmid:23060188
  19. 19. Vaux DL (2012) Know when your numbers are significant. Nature 492: 180–181. pmid:23235861
  20. 20. Cannon JL, Asperti-Boursin F, Letendre KA, Brown IK, Korzekwa KE, Blaine KM et al. (2013) PKCθ regulates T cell motility via ezrin-radixin-moesin localization to the uropod. PLoS One 8: e78940. pmid:24250818
  21. 21. Cyster BJG, Goodnow CC (1995) Pertussis Toxin Inhibits Migration of T and C Lymphocytes into Splenic White Pulp Cords. J Exp Med 182: 581–586. pmid:7629515
  22. 22. Miller M (1986) Beyond ANOVA, Basics of Applied Statistics.
  23. 23. Conover WJ, Iman RL (1981) Rank transformations as a bridge between parametric and nonparametric statistics. Am Stat 35: 124–129.
  24. 24. Okada T, Cyster JG (2007) CC Chemokine Receptor 7 Contributes to Gi-Dependent T Cell Motility in the Lymph Node. J Immunol 178: 2973–2978. pmid:17312142
  25. 25. Thome M, Charton JE, Pelzer C, Hailfinger S (2010) Antigen receptor signaling to NF-kappaB via CARMA1, BCL10, and MALT1. Cold Spring Harb Perspect Biol 2: a003004. pmid:20685844
  26. 26. Gérard A, Patino-Lopez G, Beemiller P, Nambiar R, Ben-Aissa K, Liu Y et al. (2014) Detection of Rare Antigen-Presenting Cells through T Cell-Intrinsic Meandering Motility, Mediated by Myo1g. Cell 158: 492–505. pmid:25083865
  27. 27. Norman GR, Streiner DL (2008) Biostatistics, The Bare Essentials. Third Edit. Hamilton: B.C. Decker, Inc. p.
  28. 28. Witt CM, Raychaudhuri S, Schaefer B, Chakraborty AK, Robey EA (2005) Directed migration of positively selected thymocytes visualized in real time. PLoS Biol 3: 1062–1069.
  29. 29. Celli S, Day M, Müller AJ, Molina-Paris C, Lythe G, Bousso P (2012) How many dendritic cells are required to initiate a T-cell response? Blood 120: 3945–3948. pmid:22995897
  30. 30. Linderman JJ, Riggs T, Pande M, Miller M, Marino S, Kirschner DE (2010) Characterizing the dynamics of CD4+ T cell priming within a lymph node. J Immunol 184: 2873–2885. pmid:20154206
  31. 31. Antia R, Ganusov VV, Ahmed R (2005) The role of models in understanding CD8+ T-cell memory. Nat Rev Immunol 5: 101–111. pmid:15662368
  32. 32. Regoes RR, Barber DL, Ahmed R, Antia R (2007) Estimation of the rate of killing by cytotoxic T lymphocytes in vivo. Proc Natl Acad Sci U S A 104: 1599–1603. pmid:17242364