 Research Article
 Open Access
 Published:
On the comparison of regulatory sequences with multiple resolution Entropic Profiles
BMC Bioinformatics volume 17, Article number: 130 (2016)
Abstract
Background
Enhancers are stretches of DNA (100–1000 bp) that play a major role in development gene expression, evolution and disease. It has been recently shown that in highlevel eukaryotes enhancers rarely work alone, instead they collaborate by forming clusters of cisregulatory modules (CRMs). Although the binding of transcription factors is sequencespecific, the identification of functionally similar enhancers is very difficult and it cannot be carried out with traditional alignmentbased techniques.
Results
The use of fast similarity measures, like alignmentfree measures, to detect related regulatory sequences is crucial to understand functional correlation between two enhancers. In this paper we study the use of alignmentfree measures for the classification of CRMs. However, alignmentfree measures are generally tied to a fixed resolution k. Here we propose an alignmentfree statistic, called \(EP^{*}_{2}\), that is based on multiple resolution patterns derived from the Entropic Profiles (EPs). The Entropic Profile is a function of the genomic location that captures the importance of that region with respect to the whole genome. As a byproduct we provide a formula to compute the exact variance of variable length word counts, a result that can be of general interest also in other applications.
Conclusions
We evaluate several alignmentfree statistics on simulated data and real mouse ChIPseq sequences. The new statistic, \(EP^{*}_{2}\), is highly successful in discriminating functionally related enhancers and, in almost all experiments, it outperforms fixedresolution methods. We implemented the new alignmentfree measures, as well as traditional ones, in a software called EPsim that is freely available: http://www.dei.unipd.it/~ciompin/main/EPsim.html.
Background
How to measure the degree of similarity between biological sequences is one of the foremost questions on the mind of bioinformaticians. This problem relates to the identification of homologous sequences like proteins and, to this end, the use of tools like BLAST is nowadays a standard procedure. In this paper we study the same question but for regulatory sequences such as promoters or enhancers of genes. The detection of similarities between coding sequences is a widespread approach to estimate functional correlations. Indeed, there is a general belief that similar binding site contents in regulatory sequences are expected to drive similar expression patterns [1]. Moreover, large collections of regulatory sequences have become available after the advent of ChIPseq technologies and the identification of sequences regulating the same celltype in the analysis of ChIPseq data is definitely a crucial step.
Many articles [1] discuss recent views on enhancers or cisregulatory modules (CRMs), one of several types of genomic regulatory elements, and their coordinated action in regulatory networks. Enhancers are stretches of DNA (100–1000 bp) that play a major role in the development of gene expression. They can upregulate, i.e. enhance, the transcription process driving animal development. A single cell can give rise to a multitude of different cell types and organs which will acquire different functions by expressing different sets of genes [2]. These modules are known to play a key role in the regulation of the transcription process, for example in Human [3] and in Drosophila [4].
Here we summarize the main features of CRMs. First, they contain several short (6–15 bp) DNA motifs that act as binding sites for transcription factors (TFBSs) and often allow different nucleotides at some of the binding positions. In other words, there may be mutations on TFBSs. Second, these TFBSs act seemingly independently of the distance and orientation to their target genes as a consequence of looping. It follows that the strand to which a CRM under study belongs is unknown so both cases need to be considered. Third, they maintain their functions independently of the sequence context, are modular and contribute additively and partly redundantly to the overall expression pattern of their target genes. Finally, enhancers with similar transcription factors binding sites content have a high probability of bearing a similar function. This is why predictions and classifications of enhancers can be addressed by similarity searches. However, the presence of multiple binding sites, with different spacing between them, can make the comparison of two CRMs very difficult. For these reasons biologists need first to screen ChIPseq datasets to select cellspecific regulatory sequences on the basis of common contents.
A similarity measure for regulatory sequences is crucial to detect and understand functional similarities between two enhancers and will facilitate largescale analyses like clustering, prediction and classification. As opposed to traditional methods that output a list of putative TFBSs, alignmentfree methods [5–7] do not try to find any candidates. Instead, they analyze many long regulatory regions, which are composed by several TFBSs along with the background, in order to group together those sharing a similar content in terms of TFBSs. If the identification and positioning of TFBSs are of concern, then wellknown tools like MotifSampler [8] can be applied as a postprocess.
The comparison of sequences can be carried out without the need of costly alignments. A sequence can be represented by its word distribution. It has been shown that the word content and distribution can be effectively used to compare sequences in a number of applications [9]. This recent research field is usually referred as alignmentfree. In the context of CRMs, where it is assumed that a similar function is driven by the presence of different binding site contents, the idea to describe a sequence by its word distribution still works just as well. In addition, alignmentfree methods are receiving increasing attention because they are computationally efficient and can provide attractive alternatives when alignmentbased approaches fail. For example the study of organism evolution using wholegenome sequence is impossible to conduct with traditional alignment techniques [10, 11]. Similarly, the comparison of genomes from nextgeneration sequencing data can be performed only with alignmentfree methods [12–14]. Several alignmentfree methods have been devised for the identification of cisregulatory modules [5–7].
In general alignmentfree method are based on statistics of words with fixedlength k. The problem with these methods is that the performance depends dramatically on the choice of the resolution k [10]. For example in the analysis of enhancers using simulated data [5, 6], the best performing k is usually equal to the length of the implanted TFBS. In real cases its choice is critical because it is not possible to know the enhancer length in advance. Moreover, in the presence of several TFBSs, it is simply not feasible to select the k that best fits enhancers of different lengths. The statistical profile of variable length words in known CRMs has been used for the identification of potential CRMs in [15]. However, this method is supervised, in the sense that it uses orthologs of the known CRMs. In this paper we extend the idea of alignmentfree measures accounting for multiple resolutions and without depending neither on any knowledge nor accurate prediction of TFBSs.
The Entropic Profile (EP) is a function of the genomic location that captures the importance of that region with respect to the whole genome [16, 17]. This method proved useful for the identification of conserved genomic regions. The score EP is based on the distribution of variable length words. For each position, it computes a function that represents the deviation from the known distribution. This function is a good candidate to be transformed into an alignmentfree measure based on variable length word counts. However, EP can be computed only for a single sequence, and it cannot be directly applied as a mean for comparison. The main contributions of this paper are the followings:

we extend the function EP for pairwise sequence comparison;

as a byproduct, given that the word counts are not independent because of overlaps, we provide a formula for computing the exact variance of variable length word counts;

we will show that pairwise sequence similarity of regulatory sequences is able to estimate similar in vivo activity.
In the next Sections “Previous work on alignmentfree measures” and “Entropic profiles” we review the previous work on alignmentfree statistics and present the original definition of Entropic Profile. Then, in Section “Methods”, their statistical properties are studied and particular attention is paid to the role of the variance. The extension of the wellknown alignmentfree measures is discussed in Section “New alignmentfree measures derived from Entropic Profiles”, and implemented in a tool called EP_sim. In Section “Results and Discussion” the results are discussed and compared with the state of the art. Conclusions and future work are reported in Section “Conclusions”.
Previous work on alignmentfree measures
The common way to identify homologous sequences is sequence alignment, for which many algorithms have been proposed in literature [18, 19]. Nevertheless they are unsuitable for predicting and classifying enhancers through the matching of transcription factor binding sites for many reasons [9, 20]:

transcription factor binding sites are short motifs so they frequently match to genomic or even random DNA sequences so enhancer similarity or dissimilarity may be due primarily to their background;

enhancer location and orientation do not matter so no reliable alignment can be obtained;

they are timeconsuming and inadequate for comparing sequences in realistically large datasets, e.g. large ChIPseq datasets;

enhancers do not work alone and their coordinated action cannot be fully explored with a single alignment.
On the contrary, alignmentfree approaches provide viable alternatives [9, 20]. With the aim of effectively summing up sequence content they are usually based on kmer counts.
Historically, D _{2} [21], see Formula 1, is one of the first proposed similarities and is defined as the inner product of the kmer frequency vectors. Consider two genome sequences A and B, of length n, and let A _{ w } and B _{ w } be the frequencies of word w, of length k, in A and B. Let \(\tilde {A}_{w}=A_{w}  (nk+1)*p_{w}\), where p _{ w } is the probability of w under the null model. Despite its simplicity and distance properties, D _{2} can be dominated by the noise caused by the randomness of the background and has low statistical power to detect potential relationship. As a result, more powerful variants, \({D_{2}^{S}}\) and \(D_{2}^{*}\) [22], see Formulas 2 and 3, have been developed by standardizing the kmer counts with their expectations and standard deviations.
An implementation of D _{2}, \(D_{2}^{*}\) and \({D_{2}^{S}}\) is provided by ALF [5], which, by default, uses another similarity measure named N _{2}, one of the best available methods for the analysis of regulatory sequences. N _{2} aims at overcoming the limitation of exact word counts by taking into account word neighbourhood counts. N _{2} is defined similarly to \(D_{2}^{*}\) except that every word w is replaced with a set n(w) of words somehow linked to w, e.g. reverse complement and mismatches.
Several other alignmentfree statistics have been proposed recently for different applications: multiple alignment [23], phylogeny [11, 24], classification of NGS data [12, 13], reads clustering [25, 26], and many others.
The major drawback of alignmentfree measures is that they are all tied on the choice of the resolution k, which crucially influences performances but cannot be known in advance. Entropic Profiles, which are based on variable length word counts by definition, can be extended to create new alignmentfree measures accounting for multiple resolutions. In particular we will show that Entropic Profiles pave the way to more robust but still efficient alignmentfree methods.
Entropic profiles
The concept of Entropic Profiler (EP) was introduced to analyze DNA sequences, in particular to detect exceptional motifs [16]. The Entropic Profiler takes a genome in input and evaluates a function of the genomic location that captures the importance of that region with respect to the whole genome. It proceeds through three steps. First, it calculates the distribution of each word up to a maximum length. Second, for each position in the genome, it evaluates a function based on the distribution of the words ending there with length up to the maximum. Third, for each position, it computes the zvalue representing the deviation of that position from the known distribution. This score is based on the Shannon entropies of the word distribution. The formal definition of entropic profiles [16, 17] comes from the use of the CGR representation to estimate the sequence Renyi entropy on the basis of the Parzen window density estimation method. The EP is defined for every location i of the entire sequence S as:
where l is the length of the entire sequence, L the resolution, i.e. the kmer length, φ is a smoothing parameter, and c([i−k+1,i]) is the number of occurrences of \(x_{ik+1}\dots x_{i}\), i.e. the suffix of length k that ends at position i.
EP values are standardized with their arithmetic mean m _{ L,φ } and standard deviation s _{ L,φ }:
Entropic Profilers proved to be useful for the discovery of patterns in genome [17] and they can be computed efficiently in linear time and space [27–29]. By definition Entropic Profiles are based on multiple resolution kmers counts, thus they are not tied to a fixed resolution k, as almost all alignmentfree measures. Our intent is to extend this function for developing new alignmentfree measures for the prediction and classification of enhancers.
Methods
From Entropic Profiles to multiple resolution alignmentfree measures
In order to establish a suitable alignmentfree measure, first we need to study the statistical properties of Entropic Profiles. We can simplify the original Formula 4 and consider the main term, that we call simple entropy S E _{ w } of a word w=(w _{1},…,w _{ L }) of length L :
where c _{ w,k } is the number of occurrences of the kmer suffix s _{ w,k } and the weights a _{ k } have been generalized.
The statistical properties of S E _{ w } have not been carefully studied yet. In the previous works [27], only the expectation of this function has been explored. In addition, in [16, 17], the standardization is done with respect to the arithmetic mean and standard deviation (see Formula 6 and 7). This procedure can introduce biases due to the noise present in the input sequence. Indeed, the standardization does not depend on the word w that we want to score, but instead it is applied regardless of the particular word w, see Formula 5 where mean and variance are computed once and for all from the sequence under examination. Different words have different probability to occur, for example the string AAAA has more chance to appear than ACGT, because of its autocorrelation. Thus the number of occurrences of a word should be standardized with respect to the word statistics, as in \(D_{2}^{*}\) already reported in Formula 3. In order to replicate the same scheme we first need to study the statistical properties of the simple entropy S E _{ w }.
Computing the expected entropy
Without loss of generality the entire sequence \(S = \left (X_{1}, X_{2},\ldots, X_{i},\ldots, X_{l}\right)\) can be modeled by a stationary Markov chain [30]. Here, we use a firstorder Markov chain, but all results can be extended to any other order. Thanks to the stationarity of the Markov chain, the probability μ(w) that a word w occurs does not depend on the position i, and it is: \( \mu (w) = \mu \left (w_{1}\right) \prod _{j=2}^{L} \pi \left (w_{j1}, w_{j}\right)\), where \(\mu \left (w_{1}\right)\) is the probability that the first letter occurs and π(w _{ j−1},w _{ j }) is the transition probability from letter w _{ j−1} to w _{ j }.
It is useful to define the variable Y _{ i }(w), which indicates if w occurs at position i:
For each i, Y _{ i }(w) is a Bernoulli variable with parameter μ(w) so its expectation is E[Y _{ i }(w)]=μ(w) and its variance is V a r[Y _{ i }(w)]=μ(w)[1−μ(w)]. This indicator provides a way to define the number of occurrences c _{ w } of word w: \( c_{w} = \sum _{i = 1}^{l  L + 1} Y_{i}(w)\).
Now, based on the variables Y _{ i }(w), the expected entropy E[S E _{ w }] of the word w can be defined as in the following:
where
Note that, as opposed to Formula 3, where the expected number of occurrences of the word w is estimated as (l−k+1)μ(w) (see definition of \(\tilde {A}_{w}\)), here S E _{ w } accounts for multiple words of different lengths, and thus its expectation is computed accordingly.
Computing the variance of entropy
In this section we continue to study the statistical property of entropies S E _{ w }. If we consider the standardization proposed in Formula 3, we can note that the denominator does not contain the exact variance but an approximation. The variance is replaced by the estimated mean of the word occurrence across the two sequences. If the probability of the word pattern is small, this approach can be justified by considering a Poisson approximation for the individual word counts. Here instead we are interested in deriving the exact variance of entropies S E _{ w }.
The variance V a r[S E _{ w }] is important to take into account the dependence between entropies of overlapping words:
where the derivation of the covariance of the counts is nontrivial. There are two cases which need to be explored. If \(k' = k^{\prime \prime } \equiv k\) there is only one suffix of fixed length, and \(Cov\left [c_{w, k'}, c_{w, k^{\prime \prime }}\right ] = Var[c_{w, k}]\). Otherwise, if \(s_{w, k'} \neq s_{w, k^{\prime \prime }}\), one word is the suffix of the other. For the first case we need to extend and adapt the formula for V a r[c _{ w }] in [30]. The latter case is more involving because it deals with overlapping words of variable lengths. Here below we provide the exact formulas of the two cases.
Case 1: variance of the count
If \(k' = k^{\prime \prime } \equiv k\), the covariances can be simplified as \(Cov\left [c_{w, k'}, c_{w, k^{\prime \prime }}\right ] = Var[c_{w, k}]\). From [30], in order to derive V a r[c _{ w,k }] we need to sum three terms which respectively take into account:

1.
selfoverlap of the word with itself;

2.
partial selfoverlap, the suffix of the word with its prefix or viceversa;

3.
disjoint occurrences.
Formally:
where ε _{ u }(w) is the asymmetric overlap indicator
and t=d−k+1 and π ^{t}(w[k],w[1]) is the probability that the last letter of w is separated from an occurrence of w[1] by t−1 letters.
Case 2: covariance of the counts of words of different length
In this second case, \(w' = s_{w, k'} \neq w^{\prime \prime } = s_{w, k^{\prime \prime }}\) so one word is the suffix of the other. First of all, it can be assumed that \(w^{\prime \prime } = k^{\prime \prime } < w' = k'\) so, in this case, \(w^{\prime \prime }\) is a suffix of w ^{′}. This assumption is without loss of generality because of the symmetry of the covariance, \(Cov\left [c_{w, k'}, c_{w, k^{\prime \prime }}\right ] = Cov\left [c_{w, k^{\prime \prime }}, c_{w, k'}\right ]\). For simplicity of notation, let \(c_{w, k'} = c_{w'}\phantom {\dot {i}\!}\) and \(c_{w, k^{\prime \prime }} = c_{w^{\prime \prime }}\). The covariance can be expressed with respect to the random indicator variables, Y _{ i }(w), and developed by applying its wellknown properties:
Note that the indices vary between 1 and \(l  k^{\prime \prime } + 1\), so the last \(k'  k^{\prime \prime }\) values of Y _{ i }(w ^{′}) are all zero since there are not enough letters to make the word w ^{′}. The two terms in Formula 10 can be interpreted as follows:

1.
the former stands for all the terms due to two words of different length that do not start at the same position;

2.
the latter stands for all the terms due to two words of different length that start at the same position (yellow words in Fig. 1).
To reformulate the former and to study overlaps, we can always fix the first w ^{′} (the longest) and move \(w^{\prime \prime }\) (the shortest, i.e. its suffix). In particular, let d be the shift of the moving word \(w^{\prime \prime }\) with respect to the fixed word w ^{′}. A summary of the possible overlaps between w ^{′} and \(w^{\prime \prime }\) is shown in Fig. 1, so as to make the subsequent analysis of the two parts easier.
Part 1 of Eq. 10 can be reformulated by exchanging the sums over i and d. This way, i is fixed and d varied in order to consider the positions before i (left overlap) and after (right overlap).
The last formula has been rewritten to highlight the left and right overlaps. Note that the second part 2 of equation 10 simply represents the case d=0.
Under a firstorder Markov model (or greater), the indicators Y _{ i }(w ^{′}) and \(Y_{j}(w^{\prime \prime })\) are not independent, not even if the corresponding positions are more than k ^{′} letters away from each other [30]. Thus,
may be different from zero. Especially, there are three cases (see again Fig. 1):

left shift, d≥1 (red words);

right shift, d≥1 (blues and green words);

zero shift, d=0 (yellow word).
Left shift
This case is represented in red in Fig. 1.
where the first term comprehends two parts that respectively represent:

1.
prefix  suffix overlap: two overlapping words, the latter of which (red words in Fig. 1) starts before the beginning and ends before the end of the former.

2.
two non overlapping words.
Thus we can write:
where \(\varepsilon _{u}^{left}(w^{\prime \prime }, w')\) is the asymmetric overlap indicator
Since the expectation does not depend on the position i we can write:\(E[Y_{i}(w')]E[Y_{id}(w^{\prime \prime })] = \mu (w')\mu (w^{\prime \prime })\).
Right shift
Analogously (but not symmetrically),
where the first term comprehends three parts that respectively represent:

1.
substring  string overlap: two overlapping words, the latter (blue words in Fig. 1) starts after the beginning and ends before the end of the former.

2.
substring  prefix overlap: two overlapping words, the latter (green words in Fig. 1) starts before the end of the former and ends after it.

3.
two non overlapping words.
where \(\varepsilon _{u}^{right}(w', w^{\prime \prime })\) is the asymmetric overlap indicator
Zero shift
This case considers the prefix  string overlap, in other words two overlapping words starting at the same position the latter of which ends before the end of the former.
Finally, we can put them all together so as to derive the exact formula for the covariance of the counts of two words with different length:
This is the exact formula that, together with the other case, can be used to compute the variance of S E _{ w }. Unlike previous approaches that approximate the variance of equal length word counts, we have also provided a challenging formula for computing the exact variance of variable length word counts. For the sake of simplicity, as done in [5], the last two terms, i.e. the nonoverlapping terms, will be neglected thereby assuming that the occurrence of nonoverlapping words is independent of the sequence in between.
We believe that this result can be of general interest, and that it can be used also in other applications. For example exact word statistics are fundamental for the discovery of surprising/overrepresented patterns [30, 31].
New alignmentfree measures derived from Entropic Profiles
Entropies and counts are very much alike, as already described in the previous section. The basic intuition is that Entropic Profiles can be used instead of kmer counts, so that one can build alignmentfree statistics that are not based on the fixed length k, but that are multiple resolution. This suggests that the adaptation of the stateoftheart measures can be done by replacing the vector of kmer counts with the vector of entropies.
Consider two genome sequences A and B and let \(A_{SE_{w}}\) and \(B_{SE_{w}}\) be the entropies of word w in A and B. We can redefine classical alignmentfree measures as:
While the implementation of E P _{2} is straightforward, \(EP_{2}^{*}\) instead is based on the statistical properties of entropies. The theory developed in the previous section is preliminary to the implementation of \(EP_{2}^{*}\).
Note that Entropic Profiles, expectations and variances can be precomputed in linear time and space by adapting the implementation in [27]. Thus, the proposed statistics, as many others, can be computed efficiently.
We implemented these alignmentfree measures, as well as traditional ones, in a software called EPsim that is freely available^{1}. It is based on the library SeqAn [32] that provides efficient string primitives. Among the different options available, the possibilities to include reverse complements and to compute an approximated version of the variance are of note. In particular one can extend the formulas for the mean and variance to include also reverse complements. There are several ways to incorporate reverse complements into the score. The method we selected consists in taking the maximum between the entropies of a word and its reverse complement. In practice the fact that only the strongest signal is taken makes the effect of exceptional words more incisive. This solution is only one of the possibilities. In N _{2} [5], the kmer counts from the reverse and forward strand can be combined in many ways. There are four options: bothstrands, to calculate the pairwise score using both strands from the input sequences, mean, min and max. In general, the use of reverse complements will be of help for the detection of enhancers and in other applications.
Results and Discussion
This section deals with the testing procedures for the study of the statistical power of the proposed multiresolution sequence similarity measures. The task of pairwise comparison of regulatory sequences is much harder than traditional pairwise alignment since only very few shared words might lead to a similar activity. In this section we want to test if pairwise sequence similarity of regulatory sequences is able to estimate similar in vivo activity.
The same biological problem has been addressed in [5–7] and we chose to compare with these methods using the same experimental setup. Here, we report experiments on simulated and real regulatory sequences, by using the same evaluation procedure. In each experiment two equallength sets of sequences, which are named negative and positive set, are built. Sequences in the former are dissimilar while those in the latter similar. The positive predictive value (PPV) is evaluated in two steps: first similarity scores are computed for each pair of sequences in the two sets; then similarity scores are sorted in descending order, and the PPV is the percentage of pair of sequences from the positive set in the first half of the chart. The best PPV is 1 and means a perfect separation between negative and positive sets while a PPV close to 0.5 implies no statistical power. Performances will depend on the choice of the background model, the kmer length and the weights a _{ k }. For the latter we will use a Gaussian kernel with standard deviation σ, which is centered about k=L, i.e. \(a_{k} = e^{\frac {(L  k)^ 2}{2 \sigma ^ 2}}\).
In order to study the influence of the parameter σ on the performance curves, we devise a simple test. First, we randomly generate a set of sequences as negative set, then we create the positive set by implanting a set of similar motifs, of average length 5 (AGCCA, GCCA, TAGCCA, CCAG, AGCCAG), in those of the negative set. Figure 2 shows the results of the study of the influence of the standard deviation. In this example the sequence length is 500 and the insertion probability 0.01. An high standard deviation positively impacts performances when the kmer length is overestimated, because high values of the standard deviation make short motifs to have bigger weights. To exemplify the idea, if the standard deviation is 1.5, the four biggest weights are 1, 0.80, 0.41 and 0.13 and performances are influenced while if the standard deviation is 0.1, the Gaussian bell is so thin that \(EP^{*}_{2}\) is equivalent to \(D^{*}_{2}\). As expected the performances worsen when the kmer length is underestimated.
Implanted motifs on Drosophila genome
In this simulation study, the sequences in the negative set are randomly picked from a real genome while those in the positive set are built by implanting a set of motifs in those of the negative set, since random sequences are unrealistic backgrounds. Thus, as in [33], we chose the Drosophila genome, whose intergenic sequences, which are regions containing functionally important elements such as promoters and enhancers, are downloadable from FlyBase^{2}. Patterns can be artificially implanted via the pattern transfer model [22] or the revised one [33] with the aim of mimicking the exchange of genetic material. While, under the former model, only strings of the same length, e.g 5, are considered, under the latter, also strings of different length, e.g. 4, 5 and 6 are implanted.
The goal of this experiment is to assess the influence of the background model so as to use the best one in the next tests. It has been performed varying many parameters such as implanted motifs, insertion probability, entire sequence length and kmer length. Generally, firstorder Markov model (M1) outperforms the Bernoulli model (M0). This is outlined by Fig. 3, which shows performances as a function of background model and kmer length. In this example, only one motif AGCCAG, of length 6, has been implanted, the insertion probability has been set to 0.004, the sequences length is 2000 and the standard deviation is 0.5. It is important to observe that \(EP^{*}_{2}\) is better than N _{2} if the kmer length is overestimated, i.e. k≥6, as a consequence of the multiresolution property of entropic profiles.
Considering our limited knowledge of regulatory sequences [5], it is interesting to evaluate performances when implanting similar motifs of different length via the more realistic pattern transfer model revised. The motifs implanted are similar to each other, in the sense that they share common subsequences (AGCCA, GCCA, TAGCCA, CCAG, AGCCAG), with average length of 5. We have performed many experiments varying both kmer and entire sequence length. Figure 4 shows the results when the entire sequence length is 4000, the insertion probability 0.008 and the standard deviation 0.6. \(EP^{*}_{2}\) outperforms N _{2} and both variants of D _{2}, which do not take into account the statistical properties of counts or entropies, have no statistical power. The worse performance of D _{2} and E P _{2} are consistent throughout all experiments, thus we will concentrate on the comparison of \(EP^{*}_{2}\) and N _{2}. If a different set of motifs is implanted, the absolute performance can vary. However, the relative performance between the methods remains unaltered. In the previous Figure the pick is at kmer length 5, which is the selected value for the next experiment. Figure 5 shows that these results hold also varying the entire sequence length. Performances tend to increase with the length of the sequence, because the number of implanted motifs also increases, as expected.
Comparison of mouse regulatory sequences
The above simulations deal with artificial CRMs from unrelated sequences. The next series of experiments involves neither artificial enhancers nor implanted transcription factor binding sites. The positive set is build from ChIPseq data of real enhancers, which have been already identified in a genomewide manner using the coactivator protein p300 by [34, 35]. More precisely, it consists in sequences of length between 350 and 1000 that are issuespecific enhancers of mouse embryos active in one of the following tissues: forebrain, midbrain, limb or heart. These studies [34, 35] have identified 2543, 561, 2105 and 3597 peaks from forebrain, midbrain, limb and heart respectively. For the purpose of this study we select the top 200 peaks for each tissue.
In the first experiment, we want to assess if invivo identified enhancers can be distinguished from random mouse genome sequences. To this end, the negative set contains sequences taken at random from the mouse genome, which is downloadable from Ensembl ^{3}. To obtain accurate estimations, we calculated the average over 10 samples, each time drawing 20 sequences from the positive set of tissue specific enhancers. Using the same evaluation measures as in the previous section, we tested the ability of alignmentfree sequence comparison methods to detect functional similarity of regulatory sequences. Given that no artificial motif is implanted, which implies that the best motif length is unknown and function of the tissue, the chosen standard deviation is 0.7 so short motifs have bigger weights. The purpose is to take advantage of the multiresolution property. The results for \(EP^{*}_{2}\) and N _{2}, while varying the kmer length, are reported in Table 1. A summary of the average over all tissues is in Fig. 6. In general the performance of \(EP^{*}_{2}\) is better than N _{2} for different kmer lengths. If one considers the statistics of single bases, k=1, regulatory sequences can be detected with a PPV of 60 %. Probably because the GC content of regulatory sequences is different from random mouse regions. If larger k are considered the performance of both methods increase up to a maximum obtained for k=4. It is interesting to note that, as the parameter k increases the performance of both methods worsen, however, due to the multi resolution property the PPV of \(EP^{*}_{2}\) decreases less rapidly.
The previous test shows that tissuespecific enhancers have similar word content. However, the comparison with random genomic sequences can be biased by the technology, e.g. when it more likely extracts sequences with high or similar GCcontent, as already described in [33] and [5]. To avoid this bias, different regulatory sequences are compared with each other. In other words, the positive set contains the enhancers active in one of the tissues while the negative set contains the enhancers active in all the other. This is a much more challenging test, that can be used by biologists to select enhancers that drive a similar expression pattern. The results are averaged over 10 runs, the number of sequences per set is 35 and the standard deviation is 0.7 as before. The results in Table 2 show that \(EP^{*}_{2}\) is again better than N _{2} for different kmer lengths. However, in these experiments the frequency of single bases is not discriminative, unlike the previous tests. A comprehensive summary, for different kmer length, can be found in Fig. 7. These plots show the performance of pairwise comparison with alignmentfree methods for enhancers active in the same tissue versus enhancers active in different tissues. The performance is reduced compared to randomly selected genomic sequences. Nevertheless, enhancers active in the same tissue have higher pairwise scores.
These regulatory sequences can be further compared pairwise. Following the same setup as above, the pairwise comparison of all tissuespecific enhancers are shown in Table 3. Although the average results are similar to those of Table 2, the pairwise accuracy can vary greatly. Enhancers obtained from Forebrain and Midbrain tissues are difficult to be distinguished from other tissues. Interestingly Heart enhancers show greater similarities then all other enhancers. As reported in [35], the vast majority (84 %) of peaks in the heart enhancers do not overlap any of the other three tissues. These experiments confirm that similar tissuespecific enhancers have a higher sequence similarity, and thus they can be detected with alignmentfree methods.
Speed tests
In this section we assess the performance, in terms of running time, of the two measures \(EP_{2}^{*}\) and N _{2}. For a given word w, both methods need to count not only the occurrences of w, but N _{2} considers also all words at Hamming distance 1 from w, whereas \(EP_{2}^{*}\) sum up all suffixes of w. In the following experiments both methods include reverse complements as part of the occurrence counts. We create a dataset composed by 20 sequences taken at random from the mouse genome. All sequences have the same length and we test the running time while increasing the sequence length. The platform used for these experiments is a common laptop with Intel i7 and 4 GB of RAM. The results are summarized in Fig. 8. As expected the running time of both measures increases linearly with the length of the sequences. However, \(EP_{2}^{*}\) is about 35 % faster than N _{2}. This advantage is due to the fact that suffix counts can be easily recovered by exploiting word hashing properties.
Conclusions
In this paper we studied the use of alignmentfree measures to detect functional or evolutionary similarities among regulatory sequences. We introduced a multiple resolution alignmentfree method based on Entropic Profiles that is designed around the use of variablelength words combined with statistical properties. To evaluate the performance of several alignmentfree methods, we devised a series of tests on both synthetic and real data. In almost all simulations our method \(EP^{*}_{2}\) outperforms all other statistics. Importantly \(EP^{*}_{2}\) is also able to detect similarities between in vivo identified enhancer sequences, e.g. of mouse. This will help to better understand the sequencedependent code within CRMs, which is responsible for the large diversity of cell types.
As a byproduct we provide a formula to compute the exact variance of variable length word counts, a result that can be of general interest also in other applications, e.g. the discovery of surprising patterns. As a future direction we plan to implement different methods to incorporate reverse complements. Another context where the these statistics can be of help is the comparison of viral sequences.
References
 1
Shlyueva D, Stampfel G, Stark A. Transcriptional enhancers: from properties to genomewide predictions. Nat Rev Genet. 2014; 15:272–86.
 2
Bonn S, et al. Tissuespecific analysis of chromatin state identifies temporal signatures of enhancer activity during embryonic development. Nat Genet. 2012; 44(2):148–56.
 3
Wilson MD, et al. Speciesspecific transcription in mice carrying human chromosome 21. Science. 2008; 322(5900):434–8.
 4
Goto T, Macdonald P, Maniatis T. Early and late periodic patterns of even skipped expression are controlled by distinct regulatory elements that respond to different spatial cues. Cell. 1989; 57(3):413–22.
 5
Goke J, Schulz MH, Lasserre J, Vingron M. Estimation of pairwise sequence similarity of mammalian enhancers with word neighbourhood counts. Bioinformatics. 2012; 28(5):656–63.
 6
Liu X, Wan L, Reinert G, Waterman MS, Sun F, Li J. New powerful statistics for alignmentfree sequence comparison under a pattern transfer model. J Theor Biol. 2011; 1:106–16.
 7
Kantorovitz MR, Robinson GE, Sinha S. A statistical method for alignmentfree comparison of regulatory sequences. Bioinformatics. 2007; 23(13):249–55.
 8
Thompson W, Newberg L, Conlan S, McCue LA, Lawrence C. The gibbs centroid sampler. Nucl Acids Res. 2007; 35(2):232–7.
 9
Vinga S, Almeida J. Alignmentfree sequence comparison a review. Bioinformatics. 2003; 19(4):513–23.
 10
Sims G, Jun SR, Wu G, Kim SH. Alignmentfree genome comparison with feature frequency profiles (ffp) and optimal resolutions. PNAS. 2009; 106(8):2677–82.
 11
Comin M, Verzotto D. Alignmentfree phylogeny of whole genomes using underlying subwords. Algorithms Mol Biol. 2012; 7(1):34.
 12
Song K, Ren J, Zhai Z, Liu X, Deng M, Sun F. Alignmentfree sequence comparison based on nextgeneration sequencing reads. J Comput Biol. 2013; 20(2):64–79.
 13
Comin M, Schimd M. Assemblyfree genome comparison based on nextgeneration sequencing reads and variable length patterns. BMC Bioinformatics. 2014; 15(Suppl 9):1.
 14
Fan H, Ives A, SurgetGroba Y, Cannon C. An assembly and alignmentfree method of phylogeny reconstruction from nextgeneration sequencing data. BMC Genomics. 2015; 16:522.
 15
Kazemian M, Zhu Q, Halfon MS, Sinha S. Improved accuracy of supervised crm discovery with interpolated markov models and crossspecies comparison. Nucl Acids Res. 2011; 39(22):9463–72.
 16
Vinga S, Almeida JS. Local renyi entropic profiles of dna sequences. BMC Bioinformatics. 2007; 8:393.
 17
Fernandes F, Freitas A, Almeida J, Vinga S. Entropic profiler  detection of conservation in genomes using information theory. BMC Res Notes. 2009; 2:72.
 18
Smith T, Waterman M. Comparison of biosequences. Adv Appl Math. 1981; 2:482–9.
 19
Altschul SF, Gish W, Miller W, Myers EW, Lipman DJ. Basic local alignment search tool. J Mol Biol. 1990; 215:403–10.
 20
Song K, Ren J, Reinert G, Deng M, Waterman MS, Sun F. New developments of alignmentfree sequence comparison: measures, statistics and nextgeneration sequencing. Brief Bioinform. 2014; 15(3):343–53.
 21
Blaisdell BE. A measure of the similarity of sets of sequences not requiring sequence alignment. Proc Nat Acad Sci. 1986; 83:5155–5159.
 22
Reinert G, Chew D, Sun F, Waterman MS. Alignmentfree sequence comparison (i): statistics and power. J Comput Biol. 2009; 16(12):1615–34.
 23
Ren J, Song K, Sun F, Deng M, Reinert G. Multiple alignmentfree sequence comparison. Bioinformatics. 2013; 29(21):2690–8.
 24
Leimeister C, Boden M, Horwege S, Lindner S, Morgenstern B. Fast alignmentfree sequence comparison using spacedword frequencies. Bioinformatics. 2014; 30:1991–9.
 25
Comin M, Leoni A, Schimd M. Qcluster: Extending alignmentfree measures with quality values for reads clustering. Algoritm Bioinforma Lecture Notes Comput Sci. 2014; 8701:1–13.
 26
Comin M, Leoni A, Schimd M. Clustering of reads with alignmentfree measures and quality values. BMC Algorithms Mol Biol. 2015; 10:4.
 27
Comin M, Antonello M. Fast entropic profiler: An information theoretic approach for the discovery of patterns in genomes. IEEE/ACM Trans Comput Biol Bioinforma. 2014; 11(3):500–9.
 28
Parida L, Pizzi C, Rombo S. Entropic profiles, maximal motifs and the discovery of significant repetitions in genomic sequences. Algorithms Bioinform. 2014; 8701:148–60.
 29
Comin M, Antonello M. Fast Alignmentfree Comparison for Regulatory Sequences Using Multiple Resolution Entropic Profiles. In: Proceedings of the International Conference on Bioinformatics Models, Methods and Algorithms (BIOSTEC 2015): 2015. p. 172–7.
 30
Robin S, Rodolphe F, Schbathothers S. DNA, Words and Models: Statistics of Exceptional Words. Cambrige, UK: Cambridge University Press; 2005.
 31
Apostolico A, Comin M, Parida L. Varun: Discovering extensible motifs under saturation constraints. IEEE/ACM Trans Comput Biol Bioinformatics. 2010; 7(4):752–62.
 32
Doring A, Weese D, Rausch T, Reinert K. Seqan an efficient, generic c++ library for sequence analysis. BMC Bioinformatics. 2008; 9:11.
 33
Comin M, Verzotto D. Beyond fixedresolution alignmentfree measures for mammalian enhancers sequence comparison. IEEE/ACM Trans Comput Biol Bioinformatics. 2014; 11(4):628–37.
 34
Visel A, et al. Chipseq accurately predicts tissuespecific activity of enhancers. Nature. 2009; 457(7231):854–8.
 35
Blow MJ, et al. Chipseq identification of weakly conserved heart enhancers. Nat Genet. 2010; 42(9):806–10.
Acknowledgements
M. Comin was partially supported by the P.R.I.N. Project 20122F87B2.
Author information
Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors’ contributions
MC conceived the study; MA developed and tested computer programs for the analysis of regulatory sequences. Both authors read and approved the final manuscript.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.
About this article
Cite this article
Comin, M., Antonello, M. On the comparison of regulatory sequences with multiple resolution Entropic Profiles. BMC Bioinformatics 17, 130 (2016). https://0doiorg.brum.beds.ac.uk/10.1186/s1285901609802
Received:
Accepted:
Published:
DOI: https://0doiorg.brum.beds.ac.uk/10.1186/s1285901609802
Keywords
 Alignmentfree
 Sequence comparison
 Entropic profiles