Skip to main content
Bioinformatics logoLink to Bioinformatics
. 2013 Aug 29;29(21):2690–2698. doi: 10.1093/bioinformatics/btt462

Multiple alignment-free sequence comparison

Jie Ren 1, Kai Song 1, Fengzhu Sun 2,3, Minghua Deng 1, Gesine Reinert 4,*
PMCID: PMC3799466  PMID: 23990418

Abstract

Motivation: Recently, a range of new statistics have become available for the alignment-free comparison of two sequences based on k-tuple word content. Here, we extend these statistics to the simultaneous comparison of more than two sequences. Our suite of statistics contains, first, Inline graphic and Inline graphic, extensions of statistics for pairwise comparison of the joint k-tuple content of all the sequences, and second, Inline graphic, Inline graphic and Inline graphic, averages of sums of pairwise comparison statistics. The two tasks we consider are, first, to identify sequences that are similar to a set of target sequences, and, second, to measure the similarity within a set of sequences.

Results: Our investigation uses both simulated data as well as cis-regulatory module data where the task is to identify cis-regulatory modules with similar transcription factor binding sites. We find that although for real data, all of our statistics show a similar performance, on simulated data the Shepp-type statistics are in some instances outperformed by star-type statistics. The multiple alignment-free statistics are more sensitive to contamination in the data than the pairwise average statistics.

Availability: Our implementation of the five statistics is available as R package named ‘multiAlignFree’ at be http://www-rcf.usc.edu/∼fsun/Programs/multiAlignFree/multiAlignFreemain.html.

Contact: reinert@stats.ox.ac.uk

Supplementary information: Supplementary data are available at Bioinformatics online.

1 INTRODUCTION

A cis-regulatory module (CRM) is a stretch of DNA in charge of regulating expression of some nearby genes (Davidson, 2006). CRMs typically consist of a few hundred base pairs, and they contain multiple transcription factor binding sites (TFBS). As CRMs with similar TFBSs may show similar regulatory patterns, a pertinent question is how to classify CRM sequences and how to measure the similarity within a set of CRM sequences.

Usually, the similarity between two CRM sequences is assessed by either global (Needleman et al., 1970) or local alignment (Smith and Waterman, 1981). A main issue with applying alignment-based methods for this problem is that TFBSs are normally much shorter than the CRM, and hence the alignment score of two CRMs may be dominated by the content of their background sequences. Therefore, a high alignment score between two CRMs may arise without them containing similar TFBSs regulatory patterns. Moreover, especially in distantly related species, the CRM sequences may simply not be alignable (Arunachalam et al., 2010; Wolff et al., 1999). Finally, alignment-based methods are time-consuming. Hence, CRMs provide a challenging test case for sequence comparison; see also Hardison and Taylor (2012).

In contrast, alignment-free methods, first proposed by Blaisdell (1986), have been developed at a fast pace during the past two decades. Here, we focus on alignment-free sequence comparison based on the joint k-tuple content of sequences. For two sequences Inline graphic and Inline graphic of letters from a finite alphabet Inline graphic of size d, and for a k-tuple word Inline graphic, let Inline graphic denote the frequency of w in sequence A, and similarly Inline graphic denote its frequency in sequence B. We centralize the word counts based on a probabilistic model. Let Inline graphic denote the probability of occurrence of the word Inline graphic in the ith sequence, Inline graphic. For example, when the letters in the underlying sequence are assumed to be drawn independently at random from the identical distribution (the i.i.d. model), then Inline graphic, where Inline graphic is the probability of letter wj in the ith sequence; in practice, Inline graphic is estimated by the frequency of letter wj in the ith sequence.

For a word w, the centralized count variables

graphic file with name btt462m1.jpg (1)

and their approximate standardization,

graphic file with name btt462um1.jpg

measure the deviation of the word frequencies in the sequence from the word occurrence expectation in the so-called background sequences. The statistics Inline graphic and Inline graphic for alignment-free comparison of two sequences are now defined by

graphic file with name btt462um2.jpg

and

graphic file with name btt462um3.jpg

see Reinert et al. (2009) and Wan et al. (2010). In Reinert et al. (2009), it has been shown that these statistics are powerful in distinguishing two sequences related by a common motif. We refer to the first statistic as star-type and to the second statistic as Shepp-type; according to Shepp (1964), if the counts were independent mean zero normal variables, then the self-standardized statistic Inline graphic would again be normally distributed.

To eliminate the effect of the length of the sequences, two renormalized versions, Inline graphic and Inline graphic, of Inline graphic and Inline graphic are introduced in Liu et al. (2011) by applying the Cauchy–Schwarz inequality;

graphic file with name btt462um4.jpg

and, with

graphic file with name btt462um5.jpg

for Inline graphic,

graphic file with name btt462um6.jpg

Both Inline graphic and Inline graphic range from −1 to 1, with a value close to 1 when the sequences are closely related. For sequences that do not have the same length, the total number of k-tuple words could have a large influence on the value of D-type statistics, and hence for such sequences, we use the C-type statistics to measure the similarity. As CRM sequences vary by a few hundred base pairs in length, we only use the C-type statistics in our applications.

Variants of our D-type statistics have been considered in the literature; a main issue with them is that they may be dominated by single-sequence noise. In Lippert et al. (2002), it has been shown that the straightforward non-centred statistic Inline graphic may be dominated either by noise in the single sequences or by difference in sequence backgrounds. Thus, it has weak power in detecting relationship between two sequences; see also Kantorovitz et al. (2007); Reinert et al. (2009); Wan et al. (2010). In Kantorovitz et al. (2007), a standardized statistics Inline graphic was proposed, where Inline graphic and Inline graphic are the mean and standard deviation of D2 under a given model of the sequence. It was shown that Inline graphic outperforms D2. Yet, the noise in the single sequence may still dominate the statistics Inline graphic when the background sequence is not uniform (Reinert et al., 2009). Standardizing the count vectors themselves, as in Inline graphic and Inline graphic, resolves this issue.

In the work of Göke et al. (2012), the background sequence model is generalized from i.i.d to a first-order Markov chain model, showing that a first-order Markov chain model improves the ability of detecting similarity between regulatory sequences compared with the i.i.d model. Higher order Markov chain models could be considered, but owing to the limited length of CRM sequences, estimating the higher order Markov chain model parameters leads to an overfitting problem and results in poor performance (Göke et al., 2012). Göke et al. (2012) also showed that including the reverse complement of a word could increase the prediction accuracy.

Although the statistics Inline graphic and Inline graphic perform well for pairwise alignment-free sequence comparison, in applications, the similarity within a set of more than two sequences may be of interest. There are two main types of problems to tackle. The first problem is an identification problem. Suppose that we have already classified Inline graphic sequences according to whether they are CRMs of a particular type, and we are presented with a new sequence. How should we classify this sequence? The second problem is how to assess the similarity within a set of sequences. Both problems are motivated by the task of predicting sets of related CRMs, given a set of co-regulated genes.

In Kantorovitz et al. (2007), the overall similarity within a set of CRM sequences is addressed as follows. A set of CRMs, known to regulate expression in the same tissue and/or development stage, is taken as the so-called positive set. A set of equally many randomly chosen sequences, with lengths matching the CRMs, is taken as the so-called negative set. The positive set is randomly partitioned into two disjoint subsets of equal size, and each subset of sequences is concatenated to produce one long sequence. The similarity between these sequences can then be assessed using an alignment-free statistic for pairwise sequence comparison; Kantorovitz et al. (2007) recommend Inline graphic. As this method requires many repeats of the random partitioning, it is time-intensive, and hence alternative methods are of interest.

Here, we extend the renormalized pairwise alignment-free sequence comparison statistics Inline graphic and Inline graphic to two families of multiple statistics, denoted by Inline graphic and Inline graphic. We also introduce three families of average pairwise statistics for the identification problem, called Inline graphic, Inline graphic and Inline graphic, and their versions for measuring similarity within a set of sequences, called Inline graphic, Inline graphic and Inline graphic.

We evaluate these families of statistics by testing them on the identification problem described earlier in the text, both through a simulation study and through analysing real data, by using each of our statistics as a score; the higher the score, the more similar the sequences should be. In the simulation study, we follow the common motif model in Reinert et al. (2009) and Wan et al. (2010) but under a first-order Markov chain model for the background sequence. Then, we apply our statistics to the data from Blow et al. (2010) of tissue-specific enhancer CRMs identified in vivo in mouse embryos. We also evaluate these families for the task of assessing the similarity within sets of sequences, again using both the simulated sequences as mentioned previously and the CRM data from Blow et al. (2010).

Our evaluation is based on 90% confidence intervals (CI) for the area under the receiver operational characteristic (ROC) curve (AUC), which is implemented by the R package ROCR in Sing et al. (2005). In Hardison and Taylor (2012), it is emphasized that it is often the number of false positives that make CRM prediction not very successful. Hence, we also assess the performance of our statistics through 90% CIs for the false-positive rate at 20% sensitivity. We say that a statistic outperforms the other if the 90% CIs of the former statistic is smaller than the lower bound of the 90% CI of the latter statistic.

We find that although for real data all of our statistics show a similar performance, on simulated data, the Shepp-type statistics are in some instances outperformed by star-type statistics. The multiple alignment-free statistics are more sensitive to contamination in the data than the pairwise average statistics.

The article is organized as follows. In Section 2, we introduce two families of multiple alignment-free statistics, called Inline graphic and Inline graphic, for Inline graphic. Moreover, three families of average pairwise alignment-free statistics, called Inline graphic, Inline graphic and Inline graphic, are introduced with the identification problem in mind, as well as their generalizations Inline graphic, Inline graphic and Inline graphic for measuring similarity within a set of sequences. Section 3 contains the evaluation and comparison of these statistics for the CRM identification problem. Section 4 addresses the problem of measuring the similarity within a set of sequences. In Section 5, we assess the effect of contamination in the data. We summarize our results in Section 6.

2 METHODS

2.1 Multiple alignment-free statistics

Let Inline graphic be a set of sequences, where Inline graphic has length nk. Assume that the sequences follow a first order time-homogeneous irreducible aperiodic Markov chain with transition matrix T and stationary distribution π. For a word Inline graphic, the probability of word w in the ith sequence is then Inline graphic. We extend w to include its reverse complement Inline graphic. Then in our definition,

graphic file with name btt462um7.jpg

where Inline graphic is the number of occurrence of word w in the sequence Inline graphic.

Our proposed statistics use the absolute centralized word count variable Inline graphic; we call these the absolute statistics. We define our absolute star-type multiple alignment-free sequence comparison statistic by

graphic file with name btt462m2.jpg (2)

Similarly, following Quine (1994), our absolute Shepp-type multiple alignment-free sequence comparison statistic is defined as

graphic file with name btt462m3.jpg (3)

where Inline graphic and

graphic file with name btt462um8.jpg

For measuring the similarity within a set of sequences, we directly apply these statistics to a set of sequences as a measurement of similarity. Larger values indicate higher similarity among the sequences, and thus higher conservation of regulatory patterns for these sequences. We also use these multiple alignment-free statistics for the CRM identification problem, by measuring the similarity within a set of sequences containing one candidate sequence and the known CRM sets. Higher values of the statistics indicate higher similarity among the candidate sequence and the known CRM sequences, and a higher likelihood that the candidate sequence has a similar regulatory pattern as the given CRMs.

Although it would be tempting to use as extension of Inline graphic and Inline graphic, the statistics based on the products of the centred counts Inline graphic, these extensions do not work well when the number of sequences is odd. Indeed, for pairwise D2 type statistics, for closely related sequences, the centralized counts should often have the same signs so that the product Inline graphic would often be positive. However, for the multiple alignment-free statistics with an odd number of sequences, when all the centralized counts have a negative sign, their product will give a negative contribution to the similarity score. Therefore, instead of using Inline graphic, we use the absolute centralized word count variable Inline graphic; in the supplementary material, we also report on the statistics corresponding to (2) and (3) using the original centralized word count variables Inline graphic and the squared centralized word count variables Inline graphic.

2.2 Average pairwise alignment-free statistics

2.2.1 Identification of CRMs

Here, we consider what we call the CRM identification problem: Given a set of CRM sequences with similar TFBSs regulatory pattern, how can we identify new CRMs in the genome that belong to a similar regulatory pattern as the given CRMs? Suppose that we have a set of identified CRM sequences Inline graphic with a similar regulatory pattern, and we have a set Inline graphic of candidate sequences. We want to pick CRMs from the candidate set that have a similar regulatory pattern as sequences in S0.

There are two possible approaches to this problem. On the one hand, we can use Inline graphic and Inline graphic as the similarity score. On the other hand, we can measure the similarity by averaging over the pairwise alignment-free statistics Inline graphic or Inline graphic, respectively; the length-adjusted versions are

graphic file with name btt462m4.jpg (4)
graphic file with name btt462m5.jpg (5)

A closer look reveals that Inline graphic is the inner product between the standardized and normalized k-tuple vector of sequence ci and the arithmetic mean of the standardized and normalized k-tuple vector of sequence Inline graphic. By taking the geometric mean of the standardized and normalized k-tuple vectors of sequences Inline graphic instead of arithmetic mean, we create another length-adjusted statistic Inline graphic based on Inline graphic,

graphic file with name btt462um9.jpg
graphic file with name btt462m6.jpg (6)

Instead of taking the geometric mean based on the absolute centralized counts, we could have based it on the squared centralized counts. In simulations, we find that calculating the squared statistics requires more computations than the absolute version without considerable gain in precision, see Supplementary Materials 1.2.

2.2.2 Measuring similarity within sets of sequences

Now, we consider the task of assessing the similarity within sets of sequences. For a set Inline graphic, the multiple alignment-free statistics (2)–(3) can be used to measure the similarity within a set of sequences, but the average pairwise statistics need to be extended. Let Inline graphic Inline graphic. We define three average pairwise alignment-free statistics

graphic file with name btt462m7.jpg (7)
graphic file with name btt462m8.jpg (8)
graphic file with name btt462m9.jpg (9)

2.3 A simple example

We illustrate the methods with a simple example of the following five sequences, (i) ‘ATGCATAT’, (ii) ‘ATATATGC’, (iii) ‘ATGCATGT’, (iv) ‘ATATGCAT’, (v) ‘CTCGGAGA’, where the second sequence is the first one with the first and second half transposed; the third sequence is the first one with the second-to-last position changed from ‘A’ to ‘G’; the fourth sequence is the complement of the first one; and the last one has no 2-tuples in common with the other sequences. With k = 2, and all letters equally likely and independent (so Inline graphic), the 5 by 5 matrices calculated based on Inline graphic and Inline graphic are

graphic file with name btt462um10.jpg

and

graphic file with name btt462um11.jpg

As our statistics include the reverse complement, sequences 1 and 4 have a pairwise similarity of 1. Both of these pairwise statistics consider transposition as closer to the original sequence than the change of one letter; Inline graphic gives a higher score than Inline graphic for comparisons between the first four sequences, which are similar, and a lower score to comparison with the last sequence, which is different from the other sequences.

We also calculate the multiple statistics for comparing all 10 combinations of three sequences, see Table 1. Note that the values of the statistics cannot be compared across methods, and Inline graphic, Inline graphic and Inline graphic range between 0 and 1, whereas Inline graphic and Inline graphic and take values in the range between −1 and +1. For pairs of triplets that only differ in whether sequence 1 or sequence 4 is included (such as Inline graphic and Inline graphic), the similarity scores are the same; for such pairs, we only report the results when 1 is included. The scores for triplets involving both sequence 1 and 4 differ from the pairwise scores; adding the sequence 4 increases all scores except the Inline graphic score for Inline graphic.

Table 1.

The multiple statistics for comparing three sequences from the five sequences, (i) ‘ATGCATAT’, (ii) ‘ATATATGC’, (iii) ‘ATGCATGT’, (iv) ‘ATATGCAT’, (v) ‘CTCGGAGA’

Triplets Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic
Inline graphic 0.82 0.60 0.79 0.75 0.83
Inline graphic 0.95 0.80 0.95 0.93 0.94
Inline graphic 0.40 0.49 0.03 0.07 0.65
Inline graphic 0.89 0.81 0.89 0.84 0.92
Inline graphic 0.44 0.52 −0.04 −0.02 0.70
Inline graphic 0.42 0.62 0.04 0.07 0.70
Inline graphic 0.38 0.38 −0.11 −0.05 0.61

We would expect that the statistics pick up that sequence 5 is dissimilar to sequences 1–4. The pairwise similarity score between the sequences 1–4 and sequence 5 are all negative, indicating the strong dissimilarity between them. Similarly, the triplets including the sequence 5 have significantly smaller values of the similarity score than the others. Inline graphic and the three pairwise average statistics give the highest score for Inline graphic, whereas Inline graphic gives its highest score for Inline graphic, by considering the transposition as a more severe change than the change of one letter. All five statistics give the lowest score to Inline graphic. The multiple statistics as well as Inline graphic assign the second-lowest scores to Inline graphic, whereas the averaging statistics Inline graphic and Inline graphic assign their second-lowest scores to Inline graphic.

When replacing sequence 3 to be ‘ATACATAT’, that is, we replace the third letter ‘G’ by ‘A’ instead of replacing the second-to-last letter ‘A’ by ‘G’, then all five statistics assign the lowest score to {1,3,5} (data not shown).

3 PERFORMANCE ON CRM IDENTIFICATION

First, we evaluate and compare the proposed statistics (2)–(6) on the CRM identification problem. Given a set of known CRM sequences Inline graphic that have a similar TFBS regulatory pattern, and a set of candidate sequences Inline graphic, which contains both CRMs and background sequences, we group Inline graphic with each candidate sequence Inline graphic separately, where Inline graphic. Then, we find the similarity score for each set of sequences Inline graphic and predict that groups with higher score have the higher similarity.

3.1 Simulation study

To simulate the data for the CRM identification problem, we generate two types of sequences: the first type are to resemble CRM sequences, with common binding motifs inserted, and the second type are background sequences, without any motifs. For simplicity, we refer to the first type as CRM sequences in this subsection. We generate the simulated sequences following the ‘common motif’ model proposed in Reinert et al. (2009) but under the first-order Markov chain sequence background model instead of an i.i.d model.

Let Inline graphic denote the nucleotide alphabet. For a background sequence Inline graphic of length Inline graphic consisting of letters from Inline graphic, each letter Inline graphic is generated sequentially under an irreducible aperiodic first-order Markov chain model, parameterized by a transition probability matrix Inline graphic, where Inline graphic Inline graphic, Inline graphic. Based on the transition matrix, we derive the stationary distribution Inline graphic. Then, the letter Inline graphic of the first position is randomly chosen according to Inline graphic, and subsequent letters Inline graphic are randomly generated depending on the previous letter Inline graphic following the Inline graphic row of the transition matrix Inline graphic. Here, we use the Markov transition matrix estimated from the real CRM sequences in mouse forebrain.

To generate CRM sequences, we insert the motif word Inline graphic of length Inline graphic randomly into the background sequence at rate Inline graphic. That is, for a background sequence Inline graphic with length n, where Inline graphic, we generate Bernoulli random variables Inline graphic with Inline graphic. If for position k, Inline graphic, and no motif has been inserted which overlaps position k, then we replace Inline graphic by the word m. Motif insertions are not allowed to overlap.

This toy model is clearly overly simplistic; CRMs are often defined by their functional output rather than their motif content. Hence, the shared motif content of similar CRMs can be rather complicated. Yet, the model picks up on one mechanism that may relate CRMs, see Hardison and Taylor (2012), and it is useful as a model to assess the performance of the five statistics. Moreover, we can relate the results to previous studies such as Reinert et al. (2009), which used the same toy model.

We set the length of sequences in both the positive and the negative sets to Inline graphic base pairs. We consider Inline graphic Inline graphic. For each value of Inline graphic, we first generate 10 CRMs as the known CRM set Inline graphic. Then, for the candidate set Inline graphic, we generate 200 sequences in total—a set Inline graphic of 100 CRMs with the same motif word m and the same insertion rate Inline graphic as for Inline graphic, and a set Inline graphic of 100 background sequences. For each of the following experiments, we simulate 100 repeats.

Table 2 shows (a) the 90% CI of AUC score and (b) the 90% CI of false-positive rate at 20% sensitivity of the five similarity measures (2)–(6) over 100 repeats under the first-order Markov chain sequence model, when Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic Inline graphic.

Table 2.

(a) The 90% CI of AUC scores and (b) the 90% CI of false-positive rate at 20% sensitivity for the CRM identification problem on simulated data over 100 repeats under a first-order Markov chain, Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic; Inline graphic is the motif density

Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic
(a) The 90% CI of AUC scores
    0.95 [1.00,1.00] [0.65,0.83] [1.00,1.00] [1.00,1.00] [1.00,1.00]
    0.97 [1.00,1.00] [0.57,0.75] [1.00,1.00] [1.00,1.00] [1.00,1.00]
    0.99 [0.99,1.00] [0.48,0.63] [0.98,1.00] [0.93,0.98] [0.98,1.00]
    0.991 [0.98,1.00] [0.46,0.62] [0.97,0.99] [0.91,0.97] [0.97,1.00]
    0.993 [0.96,0.99] [0.46,0.62] [0.91,0.97] [0.82,0.92] [0.92,0.98]
    0.995 [0.88,0.95] [0.45,0.59] [0.78,0.89] [0.69,0.82] [0.75,0.89]
(b) the 90% CI of the false positive rate at 20% sensitivity
    0.95 [0.00,0.00] [0.00,0.06] [0.00,0.00] [0.00,0.00] [0.00,0.00]
    0.97 [0.00,0.00] [0.01,0.12] [0.00,0.00] [0.00,0.00] [0.00,0.00]
    0.99 [0.00,0.00] [0.07,0.24] [0.00,0.00] [0.00,0.00] [0.00,0.00]
    0.991 [0.00,0.00] [0.07,0.26] [0.00,0.00] [0.00,0.01] [0.00,0.00]
    0.993 [0.00,0.00] [0.08,0.25] [0.00,0.00] [0.00,0.02] [0.00,0.00]
    0.995 [0.00,0.00] [0.10,0.27] [0.00,0.03] [0.00,0.08] [0.00,0.02]

For the 90% CI of AUC scores, most of the statistics show a good performance and, based on a 90% CI, are not statistically significantly different, with the exception of Inline graphic, which is outperformed by the other statistics. As Reinert et al. (2009) and Song et al. (2013) find that Shepp-type statistics are worse than star-type statistics in their simulation studies, the poor perfomance of Inline graphic is not a surprise.

When Inline graphic is larger than 0.995, the values of the AUC score for our statistics become close to 0.5 (data not shown), which is the AUC expected from random guesses. The reason behind this deterioration is simply that the higher Inline graphic is, the fewer motifs are inserted in the generated CRM sequences. For example, when Inline graphic, there are 30% of CRM sequences having at most one instance of the motif inserted. When Inline graphic, then 65% of CRM sequences have at most one instance of the motif inserted. The 5% precision values give similar results, with much larger standard deviations due to smaller numbers; they can be found in the Supplementary Table S1.

The false-positive rates at 20% sensitivity are fairly low with the exception of Inline graphic, which is outperformed by all other statistics for large Inline graphic.

3.2 Mouse tissue data

Although the results from the simulation study are encouraging, we need to test the statistics on real data, and we use CRM data as our test case. Tissue-specific enhancers in mouse embryos have been identified in Blow et al. (2010) using ChIP-Seq technology with the enhancer-associated protein p300. There are four tissues under study, namely, forebrain, midbrain, limb and heart. We take the four datasets one by one as our experimental data.

We filter out the CRM sequences that are too long or too short because our statistics may not work well when there is considerable heterogeneity in sequence length in conjunction with a possible model mis-specification. Therefore, we take sequences with length between 1000 and 1100 base pairs and ensure a maximum of 30% of repetitive region, as our CRM sequences. There are 106 of 2759 sequences meeting the criteria in forebrain dataset, 142 of 2786 in midbrain, 102 of 3839 in limb and 78 of 3597 in heart. Supplementary Table S4 of the supplementary materials shows the results for the full dataset; they are qualitatively similar.

As an indication of the strength of the regulatory patterns in CRM, we use the QuEST Scores as provided in the supplementary table of Blow et al. (2010). We use the CRMs with the 15 highest QuEST scores as the candidate sequences for Inline graphic and denote them as Inline graphic; the set Inline graphic of the remaining CRMs is taken as set of candidate sequences for Inline graphic. For the set Inline graphic, we randomly select a set Inline graphic of sequences with the same length as the sequences in Inline graphic from the mouse genome.

We randomly choose 10 sequences from Inline graphic to form the set Inline graphic, and 30 sequences from Inline graphic as well as 30 sequences from Inline graphic to form the candidate sequences set Inline graphic. Assuming that the sequences come from a first-order Markov chain model, we calculate the five statistics (2)–(6) to score the similarity within each set Inline graphic, where Inline graphic, and evaluate their prediction accuracy by the AUC. We repeat the experiment 30 times. Table 3 shows (a) the 90% CI of AUC scores and (b) the 90% CI of false-positive rate at 20% sensitivity of each of the five statistics in mouse forebrain, midbrain, limb and heart tissue enhancers datasets, under the first-order Markov chain model and Inline graphic. The average values are located fairly in the middle of the intervals (data not shown).

Table 3.

(a) The 90% CI of AUC scores and (b) the 90% CI of false-positive rate at 20% sensitivity for the CRM identification on four mouse tissue-specific enhancer datasets, under a first-order Markov chain; Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic

Tissue Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic
(a) The 90% CI of AUC scores
    Forebrain [0.52,0.69] [0.67,0.85] [0.58,0.77] [0.55,0.74] [0.51,0.71]
    Midbrain [0.51,0.71] [0.55,0.71] [0.64,0.81] [0.61,0.79] [0.53,0.74]
    Limb [0.68,0.82] [0.58,0.83] [0.69,0.86] [0.64,0.81] [0.62,0.83]
    Heart [0.41,0.62] [0.52,0.77] [0.57,0.79] [0.58,0.78] [0.51,0.67]
(b) The 90% CI of the false-positive rate at 20% sensitivity
    Forebrain [0.00,0.19] [0.00,0.07] [0.00,0.14] [0.02,0.19] [0.02,0.17]
    Midbrain [0.07,0.25] [0.00,0.20] [0.00,0.15] [0.00,0.15] [0.07,0.27]
    Limb [0.00,0.08] [0.00,0.10] [0.00,0.05] [0.00,0.13] [0.00,0.12]
    Heart [0.07,0.27] [0.00,0.17] [0.00,0.22] [0.03,0.17] [0.07,0.29]

For the AUC scores, all of the 90% CIs for each tissue type overlap, indicating that the statistics perform similarly. It is notable that the 90% AUC CIs for the limb dataset are on average higher than those in the other three datasets. This finding is consistent with the fact that the sequences in limb dataset have relatively high QuEST scores, indicating that the limb dataset has a strong regulatory signal. Most of the 90% CIs for the false-positive rate at 20% sensitivity contain 0, and they all overlap, indicating again that the statistics perform similarly.

Summarizing our results from the simulation study and the mouse tissue data, while all the statistics perform similarly on the real data, in the simulation study the combined Shepp-type statistic Inline graphic is outperformed by the other statistics for large Inline graphic.

4 PERFORMANCE ON MEASURING SIMILARITY

To assess whether a set of regulatory sequences such as the set of CRMs are scored higher by our proposed statistics (2)–(3) and (7)–(9) than a set of unrelated sequences randomly chosen from the genome, we construct the evaluation model as follows. We make up two sets of sequences: the so-called positive set containing CRM sequences with a similar regulatory pattern and the so-called negative set containing unrelated sequences randomly chosen from the genome. The two sets are constructed to contain the same number of sequences and have the same lengths. Each triplet of three sequences from the positive set is measured for their similarity by the proposed five statistics, and so is each triplet in the negative set. We assess the statistics by first ranking all triplets from both positive and negative sets by their scores. Triplets from the positive set are treated as ‘+’ and triplets from the negative set are treated as ‘−’. For a given threshold, if the value of a statistic for a triplet is above the threshold, the triplet is predicted as ‘+’; otherwise the triplet is predicted as ‘−’.

4.1 Simulation study

Following the simulation methods detailed in Section 3.1, we generate 50 CRM-like sequences for the positive set, and 50 background sequences for the negative set, all of length Inline graphic base pairs. We carry out the experiment for motif insertion rate Inline graphic. For each Inline graphic, we repeat the experiment 30 times and calculate the 90% CI of AUCs together with that of the false-positive rate at 20% sensitivity. Table 4 shows (a) the 90% CI of AUC score and (b) the 90% CI of false-positive rate at 20% sensitivity of the five similarity measures on simulated data, under the first-order Markov chain sequence model.

Table 4.

(a) The 90% CI of AUC scores and (b) the 90% CI of false-positive rate at 20% sensitivity for measuring similarity within a set of sequences on simulated data, under the first-order Markov chain sequence model, Inline graphic, Inline graphic, Inline graphic, Inline graphic; Inline graphic is the motif density

Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic
(a) The 90% CI of AUC scores
    0.95 [1.00,1.00] [0.99,1.00] [1.00,1.00] [1.00,1.00] [1.00,1.00]
    0.97 [1.00,1.00] [0.88,0.95] [1.00,1.00] [1.00,1.00] [1.00,1.00]
    0.99 [0.89,0.99] [0.56,0.69] [0.95,0.99] [0.85,0.91] [0.77,0.91]
    0.991 [0.83,0.98] [0.51,0.70] [0.93,0.97] [0.82,0.88] [0.69,0.89]
    0.993 [0.67,0.88] [0.48,0.65] [0.83,0.91] [0.72,0.81] [0.57,0.78]
    0.995 [0.53,0.76] [0.48,0.70] [0.70,0.81] [0.63,0.73] [0.51,0.72]
(b) The 90% CI of false-positive rate at 20% sensitivity
    0.95 [0.00,0.00] [0.00,0.00] [0.00,0.00] [0.00,0.00] [0.00,0.00]
    0.97 [0.00,0.00] [0.00,0.00] [0.00,0.00] [0.00,0.00] [0.00,0.00]
    0.99 [0.00,0.00] [0.05,0.14] [0.00,0.00] [0.00,0.01] [0.00,0.01]
    0.991 [0.00,0.00] [0.04,0.19] [0.00,0.00] [0.01,0.01] [0.00,0.03]
    0.993 [0.00,0.01] [0.07,0.23] [0.00,0.01] [0.01,0.05] [0.01,0.12]
    0.995 [0.01,0.16] [0.05,0.23] [0.01,0.05] [0.04,0.09] [0.03,0.21]

In this simulation study, the Shepp-type statistics Inline graphic and Inline graphic are outperformed by the other statistics when Inline graphic is large, and Inline graphic is outperformed by the star-type statistics for Inline graphic. This conclusion is consistent with the simulation results for the CRM identification problem.

4.2 Mouse tissue data

In this section, we use the tissue-specific enhancers in mouse embryos (Blow et al., 2010) again. Four tissues, forebrain, midbrain, limb and heart, are studied as separate datasets. Again, we take the CRM sequences with 1000–1100 bp as our CRM sequences pool. For the background sequences pool, we randomly select sequences from the mouse genome, of the same length as that of the CRM sequences.

For each tissue, we randomly choose 20 CRMs from the CRM pool as the positive set, and we choose 20 background sequences from the background sequences pool as the negative set. Then we calculate statistics (2)–(3) and (7)–(9) for the triplets from the positive set and from the negative set, and we compute the AUC; again we run 30 repetitions. Table 5 presents (a) the 90% CI of AUC scores and (b) the 90% CI of false-positive rate at 20% sensitivity for the five statistics on each of mouse four tissue-specific enhancer datasets under the first-order Markov chain model, and Inline graphic; again the average AUC scores lie in the middle of the intervals, and the 5% precision scores can be found in the appendix.

Table 5.

(a) The 90% CI of AUC scores and (b) the 90% CI of false-positive rate at 20% sensitivity for measuring similarity within a set of sequences based on four mouse tissue-specific enhancer datasets, under first-order Markov chain background sequences, Inline graphic, Inline graphic, Inline graphic, Inline graphic

Tissues Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic
(a) The 90% CI of AUC scores
    Forebrain [0.62,0.96] [0.60,0.87] [0.57,0.80] [0.51,0.79] [0.69,0.97]
    Midbrain [0.65,0.93] [0.54,0.86] [0.58,0.83] [0.52,0.80] [0.68,0.94]
    Limb [0.75,0.97] [0.51,0.83] [0.64,0.89] [0.55,0.83] [0.77,0.99]
    Heart [0.49,0.87] [0.47,0.74] [0.58,0.78] [0.50,0.72] [0.61,0.88]
(b) The 90% CI of the false-positive rate at 20% sensitivity
    Forebrain [0.00,0.10] [0.00,0.13] [0.02,0.13] [0.03,0.22] [0.00,0.06]
    Midbrain [0.00,0.11] [0.01,0.21] [0.01,0.14] [0.02,0.22] [0.00,0.10]
    Limb [0.00,0.07] [0.01,0.16] [0.00,0.09] [0.01,0.15] [0.00,0.05]
    Heart [0.01,0.16] [0.04,0.25] [0.02,0.12] [0.05,0.20] [0.00,0.12]

For each tissue type, all of the 90% CIs overlap, showing that the statistics perform similarly.

We repeated the experiment on the full dataset, without restricting the sequence length, giving similar results, see Supplementary Tables S11 and S12. Again the AUC scores have relatively large deviations, and the differences between the AUC scores of the different statistics are not statistically significant.

5 THE EFFECT OF CONTAMINATION

To study the sensitivities of the statistics to the contamination of Inline graphic with random sequences, we carry out a simulation experiment; we concentrate on the CRM identification problem. For the simulation with Inline graphic, Inline graphic, Inline graphic, Inline graphic and Inline graphic, we randomly replace 10, 20 and 30% of sequences in Inline graphic with background sequences, to model the contamination of sequences in Inline graphic. Figure 1 shows the results of this simulation. We find that both multiple alignment-free statistics Inline graphic and Inline graphic are relatively more sensitive to the contamination because for Inline graphic, the AUC scores of Inline graphic begins to drop at 10% random sequences mixed into Inline graphic, and the AUC scores of Inline graphic drops at the 20% contamination of Inline graphic, whereas the other three pairwise average statistics Inline graphic, Inline graphic and Inline graphic keep their AUC scores to be 1. When Inline graphic, the statistics Inline graphic, Inline graphic and Inline graphic have the lowest lower bounds, whereas the performance of Inline graphic and Inline graphic is relatively stable. As the AUC scores of Inline graphic have already been ∼0.5 (near to random guess), they do not decrease further.

Fig. 1.

Fig. 1.

The 90% CI of AUC score (the bar) and average AUC scores (the position of the number) of the five statistics for the CRM identification on 0, 10, 20 and 30% contaminated Inline graphic sequences, under a first-order Markov chain, Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic; Inline graphic is the motif density, and 0% refers to the results in Table 2, for comparison with the case of no contamination of Inline graphic. The parameter values are (a) Inline graphic and (b) Inline graphic

The simulation study indicates that the multiple alignment-free statistics perform well when the sequences in Inline graphic have a strong regulatory pattern, but the mixture of random sequences in Inline graphic could largely reduce the performance of the multiple alignment-free statistics, compared with the pairwise average ones. In real data, our results in Table 3 show the similar trend. Blow et al. (2010) states that the forebrain CRM dataset is the most conserved in the four datasets, indicating most of the forebrain CRM sequences are real, and the fraction of random sequences is low. In our results, Inline graphic gives the best performance in forebrain dataset at the average values. The fact is consistent with the findings in Blow et al. (2010).

Further, to assess whether less contaminated data can improve the performance of the multiple alignment-free statistics, we use a more restricted criterion to construct Inline graphic. In every experiment of the 30 repeats, we randomly pick up five sequences from the CRMs with the 10 highest QuEST scores to construct Inline graphic, 30 sequences from the remaining CRMs with 50 highest scores to construct Inline graphic and 30 sequences from the background sequences generated in the same way as before. In this setting the average values of AUC score of the multiple alignment-free statistics increase more than those of the pairwise average statistics, although their CIs overlap.

6 DISCUSSION

The success of the alignment-free sequence comparison statistics Inline graphic and Inline graphic as studied in Reinert et al. (2009) and Wan et al. (2010) inspired us to define natural extensions for multiple alignment-free sequence comparison. We propose two families of multiple alignment-free statistics, Inline graphic and Inline graphic, which involve products of more than two vectors, and we compare these families to three families of average pairwise alignment-free statistics, Inline graphic, Inline graphic and Inline graphic, with generalizations Inline graphic, Inline graphic and Inline graphic.

Our statistics are tested on two problems, namely, the CRM identification problem (given a set of CRMs, identify new CRMs belonging to similar regulatory patterns as the given CRMs) and measuring the similarity within a set of CRM sequences. We evaluate the statistics both on simulated data and on mouse tissue data.

For both the CRM identification and measurement of the similarity within a set of CRM sequences, in simulations, the Shepp-type statistics are outperformed by other statistics when Inline graphic is large, whereas on real data, all of the 90% CIs overlap. The false-positive rate at 20% sensitivity is encouragingly small not only in simulations but also in real data. Contamination has a stronger effect on the multiple statistics than on the pairwise average statistics.

While Song et al. (2013) and Jiang et al. (2012) observed that the Shepp-type statistics outperform the star-type statistics for the comparison of whole-genome sequences and metagenomic communities, respectively, based on NGS reads data, here our data do not confirm this finding. Our data are consistent with the simulation results in Reinert et al. (2009); Wan et al. (2010), which show that for short sequences the star-type statistics perform better, whereas for long sequences, the Shepp-type statistics perform better; the CRM sequences in this article are of length of order 1000 bp and can hence be considered as short.

Our results on the real dataset when restricted to sequences of length 1000–1100 bp do not differ significantly from those on the full real dataset, indicating that our statistics control for sequence length.

Although on the CRM data we use, there is no significant difference between all five statistics, we conjecture that on high-quality data, the multiple statistics may outperform the average pairwise statistics. With the impending arrival of more high-quality data, our suite of statistics provides a toolbox ready to be used.

Pairwise alignment-free statistics have been generalized to allow for k-tuple word mismatches, see Burden et al. (2008) and Göke et al. (2012). It would be straightforward to extend our multiple alignment-free statistics to allow for word mismatches; the choice of mismatch weights is however not obvious, see Göke et al. (2012).

Supplementary Material

Supplementary Data

ACKNOWLEDGEMENTS

The authors would like to thank the referees for very helpful comments, which improved the article.

Funding: G.R. was supported in part by the Oxford Martin School. F.S. is partially supported by US NIH R21HG006199; and NSF DMS-1043075 and OCE 1136818. M.D. is supported by the National Natural Science Foundation of China (31171262, 11021463), and the National Key Basic Research Project of China (2009CB918503).

Conflict of Interest: none declared.

REFERENCES

  1. Arunachalam M, et al. An alignment-free method to identify candidate orthologous enhancers in multiple drosophila genomes. Bioinformatics. 2010;26:2109–2115. doi: 10.1093/bioinformatics/btq358. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Blaisdell B. A measure of the similarity of sets of sequences not requiring sequence alignment. Proc. Natl Acad. Sci. USA. 1986;83:5155–5159. doi: 10.1073/pnas.83.14.5155. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Blow M, et al. Chip-seq identification of weakly conserved heart enhancers. Nat. Genet. 2010;42:806–810. doi: 10.1038/ng.650. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Burden C, et al. Approximate word matches between two random sequences. Ann. Appl. Probab. 2008;18:1–21. [Google Scholar]
  5. Davidson E. The Regulatory Genome: Gene Regulatory Networks In Development and Evolution. Burlington, MA: Elsevier; 2006. [Google Scholar]
  6. Göke J, et al. Estimation of pairwise sequence similarity of mammalian enhancers with word neighbourhood counts. Bioinformatics. 2012;28:656–663. doi: 10.1093/bioinformatics/bts028. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Hardison RC, Taylor J. Genomic approaches towards finding cis-regulatory modules in animals. Nat. Rev. Genet. 2012;13:469–483. doi: 10.1038/nrg3242. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Jiang B, et al. Comparison of metagenomic samples using sequence signatures. BMC Genomics. 2012;13:730. doi: 10.1186/1471-2164-13-730. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Kantorovitz M, et al. A statistical method for alignment-free comparison of regulatory sequences. Bioinformatics. 2007;23:i249–i255. doi: 10.1093/bioinformatics/btm211. [DOI] [PubMed] [Google Scholar]
  10. Lippert R, et al. Distributional regimes for the number of k-word matches between two random sequences. Proc. Natl Acad. Sci. USA. 2002;99:13980–13989. doi: 10.1073/pnas.202468099. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Liu X, et al. New powerful statistics for alignment-free sequence comparison under a pattern transfer model. J. Theor. Biol. 2011;284(1):106–116. doi: 10.1016/j.jtbi.2011.06.020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Needleman S, et al. A general method applicable to the search for similarities in the amino acid sequence of two proteins. J. Mol. Biol. 1970;48:443–453. doi: 10.1016/0022-2836(70)90057-4. [DOI] [PubMed] [Google Scholar]
  13. Quine M. A result of Shepp. Appl. Math. Lett. 1994;7:27–32. [Google Scholar]
  14. Reinert G, et al. Alignment-free sequence comparison (i): statistics and power. J. Comput. Biol. 2009;16:1615–1634. doi: 10.1089/cmb.2009.0198. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Shepp L. Normal functions of normal random variables. SIAM Rev. 1964;6:459–460. [Google Scholar]
  16. Sing T, et al. ROCR: visualizing classifier performance in R. Bioinformatics. 2005;21:3940–3941. doi: 10.1093/bioinformatics/bti623. [DOI] [PubMed] [Google Scholar]
  17. Smith T, Waterman M. Identification of common molecular subsequences. J. Mol. Biol. 1981;147:195–197. doi: 10.1016/0022-2836(81)90087-5. [DOI] [PubMed] [Google Scholar]
  18. Song K, et al. Alignment-free sequence comparison based on next generation sequencing reads. J. Comput. Biol. 2013;20:64–79. doi: 10.1089/cmb.2012.0228. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Wan L, et al. Alignment-free sequence comparison (ii): theoretical power of comparison statistics. J. Comput. Biol. 2010;17(11):1467–1490. doi: 10.1089/cmb.2010.0056. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Wolff C, et al. Structure and evolution of a pair-rule interaction element: runt regulatory sequences in D. melanogaster and D. virilis. Mech. Dev. 1999;80:87–99. doi: 10.1016/s0925-4773(98)00196-8. [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary Data

Articles from Bioinformatics are provided here courtesy of Oxford University Press

RESOURCES