- We are sorry, but NCBI web applications do not support your browser and may not function properly. More information

# Extended local similarity analysis (eLSA) of microbial community and other time series data with replicates

^{1}Joshua A Steele,

^{2,}

^{3}Jacob A Cram,

^{3}Zoe G Cardon,

^{4}Sheri L Simmons,

^{5}Joseph J Vallino,

^{4}Jed A Fuhrman,

^{3}and Fengzhu Sun

^{}

^{1}

^{1}Molecular and Computational Biology Program, Department of Biological Sciences, University of Southern California, Los Angeles, CA 90089-2910, USA

^{2}Division of Geological and Planetary Sciences, California Institute of Technology, Pasadena, CA 91125, USA

^{3}Marine and Environmental Biology, Department of Biological Sciences, University of Southern California, Los Angeles, CA 90089-0371, USA

^{4}The Ecosystems Center, Marine Biological Laboratory, Woods Hole, MA 02543, USA

^{5}Bay Paul Center, Marine Biological Laboratory, Woods Hole, MA 02543, USA

^{}Corresponding author.

#### Supplement

#### Conference

## Abstract

### Background

The increasing availability of time series microbial community data from metagenomics and other molecular biological studies has enabled the analysis of large-scale microbial co-occurrence and association networks. Among the many analytical techniques available, the Local Similarity Analysis (LSA) method is unique in that it captures local and potentially time-delayed co-occurrence and association patterns in time series data that cannot otherwise be identified by ordinary correlation analysis. However LSA, as originally developed, does not consider time series data with replicates, which hinders the full exploitation of available information. With replicates, it is possible to understand the variability of local similarity (LS) score and to obtain its confidence interval.

### Results

We extended our LSA technique to time series data with replicates and termed it extended LSA, or eLSA. Simulations showed the capability of eLSA to capture subinterval and time-delayed associations. We implemented the eLSA technique into an easy-to-use analytic software package. The software pipeline integrates data normalization, statistical correlation calculation, statistical significance evaluation, and association network construction steps. We applied the eLSA technique to microbial community and gene expression datasets, where unique time-dependent associations were identified.

### Conclusions

The extended LSA analysis technique was demonstrated to reveal statistically significant local and potentially time-delayed association patterns in replicated time series data beyond that of ordinary correlation analysis. These statistically significant associations can provide insights to the real dynamics of biological systems. The newly designed eLSA software efficiently streamlines the analysis and is freely available from the eLSA homepage, which can be accessed at http://meta.usc.edu/softs/lsa.

## Background

In recent years, advances in microbial molecular technologies, such as next generation sequencing and molecular profiling, have enabled researchers to spatially and temporally characterize natural microbial communities without laboratory cultivation [1]. However, to reveal existing symbiotic relationships and microbe-environment interactions, it is necessary to mine and analyze temporal and spatial co-occurrence association patterns of organisms within these new datasets [2,3]. Time series data, in particular, are receiving increased attention, since not only ordinary associations, but also other local and potentially time-delayed associations can be inferred from these datasets. Here local association indicates that the association only occurs in a subinterval of the time of interest, and time-delayed association indicates that there is a time lag for the response of one organism to the change in another organism. The rapid accrual of time series data is not limited to the microbial ecology field. Progress in high-throughput low-cost experimental technologies has also brought such changes to gene transcription and translation studies. Thus, while the subjects may vary, the association network we build from local and potentially time-delayed association patterns will likely pave the way to a better understanding of these systems.

To analyze microbial community and other data under various conditions, researchers typically use techniques such as Pearson’s Correlation Coefficient (PCC), principal component analysis (PCA), multi-dimensional scaling (MDS), discriminant function analysis (DFA) and canonical correlation analysis (CCA) [4-8]. Although these analytic methods yield interesting patterns, they generally analyze the data throughout the whole time interval of interest without considering potential local and time-delayed associations. We are specifically interested in discovering local and potentially time-delayed associations. Such associations have been shown to play important roles in understanding gene expression dynamics and the association of organisms in microbial communities [9-12].

To understand local and time-delayed associations, we originally designed a Local Similarity Analysis (LSA) for time series data measured typically at successive and equal time intervals without replicates [11]. Studies adopting the original LSA technique have shown interesting and novel discoveries for microbial community datasets. To name a few, Paver et al. [10] successfully applied LSA to study glycolate-utilizing bacterial and phytoplankton associations, while Shade et al. [13] used LSA to discover bacterial association dynamics during lake mixing.

Since biological experiments are often associated with many potential sources of noise, repeated measurements (replicates) are usually carried out in order to better assess inherent uncertainties of the quantities of interest [14]. Furthermore, data emerging from such experiments are typically analyzed by mean effect or by the development of profiles where variability is not properly accounted for [15]. Temporal and spatial data with replicates are being generated in Dr. Cardon’s laboratory and others. The lack of support for replicated data in the original LSA program has prevented its application to these new datasets. With replicates, it is possible to evaluate the variation of and to give a bootstrap confidence interval for the local similarity (LS) score as defined in *Ruan et al.*[11]. Furthermore, the original LSA is restricted by the low computing efficiency of the R language, as well as poor handling of missing values. In order to improve upon these issues and make the technique more accessible to the scientific community, we developed an extended LSA technique, named eLSA, and implemented it as a C++ extension to Python.

Briefly, given time series data of two factors and a user-constrained delay limit, eLSA finds the configuration of the data that yields the highest local similarity (LS) score, which is a type of similarity metric. For example, within a delay limit of two units, the first time spot of one series might be aligned to the third time spot of the other series, thus maximizing their LS. For a dataset of many factors, eLSA is applied to each pairwise combination of factors in the dataset. Candidate associations are then evaluated statistically by a permutation test, which calculates the p-value which is the proportion of scores exceeding the original LS score after shuffling the first series and re-evaluating the LS score many times, and by the false discovery rate (FDR q-value), which is used to correct multiple comparisons. Researchers can use eLSA to detect undirected associations, i.e., association patterns without time delays, and directed associations, where the change of one factor may temporally lead or follow another factor.

The organization of the paper is as follows. In the “Methods” section, we describe the LSA algorithm for calculating LS score with replicates, data normalization, estimation of confidence interval for the LS score, and testing the statistical significance of a LS score. In the “Results” section, we first show the efficacy of eLSA by simulations, then describe briefly the pipeline of eLSA, and finally apply the pipeline to analyze a microbiological dataset and a gene expression dataset. The paper concludes with some discussion and conclusions.

## Methods

### Pearson’s correlation coefficient-based analysis

Suppose that the time series data for factors *X* and *Y* with replicates are measured simultaneously. We denote them as *X* = *X*_{[1:n][1:m]} and *Y* = *Y*_{[1:n][1:m]}, where *n* is the number of samples (time points) and *m* is the number of replicates. Let *X _{i}*

_{[1:m]}and

*Y*

_{j}_{[1:m]}, or, in more abbreviated form,

*X*and

_{i}*Y*, be the vectors containing the

_{j}*m*replicates from the

*i*-th time spot of

*X*and the

*j*-th time spot of

*Y*, respectively. The application of Pearson’s Correlation Coefficient (PCC) requires taking the profile means,

*i.e.*and . Then the PCC between

*X*and

*Y*is defined as:

where , , and are the means of *X* and *Y*, respectively. The statistical significance of *r* is tested by the fact that follows a *t*-distribution (degree of freedom: *v* = *n* – 2, mean: 0 and variance *v* / (*v* – 2)) when *m* = 1. For a pair of non-replicated series where *m* = 1, PCC is a straightforward and powerful method to test and identify linear relationship between two bivariate normally distributed random variables. It is widely adopted in the literature but with limitations. Specifically, when the real relationships are more complex, for example, the association between the two factors only occurs in a subinterval of the region of interest or the change of one factor has a time-delay in response to the change of another factor. Several methods, including the original LSA method, have been proposed to overcome such difficulties [11,16].

### Local similarity analysis with replicates

The original LSA method considers only data without replicates. In this paper, we extend the Local Similarity Analysis (LSA) method [11] to samples with replicates. To formulate the algorithm, we suppose each sample have *m* replicates and let *F*(·) be some summarizing function for the repeated measurements. Thus, we extend the original LSA dynamic programming algorithm to data with replicates as follows:

(1) For *i*, *j* in {1,2,…,*n*}^{2}:

*P*_{0,j} = 0, *P*_{i,0} = 0, and *N*_{0,j} = 0, *N*_{i,0} = 0.

(2) For *i*, *j* in {1,2,…,*n*}^{2} with |*i* – *j*|≤ *D*:

*P*_{i+1,j+1} = max{0,*P*_{i,j} + *S _{XY}*[

*F*(

*X*),

_{i}*F*(

*Y*)]} and

_{j}*N*_{i+1,j+1} = max{0,*N*_{i,j} + *S _{XY}*[

*F*(

*X*),

_{i}*F*(

*Y*)]}.

_{j}(3) *P _{max}*(

*X*,

*Y*) = max

_{1≤i,j≤n}

*P*

_{i,j}and

*N _{max}*(

*X*,

*Y*) = max

_{1≤i,j≤n}

*N*

_{i,j}.

(4) and

*S _{sgn}*(

*X*,

*Y*) = sgn[

*P*(

_{max}*X*,

*Y*) –

*N*(

_{max}*X*,

*Y*)].

The *S _{max}*(

*X*,

*Y*) obtained is the maximum local similarity score possible for all configurations of

*m*-replicated time series

*X*and

*Y*within time-delay

*D*. In this extended algorithm, the scalars

*x*’s and

_{i}*y*’ s from the non-replicated series in

_{i}*Ruan et al.*[11] are replaced by vector functions

*F*(

*X*)’s and

_{i}*F*(

*Y*)’s to handle data with replicates. Alternatively, we can also consider

_{j}*F*(

*X*)’s and

_{i}*F*(

*Y*)’s as the same input data for the original algorithm in

_{j}*Ruan et al.*[11], except that they are

*F*-transformed data. In addition, this extended LSA framework easily accommodates the original version of LSA without replicates using

*m*= 1 as a special case.

### Different ways of summarizing the replicate data

Notice that the only additional component we introduced in the eLSA algorithm is the function *F*. Many reports have suggested different possible forms for *F*, and several computational methods have been proposed for summarizing the additional information available from replicates, including the simple average method (abbreviated as ‘simple’) and the Standard Deviation (SD)-weighted average method (abbreviated as ‘SD’), and the multivariate correlation coefficient method [17-19]. However, the result of the multivariate correlation coefficient method from *Zhu et al.*[17] can be shown to be the same as the ‘simple’ method. Therefore, in eLSA, we used the first two methods. We also propose the use of median in place of average and Median Absolute Deviation (MAD) in place of SD when robust statistics are needed to handle outliers [20]. The corresponding methods are named simple median method (abbreviated as ‘Med’) and MAD-weighted median method (abbreviated as ‘MAD’), respectively.

The ‘simple’ method is, in spirit, to take the mean profiles to represent the replicated series. In practice, we take *F* to be the simple average of repeated measurements: . The ‘SD’ method, on the other hand, takes the standard deviation of the replicates into account. Here we take *F* to be the replicate average divided by its standard deviation (SD): . Importantly, this method utilizes the variability information available, and, as such, it is claimed to be better than the ‘simple’ method in estimating the true correlation [18]. However, in order for the ‘SD’ method to be effective, a relatively large number of replicates, *m*, are needed, *e.g.,**m* ≥ 5. For a small number of replicates, the ‘SD’ method may not work well since the standard deviation may not be reliably estimated. Further, if we replace average with median and SD with MAD, we obtain the ‘Med’ method: *F*(*X _{i}*) =

*Median*(

*X*) and the ‘MAD’ method: , where

_{i}*MAD*(

*X*) =

_{i}*Median*(|

*X*–

_{i}*Median*(

*X*)|). The two transformations have similar properties as their corresponding average and SD versions, but they are more robust.

_{i}### Bootstrap confidence interval for the LS score

With replicate data, researchers can study the variation of quantities of interest and to give their confidence intervals. Due to the complexity of calculating the LS score, the probability distribution of the LS score is hard to study theoretically. Thus, we resort to bootstrap to give a bootstrap confidence interval (CI) for the LS score. Bootstrap is a re-sampling method for studying the variation of an estimated quantity based on available sample data [21]. In this study, we use bootstrap to estimate a confidence interval for the LS score. For a given type I error α, the 1 – α confidence interval is the estimated range that covers the true value with probability 1 – α. Thus, for a given number, *B*, of bootstraps, we construct the bootstrap sample set , where each and are samples with replacement from *X _{i}* and

*Y*, respectively. The rest of the calculation is the same as that used for the original data, and we obtain . Without the loss of generality, we suppose that these values are sorted in ascending order: . Then, a 1 – α bootstrap CI of

_{j}*S*can be estimated by , as suggested by

_{max}*Efron et al.*[21].

### Data normalization

eLSA analyses require the series of factors *X* and *Y* to be normally distributed, but this may not be the case in the real dataset. Therefore, through normalization, the normality of the data can be enforced. To accommodate possible nonlinear associations and the variation of scales within the raw data, we apply the following approach [22] to normalize the raw dataset before any LS score calculations. We use *F*(*X _{i}*) to denote the

*F*-transformed data of the

*i*-th time spot of an variable

*X*. First, we take

_{i}Then, we take

where Φ is the cumulative distribution function of the standard normal distribution. We will take *Z* = *Z*_{[1:n]} obtained through the above procedure as the normalization of *X*. Therefore, the normalization steps are taken after the *F*-transformation.

### Permutation test to evaluate the statistical significance of LSA association

It is important to evaluate the statistical significance of the LS score measured by the p-value, the probability of observing a LS score no smaller than the observed score when two factors are not associated locally or globally. To achieve this objective, permutation test is used. To perform the test, we fix *Y* and reshuffle all the columns of *X* for each permutation. For a fixed number of permutations *L*, suppose {*X*^{(1)},*X*^{(2)},…,*X*^{(L)}} is the permuted set of *X*; then the p-value *P _{L}* is obtained using

where *I*(·) is the indicator function. With large enough number of permutations, we can evaluate the p-value to any desired accuracy.

### False discovery rate (FDR) estimation

In most biological studies, a large number of factors need to be considered. If there are *T* factors, there will be eLSA pairwise calculations, representing its quadratic growth in *T*. In order to avoid many falsely declared associated pairs of factors, we need to correct for multiple testing. Many methods have been developed to correct for multiple testing and here we use the method by *Storey et al.*[23] to address this issue. In particular, we report the q-value, *Q*, for each pair of factors. The q-value for a pair of factors is the proportion of false positives incurred when that particular pair of factors is declared significant.

### Computation complexity and implementation

For a single pair of time series, the time complexity for calculating the LS score using the dynamic programming algorithm is *O*(*n*), where *n* is the number of time points. The estimation of the bootstrap confidence interval for the LS score using *B* bootstraps will need *O*(*Bn*) calculations. The estimation of statistical significance for each pair of factors using *L* permutations will need *O*(*Ln*) calculations. Thus, the number of calculations for a full analysis of each pair of factors will be *O*(*BLn*). If there are a total of *T* factors, there are a total of pairs of factors that need to be compared. Thus, the number of calculations for a full analysis of *T* factors will be in the order of *O*(*T*^{2}*BLn*), which can be computationally intensive.

In summary, the internal support for replicates and the use of CI estimates are the two major methodological enhancements to LSA. The eLSA software, however, also incorporates other new features, such as faster permutation and false discovery rate evaluations and more options to handle missing values. Other implementation details are available from the software documentation.

## Results

### Simulations and benchmarks

We generated simulated data to show the efficacy of eLSA in capturing time-dependent association patterns, such as time-delayed associations and associations within a subinterval. We also studied the difference between the eLSA inference using the simple average (referred to as ‘simple’) method, the SD-weighted average method (referred to as ‘SD’), the median (referred to as “Med”) method, and the MAD (referred to as ‘MAD’) method.

#### Time-delayed association

In this case, *X* and *Y* are assumed to be positively correlated with a time delay *D*. For a particular example with *D* = 3, we assume that (*X*_{j+3},*Y _{j}*)’s follows a bivariate normal distribution with mean

*μ*=

**0**and covariance matrix , for

*j*= 1,2,…,20, where

*ρ*= 0.8.

*X*’s are assumed to be standard normal for

_{j}*j*= 1,2,3. The generated (

*X*,

_{j}*Y*)’s are further perturbed

_{j}*m*times by a measurement disturbance

*ε*:

_{ij}*N*(0, 0.01) to obtain the

*m*-replicated series. A pair of simulated series is shown in Figure Figure1a1a for a typical simulation with

*m*= 5.

**Examples of simulated associations.**a. An example of simulated time-delayed association series with five replicates is shown, where X (red square) leads Y (blue circle) by three time units. The pattern is not significant by ordinary correlation analysis

**...**

We see that the two series closely follows each other if we shift the *Y* series three units toward right. In this particular example, the PCC is -0.258 (*P*=0.272) while the LS score using ‘simple’ averaging method is 0.507 with a p-value of 0.006. We did 1000 bootstraps and the 95% bootstrap confidence interval for this particular example is (0.448, 0.549). Therefore, this time-delayed association is only found significant by the eLSA analysis.

#### Association within a subinterval

In this case, we assume *X* and *Y* are positively associated within a subinterval and not associated in other regions. In our simulation, we generate 20 time spots of the two series by sampling (*X _{j}*,

*Y*) from a bivariate-normal distribution with mean

_{j}*μ*=

**0**and covariance matrix where

*ρ*= 0.8 for 6 ≤

*j*≤ 15, and

*ρ*= 0 for

*j*≤ 5 or 16 ≤

*j*≤ 20. The generated (

*X*,

_{j}*Y*)’s are further perturbed

_{j}*m*times by a measurement disturbance

*ε*:

_{ij}*N*(0, 0.01) to obtain the

*m*-replicated series. One generated series are shown in Figure Figure1b1b for a typical simulation with

*m*= 5.

We can see the two series mostly closely follow each other within the intended subinterval 6 ≤ *j* ≤ 15. In this particular example, the PCC is 0.258 (*P*=0.272) while the LS score using ‘simple’ averaging method is 0.428 with a p-value of 0.028. We did 1000 bootstraps and the 95% bootstrap confidence interval is (0.404, 0.446). This pattern is again uniquely captured by the eLSA analysis. In real applications, there are many other possibilities that two factors are associated without a significant Pearson or Spearman’s correlation coefficient. The eLSA can capture these associations as long as their LS score can be maximized through dynamically enumerating their configurations.

#### Different summarizing function

To see the effect of replicates, we also let *m* = 1, 10, 15, 20 in the time-delayed simulation and did the same analysis as above with 1000 simulations. The results are summarized in Table Table1.1. It can be seen from the table that the results using “simple” and “Med” are similar with mean LS scores ranging from 0.490 to 0.498 and standard errors ranging from 0.078 to 0.091. On the other hand, if the noise in the replicates is not normally distributed, the “Med” method should be more robust. On the other hand, the mean LS scores using “SD” and “MAD” are generally lower than that using the “simple” and “Med” methods. This maybe caused by the extra variation introduced when estimating the standard deviation or maximum absolute deviation from the data.

#### Running time comparison

We benchmarked the running time performance of the new eLSA implementation and the old R script. For a dataset of 72 time series each with 35 time points, we tried eLSA analysis with 100 bootstraps, 1000 permutations and a delay limit of 3. It took the old script 20462 seconds to finish the computation while the new C++ program used 2054 seconds, which is about 9 times faster. Meanwhile, the new implementation also reduces the memory consumption and increases input/output efficiency. The benchmark is carried out on a “Dell, PE1950, Xeon E5420, 2.5GHz, 12010MB RAM” computing node.

### The eLSA analysis pipeline

In this subsection, we briefly describe the eLSA analysis pipeline implemented into the eLSA software package, as shown in Figure Figure22.

**eLSA pipeline**. Users start with raw data (matrices of time series) as input and specify their requirements as parameters. The LSA tools subsequently

*F*-transform and normalize the raw data and calculate Local Similarity (LS) scores and Pearson’s

**...**

#### F-transformation and data normalization

The eLSA tool accepts a matrix file where each row is a time series for one factor. It fills up missing data by a user-specified method. Zero to third order spline-based methods and the nearest neighbour method as implemented in the *Scipy* (http://www.scipy.org) interpolation module are available. It then transforms the data by the user-specified *F* function and normalizes the *F*-transformed data by the normal score transformation following *Li et al.*[22] (see Methods).

#### Local similarity scoring

Local similarity analysis calculates the highest similarity score between any pair of factors. Users can specify parameters, including, for example, the maximum shifts allowed. Local Similarity score is calculated using the eLSA dynamic programming algorithm (see Methods).

#### Permutation test

The statistical significance, the p-value, of LS score is evaluated using a permutation test. Briefly, eLSA randomly shuffles the components of the original time series and recalculates the LS score for the pairs. The p-value is approximated by the fraction of permutation scores that are larger (in absolute value) than the original score. Confidence interval for a given LS score is also found by bootstrapping from the replicated data. Finally, users can obtain significant eLSA association results by the combined use of p-value and FDR q-value thresholds as their filtering criteria.

#### Association network construction

Using only the significant associations, users can construct a partially directed association network. Generally, for two factors *X* and *Y*, if the time interval [*s*_{1},*t*_{1}] in *X* and [*s*_{2},*t*_{2}] in *Y* have the highest LS and *s*_{1} <*s*_{2}, we can infer that *X* leads *Y*; in other words, *X* possibly activates *Y*. In network visualization software (*e.g.,* Cytoscape [24]), one can use arrows to directionally indicate these lead patterns (i.e., *X* to *Y*, if *X* leads *Y*; otherwise undirected, if no direction is inferred). One can also use lines to indicate association types (solid, if *X* is positively associated with *Y*; otherwise dashed). Following these rules, one can build a partially directed association network based on eLSA results.

### Microbial community data analysis

As an immediate application, we applied the eLSA pipeline to a set of real microbial community time series data. This San Pedro Ocean Time Series (SPOTs) dataset, originally reported in *Steele et al.*[2] and *Countway et al.*[25], was collected following a biological feature (i.e. the chlorophyll maximum depth) off the coast of Southern California. The bacterial community was analyzed using the ARISA [4] technique and the protistan community was analyzed using the T-RFLP [26] technique. The dataset is composed of monthly sampled data from September 2000 to March 2004, including 40 time points without replicates. We analyzed the dataset with a delay limit of 3 months and 1000 permutations to evaluate the statistical significance of the LSA score. In this dataset, the factor names, including the operational taxonomic units and environmental factors, are previously defined by *Steele et al. *[2].

First, we compared the performance of Pearson’s correlation coefficient (PCC) and eLSA analysis in identifying potential local and time-delayed associations. Restricting the significance threshold for the q-value *Q* ≤ 0.01 and the p-value *P* ≤ 0.01, 1643 pairs of significant associations with eLSA were identified, and among them only 293 (~18%) were discovered by PCC (see Table Table2).2). Therefore, most significant associations found by eLSA would have been missed by PCC analysis in this case. The results are similar if we use less stringent criteria, i.e., *Q* ≤ 0.05 and *P* ≤ 0.05, where only 658 out of 2804 (~23%) eLSA significant associations were also found by PCC. We need to point out that, PCC also found some associations that were missed by eLSA. For example, with q-value *Q* ≤ 0.01 and the p-value *P* ≤ 0.01, PCC found 3237 significant associations and only 293 of them were found to be significant using eLSA. Therefore, eLSA is not a substitute but a complimentary approach to PCC, which specializes in finding local and possibly time-delayed associations. For a thorough analysis of a dataset, one should apply both approaches, which is why we also integrated PCC analysis into our software pipeline.

If we look at the top five positive and negative absolute highest LS scores from the unique associations (|*D*| ≤ 1) found by eLSA (*Q* ≤ 0.05 and *P* ≤ 0.05, see Table Table3),3), we can see most of them are time-dependent associations, either time-shifted or within a subinterval. The majority of these are, in any case, beyond the capacity of PCC. In addition, eLSA provides more information about its findings. For example, in the table, *Bac609* and *Bac675* factors are associated with a shift of one and *Euk97* and *boxy* (oxygen) factors are best associated within a time interval of length 21 starting at time point 15 with no delay. This kind of additional information is not easily obtainable from the PCC analysis but very important for further functional analysis. For instance, we construct an association network using all above unique eLSA associations, as shown in Figure Figure3.3. The obtained network obviously reveals some interesting dynamics of the microbial community, such as the domination of positive directed associations, the existence of environmental factors as hubs that are associated with many other factors, (e.g. nutrients such as *NO*_{2}, *PO*_{4}, *SiO*_{3} and oxygen), and the existence of some highly connected clusters formed by certain bacteria or eukaryote groups.

**Typical association network from the microbial community data.**Round- (brown), square- (blue) and triangle- (green) shaped nodes are bacteria, eukaryotes and environmental factors, respectively. Solid (red) edges are positively associated, while dashed

**...**

Taking a closer look at one of the topmost ranked association: *Bac609* and *Bac675* (see Table Table3),3), we found that they are closely following each other with a time shift of one month, where *Bac609* precedes *Bac675*. Further inspection suggests a yearly pattern that recurs with near regularity for this association, such that *Bac609* blooms in early springtime each year (time spots 6, 18 and 29 are February, January and March, respectively), and *Bac675* blooms one month later (see Figure Figure4a).4a). From the binning definition in *Steele et al. *[2], *Bac609* is a *Bacteroidetes* group bacterium while *Bac675* is an undefined bacterium. Since these microbial groups are uncultured, this association as well as many others uniquely identified by eLSA provides new insight into their ecological role in the ocean surface waters. Notice there is an unexpected abundance jump at time spot 35 of the *Bac675* series. The reason for this outlier however is unknown to us. While such prominent time-delayed associations as the *Bac609* and *Bac675* are easily visible, we must caution that time-dependent associations could also be too subtle to be viewed directly. Thus, statistical significance can provide a much more reliable guideline.

### Gene expression data analysis

Although LSA had its roots grounded in microbial community analysis, the technique can be readily applied to other biological time series data, such as replicated gene expression time series data from microarray and RNA-Seq experiments [27-29]. Here we show an example of applying eLSA to the dauer exit gene expression profile time series data of 446 genes from a *C elegans* study. The result of the original study suggests that the 446 genes under investigation have similar kinetics in both the dauer exit and the L1 starvation time course [30]. Here we use the dauer exit time series data consisting of 12 hourly time spots, each with four replicates. We analyzed the dataset with a delay limit of 3 hours and with 1000 permutations and 100 bootstraps.

The results are summarized in Table Table2.2. Comparing the *C. elegans* results to those of the microbial community, we see that gene-gene associations in this network are much denser, since a smaller number of genes end up with a much larger, rather than smaller, number of eLSA significant associations (e.g. 2804 versus 57991 for *Q* ≤ 0.05 and *P* ≤ 0.05, see Table Table2).2). Also different is that about 93% of these associations are found by PCC analysis as well. The high congruence between PCC and eLSA analysis may be due to the fact that about 90% of the eLSA findings are without delays, which thus are also amenable to PCC analysis.

Because these genes do not change expression level in both dauer exit and L1 starvation conditions, they are considered as common feeding response genes [30]. However, it is not clear whether they are correlated with each other in expression profiles under the dauer exit condition. To study this, we combined all eLSA and PCC significant associations with *Q* ≤ 0.05 and *P* ≤ 0.05, and found the average degree of the resulting association network is around 169, while that of previous microbial community data is around 12. Such high average degree for *C. elegans* genes shows the high similarity of their expression profiles, which also reflects their intimate functional coordination along the process. Therefore, our result suggests those feeding response genes are likely to be co-expressed under the dauer exit condition.

We next analyzed the unique eLSA associations. These associations form a dense association network themselves with a long-tailed degree distribution, as shown in Figure Figure5.5. While the degree distribution peaks at five, the most highly connected gene *48941* has a degree of 189. We also looked at the top 5 positive and 5 negative highest absolute LS scores unique associations by eLSA. Because replicates are available for this dataset, we are able to obtain the bootstrap confidence intervals for the LS score and they are given in Table Table4.4. Interestingly, we found most of the top LS associations involve high degree nodes, such as genes *48941*(189), *29494*(129), *29504*(128), *27993*(116), *436287*(106), *32607*(58), and *51986*(52) (degree in parenthesis). These high degree nodes could be regulation hubs in the feeding response pathway. Here we show an example of time-delayed association of gene *32607* and gene *51986* in Figure Figure4b.4b. In the figure, gene *51986* leads gene *32607* in expression profile change.

**Node degree distribution of associations in**. Shown is the node degree distribution of eLSA unique associations in C. elegans analysis. It shows a long-tail distribution with the maximum 189.

*C. elegans*analysisWe also analyzed all the eLSA associations together, including both unique and non-unique eLSA findings. Though most of the genes are still hypothetical protein coding genes, we do find a group of eukaryotic initiation factors: *30080*(eIF-3E), *33683*(eIF-3K), *21358*(eIF-3D), *33525*(eIF-4E), *32503*(eIF-1A) and *23975*(eIF-2B) in the 446 selected genes. This is as expected because both L1 starvation recovery and dauer exit will increase translation activities and result in high expression level of these genes. In addition, in the translation process, these factors work closely together to form different translation related complexes [31], so their expression levels should be highly correlated with each other. Actually, if we check the associations found by eLSA, we do see these factors form a clique together with all edges being positive associations and statistically significant (see Figure Figure6).6). The coherence of the eLSA finding and our biological knowledge shows that eLSA associations do reveal true associations within the biological system. However, as the majority of genes are still hypothetical, a thorough examination for true functional discoveries will require biological experiments.

## Discussion and conclusions

The eLSA technique extends LSA to time series data with replicates. This will help investigators better utilize the available information from their sample replicates and assist them in more effective and reliable hypothesis generation of time-dependent associations. In addition, a bootstrap framework is developed to estimate the confidence interval for the LS score. We also provided flexible missing value options and integrated efficient multiple testing control methods for the new eLSA technique. Using the microbial community and gene expression datasets, we demonstrated that eLSA uniquely captures additional time-dependent associations, including local and time-delayed association patterns, when compared to ordinary correlation methods, such as PCC. In this paper, we described the applications of our method with the time series data. Actually, the eLSA can be applied to any type of data with some gradients, including the response to different levels of treatments, temperature, humidity, or spatial distributions.

Currently, we use permutation test to assess the statistical significance of LS scores and bootstrap re-sampling to estimate the confidence interval of LS score. Both the permutation test and bootstrap methods are time consuming if high precise determination of statistical significance or confidence interval is desired. Theoretical developments on the distribution of the LS score are needed to eliminate or mitigate the computational burden required for these processes, and would be interesting topics for future studies. There is also a minimum sample number requirement for eLSA analysis. We suggest the sample number to be greater than 5+*D*, where *D* is the desired delay limit, since shifting and trimming by eLSA will further reduce the effective sample number and result in lower statistical power.

Finally, we implemented the eLSA technique and analysis pipeline into an Open Source C++ extension to Python with many new features. Specifically, the pipeline streamlines data normalization, local similarity scoring, permutation testing and network construction. As shown in Figure Figure7,7, we also provide a Galaxy web framework-based version [22] of the eLSA pipeline. This eLSA service features customized workflow, history and data sharing. In addition, we integrated Cytoscape [23] Java Web Start technology so that the association network generated by eLSA can be immediately visualized. Based on these efforts, we anticipate that our novel eLSA methodology, as implemented by the newly developed pipeline software, will significantly assist researchers requiring systematic discovery of time-dependent associations. More information about the software and web services is available from the eLSA homepage at http://meta.usc.edu/softs/lsa.

## Authors' contributions

LCX, JAS, JAC, ZGC, SLS, JJV, JAF, FS designed the study. LCX, ZGC, JAF and FS developed the methods. LCX, JAS, JAC developed and tested the software. LCX, JAS and JAC collected and analyzed the data. LCX, JAS, JAC, ZGC, JAF and FS wrote the paper.

## Competing interests

The authors declare that they have no competing interests.

## Acknowledgements

The authors would like to thank Cheryl Chow, Rohan Sachdeva, Barbara Campbell, Anders Andersson and Stefan Bertilsson for testing the eLSA software packages and web services and providing valuable suggestions. We thank Jun Zhao of PIBBS at University of Southern California for helpful discussion of *C. elegans* dataset analysis. We thank an anonymous reviewer for suggesting the “Med” and the “MAD” approaches. We also thank the Molecular Computational Biology Program at University of Southern California for providing computing resources. This research is partially supported by the National Science Foundation (NSF) DMS-1043075 and OCE 1136818.

This article has been published as part of *BMC Systems Biology* Volume 5 Supplement 2, 2011: 22nd International Conference on Genome Informatics: Systems Biology. The full contents of the supplement are available online at http://www.biomedcentral.com/1752-0509/5?issue=S2.

## References

- Fuhrman JA. Microbial community structure and its functional implications. Nature. 2009;459:193–199. doi: 10.1038/nature08058. [PubMed] [Cross Ref]
- Steele JA, Countway PD, Xia L, Vigil PD, Beman JM, Kim DY, Chow CE, Sachdeva R, Jones AC, Schwalbach MS. et al. Marine bacterial, archaeal and protistan association networks reveal ecological linkages. ISME J. 2011;5:1414–1425. doi: 10.1038/ismej.2011.24. [PMC free article] [PubMed] [Cross Ref]
- Chaffron S, Rehrauer H, Pernthaler J, von Mering C. A global network of coexisting microbes from environmental and whole-genome sequence data. Genome Res. 2010;20:947–959. doi: 10.1101/gr.104521.109. [PMC free article] [PubMed] [Cross Ref]
- Fisher MM, Triplett EW. Automated approach for ribosomal intergenic spacer analysis of microbial diversity and its application to freshwater bacterial communities. Appl Environ Microbiol. 1999;65:4630–4636. [PMC free article] [PubMed]
- Stepanauskas R, Moran MA, Bergamaschi BA, Hollibaugh JT. Covariance of bacterioplankton composition and environmental variables in a temperate delta system. Aquat Microb Ecol. 2003;31:85–98.
- Van Mooy BAS, Devol AH, Keil RG. Relationship between bacterial community structure, light, and carbon cycling in the eastern subarctic North Pacific. Limnology and Oceanography. 2004;49:1056–1062. doi: 10.4319/lo.2004.49.4.1056. [Cross Ref]
- Yannarell AC, Triplett EW. Geographic and environmental sources of variation in lake bacterial community composition. Appl Environ Microbiol. 2005;71:227–239. doi: 10.1128/AEM.71.1.227-239.2005. [PMC free article] [PubMed] [Cross Ref]
- Yannarell AC, Triplett EW. Within- and between-lake variability in the composition of bacterioplankton communities: investigations using multiple spatial scales. Appl Environ Microbiol. 2004;70:214–223. doi: 10.1128/AEM.70.1.214-223.2004. [PMC free article] [PubMed] [Cross Ref]
- Li X, Rao S, Jiang W, Li C, Xiao Y, Guo Z, Zhang Q, Wang L, Du L, Li J. et al. Discovery of Time-Delayed Gene Regulatory Networks based on temporal gene expression profiling. BMC Bioinformatics. 2006;7:26. doi: 10.1186/1471-2105-7-26. [PMC free article] [PubMed] [Cross Ref]
- Paver SF, Kent AD. Temporal patterns in glycolate-utilizing bacterial community composition correlate with phytoplankton population dynamics in humic lakes. Microb Ecol. 2010;60:406–418. doi: 10.1007/s00248-010-9722-6. [PubMed] [Cross Ref]
- Ruan Q, Dutta D, Schwalbach MS, Steele JA, Fuhrman JA, Sun F. Local similarity analysis reveals unique associations among marine bacterioplankton species and environmental factors. Bioinformatics. 2006;22:2532–2538. doi: 10.1093/bioinformatics/btl417. [PubMed] [Cross Ref]
- Wang G, Yin L, Zhao Y, Mao K. Efficiently mining time-delayed gene expression patterns. IEEE Trans Syst Man Cybern B Cybern. 2010;40:400–411. [PubMed]
- Shade A, Chiu CY, McMahon KD. Differential bacterial dynamics promote emergent community robustness to lake mixing: an epilimnion to hypolimnion transplant experiment. Environ Microbiol. 2010;12:455–466. doi: 10.1111/j.1462-2920.2009.02087.x. [PubMed] [Cross Ref]
- Lee ML, Kuo FC, Whitmore GA, Sklar J. Importance of replication in microarray gene expression studies: statistical methods and evidence from repetitive cDNA hybridizations. Proc Natl Acad Sci U S A. 2000;97:9834–9839. [PMC free article] [PubMed]
- Nguyen TT, Almon RR, DuBois DC, Jusko WJ, Androulakis IP. Importance of replication in analyzing time-series gene expression data: corticosteroid dynamics and circadian patterns in rat liver. BMC Bioinformatics. 2010;11:279. doi: 10.1186/1471-2105-11-279. [PMC free article] [PubMed] [Cross Ref]
- Balasubramaniyan R, Hullermeier E, Weskamp N, Kamper J. Clustering of gene expression data using a local shape-based similarity measure. Bioinformatics. 2005;21:1069–1077. doi: 10.1093/bioinformatics/bti095. [PubMed] [Cross Ref]
- Zhu D, Li Y, Li H. Multivariate correlation estimator for inferring functional relationships from replicated genome-wide data. Bioinformatics. 2007;23:2298–2305. doi: 10.1093/bioinformatics/btm328. [PubMed] [Cross Ref]
- Yao J, Chang C, Salmi ML, Hung YS, Loraine A, Roux SJ. Genome-scale cluster analysis of replicated microarrays using shrinkage correlation coefficient. BMC Bioinformatics. 2008;9:288. doi: 10.1186/1471-2105-9-288. [PMC free article] [PubMed] [Cross Ref]
- Littell RC, Pendergast J, Natarajan R. Modelling covariance structure in the analysis of repeated measures data. Stat Med. 2000;19:1793–1819. doi: 10.1002/1097-0258(20000715)19:13<1793::AID-SIM482>3.0.CO;2-Q. [PubMed] [Cross Ref]
- Venables WN, Ripley BD. Modern Applied Statistics with S. 4. Springer; 1997.
- Efron B, Tibshirani R. An Introduction to the Bootstrap. Boca Raton; London: Chapman & Hall/CRC; 1998.
- Li KC. Genome-wide coexpression dynamics: theory and application. Proc Natl Acad Sci U S A. 2002;99:16875–16880. doi: 10.1073/pnas.252466999. [PMC free article] [PubMed] [Cross Ref]
- Storey JD, Tibshirani R. Statistical significance for genomewide studies. Proc Natl Acad Sci U S A. 2003;100:9440–9445. doi: 10.1073/pnas.1530509100. [PMC free article] [PubMed] [Cross Ref]
- Cline MS, Smoot M, Cerami E, Kuchinsky A, Landys N, Workman C, Christmas R, Avila-Campilo I, Creech M, Gross B. et al. Integration of biological networks and gene expression data using Cytoscape. Nat Protoc. 2007;2:2366–2382. doi: 10.1038/nprot.2007.324. [PMC free article] [PubMed] [Cross Ref]
- Countway PD, Vigil PD, Schnetzer A, Moorthi SD, Caron DA. Seasonal analysis of protistan community structure and diversity at the USC Microbial Observatory (San Pedro Channel, North Pacific Ocean) Limnology and Oceanography. 2010;55:2381–2396. doi: 10.4319/lo.2010.55.6.2381. [Cross Ref]
- Vigil P, Countway PD, Rose J, Lonsdale DJ, Gobler CJ, Caron DA. Rapid shifts in dominant taxa among microbial eukaryotes in estuarine ecosystems. Aquat Microb Ecol. 2008;54:83–100.
- Bar-Joseph Z. Analyzing time series gene expression data. Bioinformatics. 2004;20:2493–2503. doi: 10.1093/bioinformatics/bth283. [PubMed] [Cross Ref]
- Tai YC, Speed TP. On gene ranking using replicated microarray time course data. Biometrics. 2009;65:40–51. doi: 10.1111/j.1541-0420.2008.01057.x. [PubMed] [Cross Ref]
- Tai YC, Speed TP. A multivariate empirical Bayes statistic for replicated microarray time course data. Ann Stat. 2006;34:2387–2412. doi: 10.1214/009053606000000759. [Cross Ref]
- Wang J, Kim SK. Global analysis of dauer gene expression in Caenorhabditis elegans. Development. 2003;130:1621–1634. doi: 10.1242/dev.00363. [PubMed] [Cross Ref]
- Kapp LD, Lorsch JR. The molecular mechanics of eukaryotic translation. Annu Rev Biochem. 2004;73:657–704. doi: 10.1146/annurev.biochem.73.030403.080419. [PubMed] [Cross Ref]

**BioMed Central**

## Formats:

- Article |
- PubReader |
- ePub (beta) |
- PDF (2.0M)

- Efficient statistical significance approximation for local similarity analysis of high-throughput time series data.[Bioinformatics. 2013]
*Xia LC, Ai D, Cram J, Fuhrman JA, Sun F.**Bioinformatics. 2013 Jan 15; 29(2):230-7. Epub 2012 Nov 23.* - Expanding the boundaries of local similarity analysis.[BMC Genomics. 2013]
*Durno WE, Hanson NW, Konwar KM, Hallam SJ.**BMC Genomics. 2013; 14 Suppl 1:S3. Epub 2013 Jan 21.* - Local similarity analysis reveals unique associations among marine bacterioplankton species and environmental factors.[Bioinformatics. 2006]
*Ruan Q, Dutta D, Schwalbach MS, Steele JA, Fuhrman JA, Sun F.**Bioinformatics. 2006 Oct 15; 22(20):2532-8. Epub 2006 Jul 31.* - WGCNA: an R package for weighted correlation network analysis.[BMC Bioinformatics. 2008]
*Langfelder P, Horvath S.**BMC Bioinformatics. 2008 Dec 29; 9:559. Epub 2008 Dec 29.* - Software packages for quantitative microarray-based gene expression analysis.[Curr Pharm Biotechnol. 2003]
*Dresen IM, Hüsing J, Kruse E, Boes T, Jöckel KH.**Curr Pharm Biotechnol. 2003 Dec; 4(6):417-37.*

- Ecological Modeling from Time-Series Inference: Insight into Dynamics and Stability of Intestinal Microbiota[PLoS Computational Biology. 2013]
*Stein RR, Bucci V, Toussaint NC, Buffie CG, Rätsch G, Pamer EG, Sander C, Xavier JB.**PLoS Computational Biology. 2013 Dec; 9(12)e1003388* - Differential Response of the Cynomolgus Macaque Gut Microbiota to Shigella Infection[PLoS ONE. ]
*Seekatz AM, Panda A, Rasko DA, Toapanta FR, Eloe-Fadrosh EA, Khan AQ, Liu Z, Shipley ST, DeTolla LJ, Sztein MB, Fraser CM.**PLoS ONE. 8(6)e64212* - Unexpected Diversity during Community Succession in the Apple Flower Microbiome[mBio. ]
*Shade A, McManus PS, Handelsman J.**mBio. 4(2)e00602-12* - Expanding the boundaries of local similarity analysis[BMC Genomics. ]
*Durno WE, Hanson NW, Konwar KM, Hallam SJ.**BMC Genomics. 14(Suppl 1)S3*

- PubMedPubMedPubMed citations for these articles
- TaxonomyTaxonomyRelated taxonomy entry
- Taxonomy TreeTaxonomy Tree

- Extended local similarity analysis (eLSA) of microbial community and other time ...Extended local similarity analysis (eLSA) of microbial community and other time series data with replicatesBMC Systems Biology. 2011; 5(Suppl 2)S15PMC

Your browsing activity is empty.

Activity recording is turned off.

See more...