 Research
 Open Access
 Published:
PIntron: a fast method for detecting the gene structure due to alternative splicing via maximal pairings of a pattern and a text
BMC Bioinformatics volume 13, Article number: S2 (2012)
Abstract
Background
A challenging issue in designing computational methods for predicting the gene structure into exons and introns from a cluster of transcript (EST, mRNA) sequences, is guaranteeing accuracy as well as efficiency in time and space, when large clusters of more than 20,000 ESTs and genes longer than 1 Mb are processed. Traditionally, the problem has been faced by combining different tools, not specifically designed for this task.
Results
We propose a fast method based on ad hoc procedures for solving the problem. Our method combines two ideas: a novel algorithm of proved small time complexity for computing spliced alignments of a transcript against a genome, and an efficient algorithm that exploits the inherent redundancy of information in a cluster of transcripts to select, among all possible factorizations of EST sequences, those allowing to infer splice site junctions that are largely confirmed by the input data. The EST alignment procedure is based on the construction of maximal embeddings, that are sequences obtained from paths of a graph structure, called embedding graph, whose vertices are the maximal pairings of a genomic sequence T and an EST P. The procedure runs in time linear in the length of P and T and in the size of the output.
The method was implemented into the PIntron package. PIntron requires as input a genomic sequence or region and a set of EST and/or mRNA sequences. Besides the prediction of the fulllength transcript isoforms potentially expressed by the gene, the PIntron package includes a module for the CDS annotation of the predicted transcripts.
Conclusions
PIntron, the software tool implementing our methodology, is available at http://www.algolab.eu/PIntron under GNU AGPL. PIntron has been shown to outperform stateoftheart methods, and to quickly process some critical genes. At the same time, PIntron exhibits high accuracy (sensitivity and specificity) when benchmarked with ENCODE annotations.
Background
A key step in the posttranscriptional modification process is called splicing and consists of the excision of the intronic regions of the premature mRNA (premRNA) while the exonic regions are then reconnected to form a single continuous molecule, the mature mRNA. A complex regulatory system mediates the splicing process which, under different conditions, may produce alternative mature mRNAs (also called transcript isoforms) starting from a single premRNA molecule. Alternative Splicing (AS), i.e. the production of alternative transcripts from the same gene, is the main mechanism responsible for the expansion of the transcriptome (the set of transcripts generated by the genome of one organism) in eukaryotes and it is also involved in the onset of several diseases [1].
A great extent of work has been performed to solve two basic problems on AS: characterizing the exonintron structure of a gene and finding the set of different transcript isoforms that are produced from the same gene. Some computational approaches, based on transcript data, for these crucial problems have been proposed; indeed good implementations are available [2–9]. Recently, some tools related to the problem, but limited to the specific task of predicting splice junctions from NextGeneration Sequencing (NGS) data, have been designed [10–13]. These tools are computationally intensive and would require a postprocessing step to filter the correct data that can be related to the alternative exonintron structure of a gene. Moreover, the literature provides efficient solutions for computing a specific spliced alignment of an EST against the genome (for example Exonerate [14], GMAP [15] and Spaln [16]). However these tools are designed to compute only spliced alignments and not to directly provide the complete exonintron structure of a gene and its fulllength isoforms.
In this paper we provide a specifically designed algorithm  efficient from both a theoretical and an empirical point of view  to predict the exonintron structure of a gene from general transcript data that is optimal with respect to constraints derived by the input data. The algorithm is implemented in a tool, called PIntron. Similarly as recent programs [5, 7], PIntron is a method for exonintron structure prediction, but differently from these tools is able to efficiently process complex genes or genes associated with a large cluster of ESTs. Indeed, the accurate prediction of the exonintron structure of a gene is a computational hard task when the redundancy of the information given by EST data must be taken into account. More precisely, combinatorial methods for the problem are highly accurate when they are able to combine two different steps: (1) producing putative spliced alignments of ESTs against the gene region and (2) selecting among the different putative spliced alignments of each EST those confirming the same gene structure under some optimization criteria. This second step has been proved to be NPhard [17] thus requires efficient heuristics.
On the other hand, finding putative spliced alignments (first phase) could be a challenging task when more than one alignment exists for the same transcript. Indeed, for instance, there could be different possible splicing junctions between consecutive exons because of the presence sequencing errors or repeated genomic regions. As a consequence, choosing the correct spliced alignment of a single EST sequence requires to perform a multiple comparison between several spliced alignments of all the EST sequences in order to find the ones that support a common putative gene structure. In [18] a detailed discussion of this issue is provided.
Methods
In this paper we show how to efficiently solve the integration of the two steps of finding the (possibly different) spliced alignments of a cluster of transcripts and using them to compute a common gene structure.
Overall, our new combinatorial method for exonintron structure prediction can be summarized as a fourstage pipeline where we:

1.
Compute and implicitly represent all the spliced alignments of a transcript sequence (EST or mRNA) against a genomic reference sequence by a novel graph representation, called embedding graph, of the common substrings of the transcripts and the genome. In this paper we provide efficient algorithms for building and, subsequently, visiting the embedding graph.

2.
Filter all biologically meaningful spliced alignments. This step is performed with a carefully tailored visit of the embedding graph.

3.
Reconcile the spliced alignments of a set of correlated transcript sequences into a maximum parsimony consensus gene structure. To complete this task we use the Minimum Factorization Agreement (MFA) approach [17] applied to the data produced by the previous step. Indeed, the MFA approach gives an effective method to amalgamate some spliced alignments into a consensus gene structure (notice that an EST sequence only provides information on a partial region of the whole gene).

4.
Extract, classify, and refine the resulting introns in order to provide a putative gene structure supported by transcript evidences.
We point out that our implementation also has a fifth step where it predicts a set of fulllength isoforms by employing the graphbased method in [19].
Our method computes a consensus gene structure minimizing the number of exons, called maximum parsimony consensus gene structure. Such a structure is strictly associated to a set of spliced alignments for each sequence in the cluster of transcript data that is also output by our algorithm. Informally, a gene structure (depicted in Figure 1) is the description of the location of coding (exon) and noncoding (intron) regions along the genomic sequence. Due to alternative splicing events, such as exon skipping, intron retention and competing exons, a portion of the genomic sequence could be both coding and noncoding with respect to different transcripts.
In this paper, we will evaluate all steps of the pipeline. Accuracy and efficiency of PIntron have been assessed by an experimental comparison with ASPic [20] and Exogean [21]. The experimental results show that PIntron is much faster than ASPic and competitive with Exogean. PIntron scales much better than Exogean (in terms of execution time) when processing genes with a large number of transcript sequences. The predictions made by PIntron are more accurate than those by ASPic and Exogean. Moreover, PIntron is the only tool that is able to successfully complete all genes that have been considered. Finally, our results indicate that PIntron also improves the reconstruction of exact transcripts when compared with the other two tools.
In this experimental comparison, we focused on human genes given their excellent annotation status. However, PIntron has been conceived to facilitate genome annotation in a variety of organisms in which expressed sequences as well as the reference genome are available. Given the experimental results we summarized above, our program enables the investigation of the impact of alternative splicing on largescale.
The rest of this section is devoted to present each algorithmic step of our fourstage pipeline.
Implicit computation of spliced alignments
The first stage of our gene structure prediction method computes the set of all possible spliced alignments of a transcript (EST or mRNA) sequence against the genomic sequence.
A spliced alignment is a particular kind of alignment that takes into account the effects of the excision of the intronic regions during the RNA splicing process. The spliced sequence alignment problem requires to compute, given a sequence P (the EST or the mRNA) and a reference sequence T (the genomic sequence), two sets F_{ P } = {f_{1},..., f_{ k }} and {F}_{T}=\left\{{f}_{1}^{\prime},...,{f}_{k}^{\prime}\right\} of strings such that P = f_{1} ... f_{ k }, T=p{f}_{1}^{\prime}{i}_{1}{f}_{2}^{\prime}{i}_{2}\cdots {f}_{k1}^{\prime}{i}_{k1}{f}_{k}^{\prime}s, and for each i, the edit distance between {f}_{i} and {f}_{i}^{\prime}is small. The sequence of pairs \left({f}_{i},{f}_{i}^{\prime}\right) is called composition of P on T, each factor f_{ i } is called spliced sequence factor (or EST factor), and each {f}_{i}^{\prime} is called genomic factor (or exon). Allowing a small edit distance between the two factors is justified by the fact that EST data contain mismatches (deletions and insertions) against the genome because of sequencing errors and polymorphisms. Unfortunately, this also makes computationally harder the spliced alignment problem, especially when the transcript and the genomic sequence are large.
In our novel alignment method, we exploit the small edit distance between each pair \left({f}_{i},{f}_{i}^{\prime}\right) of corresponding factors: in fact, in this case, there must exist a sequence of some sufficiently long common substrings of the EST factor f_{ i } and the genomic factor {f}_{i}^{\prime}. We call the sequence of the occurrences of perfectly matching substrings an embedding of the EST sequence P in the genomic sequence and, clearly, it reveals the basic "building blocks" of the spliced alignment. Our alignment algorithm is based on the construction of a compact and implicit representation of all the embeddings by means of a graph called embedding graph. Such a graph can be efficiently computed from the EST sequence P and the genomic sequence T in time O(P+ T+ V^{2}), where V is its vertex set, and it can be used in the second stage of our pipeline in order to efficiently enumerate all the biologically meaningful compositions.
In the following we detail the notion and construction of the embedding graph. Let us first recall, that according to the traditional notation, given a string S = s_{1}s_{2} ... s_{ q }, we denote with S its length and with S[i, j] the substring s_{ i }s_{ i }_{+1} ... s_{ j }.
A fundamental notion is that of pairing of two strings. More formally, a pairing (p, t, l) of two sequences P and T (which generalizes the notion of pair of a sequence [22]) represents the positions p on P and t on T of a common substring P[p, p+l  1] = T[t, t+l  1] of P and T. In other words, a pairing (p, t, l) represents a common substring x of P and T, called factor induced by the pairing, such that x is of length l starting in positions p and t on P and T respectively. The positions p and t are called starting positions, while p + l and t + l are called ending positions.
We say that a pairing {v}_{1}=({p}_{1},{t}_{1},{l}_{1}) is contained in a pairing {v}_{2} (in short {v}_{\mathsf{\text{1}}}\preccurlyeq {v}_{\mathsf{\text{2}}}) if the positions {p}_{1} and {t}_{1} of {v}_{1} can be extended to the left or to the right on both the sequences P and T in order to obtain {v}_{2}. Clearly, the factor induced by v_{1} is a substring of the factor induced by {v}_{2}. Moreover, we say that v_{1} is a prefixpairing (suffixpairing, resp.) of {v}_{2} iff {v}_{\mathsf{\text{1}}}\preccurlyeq {v}_{\mathsf{\text{2}}} and {v}_{1} shares the same starting (ending, resp.) positions on P and T of {v}_{2}. This fact implies that the factor induced by {v}_{1} is a prefix (suffix, resp.) of the factor induced by {v}_{2}on P and T. A pairing v is maximal if and only if there does not exist a distinct pairing containing v. In other words, v is maximal if and only if the common factor induced by v cannot be "extended" neither to the left nor to the right on both P and T.
A sequence of nonoverlapping pairings (i.e. pairings that represent nonoverlapping occurrences of common substrings) is called an embedding (see Figure 2). Given two embeddings \epsilon =\u3008{v}_{1},\dots ,{v}_{n}\u3009 and {\epsilon}^{\prime}=\u3008{v}_{1}^{\prime},\cdots \phantom{\rule{0.3em}{0ex}},{v}_{m}^{\prime}\u3009, then \epsilon is contained in \epsilon \text{'} (in short \epsilon \preccurlyeq {\epsilon}^{\prime}) if and only if for each {v}_{i} in \epsilon there exists a pairing {v}_{j}^{\prime} in \epsilon \text{'} such that {v}_{i}\preccurlyeq {v}_{j}^{\prime}. Given the set of the embeddings of P in T, we say that \epsilon \in \mathcal{E} is maximal iff there does not exist {\epsilon}^{\prime}\in \mathcal{E}, \epsilon \ne \epsilon \text{'}, such that \epsilon \preccurlyeq {\epsilon}^{\prime}.
Not all embeddings induce a biologically meaningful composition. For example, an embedding made of several short pairings "scattered" along the genome cannot be considered a valid spliced alignment. In order to restrict embeddings to be useful for building a spliced alignment, we fix three parameters ℓ_{ E }, ℓ_{ D } and ℓ_{ I }. Intuitively, the parameter ℓ_{ E } is the minimum length of a pairing, ℓ_{ D } limits the maximum number of consecutive mismatches that can appear in a single exon, and ℓ_{ I } represents the minimum length of an intron. Then a representative embedding is a maximal embedding \epsilon =\u3008{v}_{1},\dots ,{v}_{m}\u3009 such that l_{ i } ≥ ℓ_{ E }, p_{ i }_{+1} p_{ i }  l_{ i } ≤ ℓ_{ D }, and either (i) t_{ i }_{+1} t_{ i }  (p_{ i }_{+1}  p_{ i }) ≤ ℓ_{ D } or (ii) t_{ i }_{+1}  t_{ i }  (p_{ i }_{+1}  p_{ i }) ≥ ℓ_{ I } is true. It is easy to see that only representative embeddings might induce a biologically plausible composition.
Indeed, a careful choice of the three parameters ℓ_{ E }, ℓ_{ D } and ℓ_{ I } allows to recover a spliced alignment of P in T with a fixed (small) error rate from some representative embeddings. Therefore, we propose the problem of finding all representative embeddings of P in T, formalized as the REPRESENTATIVE EMBEDDING problem (RE), where we are given a pattern P, a text T, and three parameters ℓ_{ E }, ℓ_{ D } and ℓ_{ I }. The goal is to compute the set {\mathcal{\epsilon}}_{r} of the representative embeddings of P in T.
In this first stage of the pipeline, we tackle the RE problem by using the embedding graph defined as follows.
Definition (Embedding Graph). Given a pattern P and a text T, the embedding graph of P in T is a directed graph G = (V, E) such that the vertex set V is the set of maximal pairings of P and T that are longer than ℓ_{ E }. Two pairings v_{1} = (p_{1}, t_{1}, l_{1}) and v_{2} = (p_{2}, t_{2}, l_{2}) are connected by an edge (v_{1}, v_{2}) ∈ E if and only if: (i) p_{2}  (p_{1} + l_{1}) ≤ ℓ_{ D }, and (ii) t_{2}  t_{1}  (p_{2}  p_{1}) ≤ ℓ_{ D } or t_{2}  t_{1}  (p_{2}  p_{1}) ≥ ℓ_{ I }.
Basically the conditions of the definition of Embedding Graph ensure the following crucial property: Two maximal pairings {v}_{1} and {v}_{2} are connected by an edge in the embedding graph if and only if there exists a representative embedding \epsilon in which there are two consecutive pairings {v}_{i}^{\prime} and {v}_{i+1}^{\prime} such that {v}_{i}^{\prime} is contained in {v}_{1} and {v}_{i+1}^{\prime} is contained in {v}_{2}.
We will use this property to build representative embeddings from an embedding graph. Observe that such a property derives from the maximality of the representative embeddings and from the uniqueness of the maximal pairing containing a pairing which belongs to a representative embedding.
We designed an algorithm that builds the embedding graph of a pattern P and a text T in time O(T+ P + V^{2}). The algorithm is composed of two steps. In the first step, the vertex set V is computed by visiting the suffix tree of the text T. This step requires O(T) time for the suffix tree construction and O(P + V) time for the computation of maximal pairings. In the second step, edges are then computed by checking the conditions of the definition of embedding graph on each pair of maximal pairings, leading to an O(V^{2}) procedure. Since the number of maximal pairings is usually very small compared to the length of P and T, the embedding graph construction procedure is efficient even on large patterns P and texts T.
Extraction of relevant spliced alignments
The next stage of our pipeline is devoted to analyzing and mining the embedding graph to compute the representative embeddings that also induce distinct biologically meaningful compositions. Indeed, it must be pointed out that different representative embeddings can induce the same compositions or spliced alignments. Algorithm ComputeCompositions is a twostep procedure. Initially it extracts a subset of representative embeddings by performing a visit of the embedding graph. Then the algorithm computes the compositions by merging consecutive pairings that are separated by short gaps.
Embedding graph visit
The first step of ComputeCompositions is a recursive visit of the embedding graph starting from a subset of vertices that we call extended sources.
Such a procedure visits the embedding graph examining and extracting only pairwisedistinct representative embeddings that are biologically meaningful (for example with respect to the length of gaps representing errors or introns). More precisely, the visit of a vertex {v}_{k} from the extended source s reconstructs the set of biologically meaningful representative embeddings that are induced by the path \mathcal{P}=\u3008s,{v}_{1},...,{v}_{k}\u3009 traversed during the visit of the embedding graph.
We will now explain the main steps of the procedure. During the visit of vertex v_{ k }, we examine each outgoing edge (v_{ k }, v_{ k }_{+1}) and we "extend" each embedding \epsilon =\u3008{e}_{1},\dots ,{e}_{k}\u3009 of . How the extension is performed depends on the relative position, on P and T, of e_{ k } in \epsilon and the new vertex v_{ k }_{+1} that are depicted in Figure 3. In the exposition of the different possible cases, let e_{ k } = (p_{ k }, t_{ k }, l_{ k }) and v_{ k }_{+1} = (p_{ k }_{+1}, t_{ k }_{+1}, l_{ k }_{+1}). Observe that given two pairings that are connected by an edge in the embedding graph, the corresponding factors might be overlapping in the text or in the pattern. To simplify the notation, in the following we identify a pairing with the factor it induces.
Case (a). Factors e_{ k } and v_{ k }_{+1} overlap on both T and P. Two different subcases must be analyzed. The first case occurs when the distance between the two initial positions of the factors e_{ k } and v_{ k }_{+1} on P differs from the same distance on T of a value (positive or negative) less than ℓ_{ D }, while the second case occurs when such a distance differs of a value greater than ℓ_{ I }. If the first case occurs when (t_{ k }_{+1} t_{ k })  (p_{ k }_{+1}  p_{ k }) ≤ ℓ_{ D } then the two pairings may belong to the same factor of the induced composition. Thus, the algorithm replaces pairing e_{ k } in \epsilon with the shortest maximal prefixpairing {e}_{k}^{\prime} of e_{ k } and the longest maximal suffixpairing e_{ k }_{+1} of v_{ k }_{+1} such that they do not overlap and that both {e}_{k}^{\prime} and e_{ k }_{+1} are at least ℓ_{ E } long. The second case occurs when (t_{ k }_{+1}  t_{ k })  (p_{ k }_{+1}  p_{ k }) ≥ ℓ_{ I }. This case deserves a special discussion from the biological point of view since it could be related to an intron as well as to a tandem repeat in T. Then factor e_{ k } could be extended to include the repetition in v_{ k }_{+1} to produce a unique factor (exon) of the embedding \epsilon.
Case (b). Factors induced by e_{ k } and v_{ k }_{+1} overlap in T but not in P. This case is equivalent to the first subcase of Case (a).
Case (c). Factors e_{ k } and v_{ k }_{+1} overlap in P but not in T. Just as in Case (a) two different subcases must be analyzed, that is either (t_{ k }_{+1}  t_{ k })  (p_{ k }_{+1} p_{ k }) ≤ ℓ_{ D } or t_{ k }_{+1} t_{ k }  (p_{ k }_{+1}  p_{ k }) ≥ ℓ_{ I }. The first case is solved as in Case (a). Notice that when the second subcase occurs then the splice site placement is ambiguous because a suffix of the donor exon is equal to a prefix of the acceptor exon. Also in this case, basic biological criteria are used to reduce the impact of the ambiguity.
Case (d). Factors e_{ k } and v_{ k }_{+1} do not overlap neither in P nor in T. Let G_{ T } and G_{ P } be the two substrings which separate e_{ k } and v_{ k }_{+1} in T and P, respectively. Since G_{ P } and G_{ T } do not form a pairing, they must contain a certain number of mismatches; we must determine if they support the possibilities that (i) e_{ k } and v_{ k }_{+1} are part of the same factor or (ii) there is an intron between e_{ k } and v_{ k }_{+1}. Similarly to Case (a), two different subcases may arise. If (t_{ k }_{+1}  t_{ k })  (p_{ k }_{+1}  p_{ k }) ≤ ℓ_{ D }, then e_{ k } and v_{ k }_{+1} might belong to the same factor of the induced composition. More precisely, e_{ k } and v_{ k }_{+1} belong to the same factor if the edit distance between G_{ T } and G_{ P } is below a certain threshold  in which case v_{ k }_{+1} is added to embedding \epsilon, otherwise the edge is discarded from the visit. Instead, if t_{ k }_{+1} t_{ k }  p_{ k }_{+1} + p_{ k } ≥ ℓ_{ I }, the two pairings are separated by an intron, and we must determine the splice sites of such an intron. In this case, the algorithm computes a prefix {G}_{T}^{\prime} and a suffix {G}_{T}^{\u2033} of G_{ T } that minimize the edit distance between G_{ P } and the concatenation of {G}_{T}^{\prime} and {G}_{T}^{\u2033}. Also in this case, if the resulting edit distance is larger than an acceptable threshold, the edge (v_{ k }, v_{ k }_{+1}) is discarded, otherwise v_{ k }_{+1} is added to \epsilon. Notice that computing the edit distance is not too expensive, since all strings involved are no longer than 2ℓ_{ D }.
The definition of embedding graph allows the presence of directed cycles, which potentially might be troublesome. However, we claim that the embeddings, computed from a path containing a cycle , would induce compositions with essentially the same set of factors of the compositions induced by the embeddings computed from the visit of the simple path \mathcal{P}\backslash \mathcal{C}. The visit performed in the first step of algorithm. ComputeCompositions guarantees that each possible representative embedding is analyzed. However, the biological criteria that we employ allow to consider only pairings belonging to biologically meaningful embeddings. Since the visit computes pairwisedistinct representative embeddings and every case presented above requires O(1) time, the overall computational complexity of the visit is clearly bounded by O\left({\sum}_{\epsilon \in \mathcal{E}}\left\epsilon \right\right), that is the total size of the representative embeddings that have been computed during the visit.
Composition reconstruction
The set of representative embeddings computed by the visit of the embedding graph directly leads to a set C of compositions. In fact, the visit guarantees that two consecutive pairings of a representative embedding are either separated by a small gap due to errors or by a large gap representing an intron of the spliced alignments. Hence, the algorithm simply merges into a factor a sequence of factors induced by consecutive pairings v_{ k } = (p_{ k }, t_{ k }, l_{ k }) and v_{ k }_{+1}= (p_{ k }_{+1}, t_{ k }_{+1}, l_{ k }_{+1}) separated by small gaps, that is t_{ k }_{+1}  t_{ k }  p_{ k }_{+1} + p_{ k } ≤ ℓ_{ D }. Finally, the composition is retained if the edit distance between each EST factor and the corresponding genomic factor is not larger than a fixed acceptable threshold.
Building a gene structure
The first two stages of our pipeline are applied separately to each transcript sequence P_{ i } of the input data (a genomic sequence T and a set of transcripts) computing a set C(P_{ i }) of biologically meaningful compositions for each P_{ i }. The main goal of the third stage is to extract a composition for each transcript that explains the putative gene structure. As stated before, informally a gene structure is the description of the location of coding and noncoding regions along the genomic sequence, where by a coding region we mean an exon and by noncoding region we mean an intron. Note that the boundaries between an exon and an intron is called splice junction or splice site.
We aim to produce a maximum parsimony consensus gene structure for which consists of a minimum set of genomic exons or coding regions compatible with a high quality composition C_{ i } for each transcript data P_{ i }. The minimization criteria is used to avoid overprediction of splice junctions. For this task we propose a formalization of the problem of finding a putative gene structure, called CONSENSUS GENE STRUCTURE problem (CG) and discuss a solution of this problem. The input of the CG problem consists of a set C(P_{ i }) of compositions for each transcript P_{ i } in a set and a finite ordered set F = 〈f_{1}, f_{2},..., f_{F}〉 of genomic factors induced by the compositions in ∪C(P_{ i }). Ordering of factors is assigned by considering their left splice junctions. Then CG asks for the minimum cardinality subset F' of F such each P_{ i } has a composition with all genomic factors in F'. In other words F' is the minimum set of exons explaining a spliced alignment of each EST data.
Now, the CG problem can be faced by using the approach [17] called Minimum Factorization Agreement (MFA). More precisely, we use the MFA problem to compute a gene structure minimizing the number of exons.
Let us recall the definition of the MFA problem. Let F = 〈f_{1}, f_{2},..., f_{F}〉 be a finite ordered set of sequences over alphabet Σ, called factors and let S be a set of sequences over alphabet Σ. Given a sequence s ∈ S, a factorcomposition (fcomposition in short) of s consists of the sequence f=\u3008{f}_{{i}_{1}},{f}_{{i}_{2}},\cdots \phantom{\rule{0.3em}{0ex}},{f}_{{i}_{n}}\u3009 such that s={f}_{{i}_{1}},{f}_{{i}_{2}},\cdots \phantom{\rule{0.3em}{0ex}},{f}_{{i}_{n}} and i_{ j } < i_{ j }_{+1} for 1 ≤ j < n. Then the set \left\{{f}_{{i}_{1}},{f}_{{i}_{2}},\cdots \phantom{\rule{0.3em}{0ex}},{f}_{{i}_{n}}\right\} is called the factor set of f and is denoted as F(f). While the notion of fcomposition depends on the set of factors, such set of factors is usually clear from the context and is therefore omitted. Please notice that a sequence s can admit different fcompositions: thus let F(s) be the set of compositions of s. Moreover, by extension, we will denote by F(S) the set ∪_{ s }_{∈}_{ S }F(s) of all fcompositions of a set S of sequences. Given a subset F' ⊆ F of factors and the set F(S), then F' is a factorization agreement set for F(S) if and only if for each sequence s ∈ S, there exists a fcomposition f in F(s) whose factor set is a subset of F', i.e. F(f) ⊆ F'.
The Minimum Factorization Agreement problem, given a set F of factors and a set S of sequences, asks for a minimum cardinality subset F' ⊆ F such that F' is a factorization agreement set for F(S). Then the CG problem can be reduced to the MFA problem by posing S to be the cluster of transcript sequences P_{ i } and F is the set of all genomic factors (exons) used to produce the compositions C(P_{ i }) for each P_{ i }, i.e. F(S) consists of all the compositions of each sequence in S. Then the consensus gene structure consists of a minimum factorization agreement set for the set of compositions of the transcripts data. When solving the MFA problem on such data, the solution F' provides a minimum set of factors explaining all transcript sequences and a single composition of each transcript can be obtained from set F'.
By applying the algorithm in [17] we can filter efficiently a set of spliced alignments agreeing to the same gene structure that are successively refined by the intron reduction step.
Intron reduction
Although the intron boundaries of the EST spliced compositions are computed by finding the best transcriptgenome alignment over the splice site regions and the most frequent intron pattern (i.e. the first and the last two nucleotides of an intron) according to [23], the set of predicted introns may still contain false positives very close to true predictions. Thus, we designed a procedure for comparing the intron set computed by the EST spliced compositions in order to correct and reduce the set of false positives.
In the following, let the pair (i, s) denotes a genomic intron (eventually specified by a pair of genomic coordinates) and a spliced composition of an EST s supporting the intron i, i.e. the composition has two consecutive factors f_{ j }, f_{ j }_{+1} inducing intron i when aligned to the genome. Then, given an error bound b, we say that (i, s) is breducible to (i', s) iff there exists a boundary shift of factors f_{ j } and f_{ j }_{+1} of a new spliced composition of s inducing intron i' with at most b additional errors with respect to the previous alignment of the two factors against the genome. To improve the accuracy of the step, we also consider if the intron is supported by a RefSeq transcript and if it can be categorized as an U12/U2 intron. A RefSeq sequence is a validated fulllength mRNA stored and annotated in the NCBI RefSeq database. U2 and U12 refers to two intron categories for which the excision is mediated by the major spliceosomal pathway or the minor spliceosomal pathway, respectively. Notice that RefSeq transcripts are usually fulllength and errorfree, that GT  AG, GC  AG and AT  AC are the most frequent rules [23] and those rules are associated to U12/U2 introns [24]. Hence we assume that only introns that do not follow one of the U12/U2 rules and are not supported by a RefSeq transcript should be reduced. The input of our intronreduction procedure is a set X of pairs (i, s) computed by the previous steps. Then, R is the set of pairs in X such that s is a RefSeq, C_{1}, C_{2}, C_{3} and N are the set of pairs in X \ R following the GT  AG, GC  AG, AT  AC and a nonU12/U2 rule respectively. Our procedure basically tries to reduce elements in N to some intron in R and, if this is not possible, it tries to reduce to some element in the first set of the sequence C_{1}, C_{2}, C_{3} that allows the reduction.
Results
We implemented the approach described in the previous section as a set of programs in the software package PIntron. PIntron receives a genomic sequence and a set of transcripts  ESTs and/or mRNAs  and computes a representation of the exonintron structure of the gene as well as a set of predicted fulllength annotated isoforms. PIntron outputs the list of the predicted introns with information such as relative and absolute start and end positions, intron lengths, the donor and the acceptor splice sites, and intron types (U12, U2 or unclassified). The output gives the composition as exons of each isoform and, for each exon, the start and end positions as relative and absolute coordinates, if a polyA signal is present, and the length of 5'UTR and 3'UTR. Moreover several additional information are given for each predicted isoform, such as its length, the CDS starting and ending positions, the RefSeqID (if it exists) and the length of the associated protein.
PIntron source code and binaries are available under the GNU AGPLv3 license at http://www.algolab.eu/PIntron.
In the following, we discuss an experimental insilico analysis on real human data aiming to evaluate our approach. Such an experimental evaluation is organized in two parts. The first part has been designed to assess the prediction accuracy of PIntron, while the aim of the second part is to show the scalability of our method and its effectiveness on genes that are very large or complex and are currently outside the comfort zone of the most used methods.
We have assessed the accuracy achieved by PIntron by comparing it with ASPic [20] and Exogean [21]. In particular, ASPic is a wellestablished software to predict alternative isoforms by multiple EST/mRNA alignments against the corresponding genomic regions. For each input EST, the ASPic algorithm attempts to compute a single spliced alignment with the minimum number of exons. Instead, PIntron implicitly provides several candidate spliced alignments for each EST, among which the best one is selected by using the MFA agreement approach, thus allowing a greater accuracy in predicting the putative gene structure. Moreover, PIntron is much faster than ASPic because of the more efficient data structure used for performing the EST alignments (i.e. the embedding graph instead of the hash table of the genomic seeds employed by ASPic). For this reason, ASPic requires a genomic sequence trimmed at the borders of a single gene locus, while PIntron is able to efficiently process a large region of the genome (i.e. spanning tens of gene loci) and a large set of expressed sequences.
Exogean is a gene prediction tool based on prealigned (by Blat [25]) ESTs/mRNAs or proteins. Exogean resulted one of the most accurate gene finding system in the last EGASP competition [26]. In Exogean, gene structures are reconstructed according to a graphbased strategy mimicking the human annotation process.
The accuracy assessment has been performed on 13 ENCODE human regions [26] used as training set in the EGASP competition. The regions have been chosen since they present different gene density and different conservation to the mouse genome. This dataset contains 112 wellannotated gene loci, supported by 98, 064 UniGene transcripts for a overall length of approximately 62 Mb (Table 1). The 13 ENCODE regions represent, approximately, 8.5 Mb of the human genomic sequence. Supplementary Table S.1 in Additional file 1 reports the complete list of the genes used in this experimental evaluation along with some of their main characteristics. ESTs and mRNAs related to each gene were obtained from UniGene database.
The results of our first assessment are summarized in Table 2, while the details are presented in Supplementary Tables S.2, S.3, S.4 in Additional file 1. The three tools have been evaluated according to two dimensions: prediction quality and time efficiency. The first important observation is that only PIntron was able to predict the gene structures for all 112 ENCODE loci, while ASPic and Exogean completed 93 and 104 genes, respectively. Moreover, PIntron has been the fastest of the three in the experiment over the whole set of genes, producing its results in about 49 minutes (on average 26 seconds per gene). On the genes that have been successfully processed, instead, Exogean took 57 minutes and ASPic more than 46 hours. Such results clearly indicate a computational improvement of PIntron over Exogean and especially ASPic in processing genes that are critical in terms of number of ESTs. Indeed Table 3 shows that PIntron scales much better than Exogean and ASPic when the number of transcripts is over 10,000, thus making our new software implementation particularly amenable to analyze large EST clusters. Notice that the running time of Exogean includes the preprocessing time required by Blat to align the transcripts. However, the preprocessing time is almost negligible compared to the time required by Exogean. In fact, Blat required approximately 4 minutes (7% of the total running time) to process all the genes.
Prediction quality has been evaluated by calculating sensitivity (Sn) and specificity (Sp) between ENCODE annotations and predictions at nucleotide, exon, intron, and transcript level, according to Burset and Guigó [27]. We adhered to the nomenclature established in the literature aimed to the evaluation of gene structure prediction tools, even if the definition of specificity that we use here is called positive predictive value in statistical literature [28]. As shown in Table 2 and Figure 4, PIntron appears the most accurate program at diverse prediction levels. Moreover, PIntron exhibits sensitivity and specificity levels that are quite similar. This fact, which is highly desirable in any prediction tool, shows that PIntron does not advantage any of them to the detriment of the other one. In addition, our results (see the average sensitivity at transcript level in Table 2) indicate that PIntron improves the reconstruction of exact transcripts when compared with ASPic and Exogean. Moreover, we want to recall that PIntron has completed the analysis of all 112 input genes, while Exogean and ASPic did not complete the task for 8 and 29 genes respectively.
Our second experimental analysis is devoted to evaluating the efficiency and the scalability of our approach on a subset of critical human genes that are particularly hard to analyze with the currently available programs because those genes have (1) a particularly complex gene structure (several tens of exons), or (2) a particularly large cluster of expressed sequences, or (3) a large genomic sequence.
To this aim, we selected 26 "critical" genes and we processed them with PIntron and Exogean on a 4node linux cluster running CentOS 5.5. Each node is equipped with a quadcore 2.40 GHz CPU and 32 GiB of RAM. The genomic sequence has an average length of about 848 Kb, and is longer than 1 Mb for 11 of the 26 genes. Moreover, the selected genes have on average more than 5,000 transcripts, and 5 genes have more than 15,000 transcripts. The total running time was 65 minutes for PIntron and 48 minutes for Exogean. In this evaluation, we did not take into account ASPic since it was not able to give a solution for any of these genes within an acceptable time. Table 3 reports the complete list of genes considered in this experimental part along with their main characteristics and the running times of PIntron and Exogean. While Exogean and PIntron running times were both acceptable, PIntron averaged 149 sec/gene and Exogean 109 sec/gene. This is remarkable, since Exogean is based on the fast progressive ESTtogenome mapping program Blat and does not take into account potential alignment errors at splicing sites which, in turn, is likely to result in predictions that are not as accurate as those given by PIntron. The comparison of running times confirms our previous observation: PIntron, although slower than Exogean on genes with small transcript clusters, scales significantly better than Exogean when the cluster size increases. In fact, PIntron was systematically faster than Exogean on the subset of genes whose transcript cluster is composed by more than 10, 000 sequences (genes ACTB, ALB, ENO1, GAPDH, HSPA8, MBP, and RPL3), while it was slower than Exogean on the other genes. In almost all the cases where PIntron was slower than Exogean, the difference between the running times of the two tools is small. Thus the running time of PIntron can be considered acceptable also on these genes. One notable exception is gene TTN where PIntron took about 32 minutes to predict the gene structure, while Exogean required only a few seconds. The likely reason is that the input transcript set of TTN contains sequences that are more than 80 Kb long. Since EST sequences have a lower quality than mRNA sequences, computing their spliced alignment requires a considerable amount of computational resources.
We want to point out that our second experiment has limited scope. In fact a complete comparison of PIntron and Exogean would also include the accuracy dimensions. The results of the first experiment suggests that PIntron is more accurate than Exogean. If confirmed, the greater accuracy would justify the small increase in the running times that we have observed.
The analysis of the running times of the first and the second part of the experimentation has not shown any significant correlation between the length of the genes and the running times, hence confirming our conjecture that the behavior of our algorithm depends on some properties of the Embedding Graph, and not on the size of the instance. In particular, the structure of the Embedding Graph is strictly related to the quality of the transcripts and to the presence of repetitions and highly duplicated regions in the genomic sequence that, in turn, could influence the size of the graph. Also these results have confirmed our beliefs, since the average running time of the second experiment (149 sec/gene) is not too far from the running times on the smaller genes of the first experiment, where the average value is 26 sec/gene. A fundamental observation is that PIntron has successfully completed the analysis of all 26 "critical" genes, while Exogean did not complete the analysis for FHIT.
Conclusions
In this work, we presented a new computational pipeline  PIntron  for predicting the gene structure into exons and introns from a cluster of transcript (EST, mRNA) sequences. PIntron combines two ideas: a novel algorithm of proved small time complexity for computing spliced alignments of a transcript against a genome, and an efficient algorithm that exploits the inherent redundancy of information in a cluster of transcripts to select, among all possible factorizations of EST sequences, those allowing to infer splice site junctions that are largely confirmed by the input data. PIntron is freely available at http://www.algolab.eu/PIntron under GNU Affero General Public Licence (AGPL). The experimental evaluation of PIntron has shown that it has been able to compute accurate predictions (whose level is comparable with that of other prediction tools) while achieving a good scalability to critical genes, especially if associated with a large transcript cluster.
References
 1.
Caceres J, Kornblihtt A: Alternative splicing: multiple control mechanisms and involvement in human disease. Trends Genet 2002, 18(4):186–193. 10.1016/S01689525(01)026269
 2.
Heber S, Alekseyev M, Sze SH, Tang H, Pevzner PA: Splicing graphs and EST assembly problem. Bioinformatics 2002, 18(Suppl 1):S181S188. 10.1093/bioinformatics/18.suppl_1.S181
 3.
Leipzig J, Pevzner P, Heber S: The Alternative Splicing Gallery (ASG): bridging the gap between genome and transcriptome. Nucleic Acids Research 2004, 32(13):3977–3983. 10.1093/nar/gkh731
 4.
Xing Y, Resch A, Lee C: The multiassembly problem: reconstructing multiple transcript isoforms from EST fragment mixtures. Genome Research 2004, 14(3):426–441. 10.1101/gr.1304504
 5.
Kim N, Shin S, Lee S: ECgene: genomebased EST clustering and gene modeling for alternative splicing. Genome Research 2005, 15(4):566–576. 10.1101/gr.3030405
 6.
Eyras E, Caccamo M, Curwen V, Clamp M: ESTGenes: alternative splicing from ESTs in Ensembl. Genome Research 2004, 14(5):976–987. 10.1101/gr.1862204
 7.
Castrignanò T, Rizzi R, Talamo IG, D'Onorio De Meo P, Anselmo A, Bonizzoni P, Pesole G: ASPIC: a web resource for alternative splicing prediction and transcript isoforms characterization. Nucleic Acids Research 2006, 34(Suppl 2):W440W443.
 8.
Kan Z, Rouchka EC, Gish WR, States DJ: Gene structure prediction and alternative splicing analysis using genomically aligned ESTs. Genome Research 2001, 11(5):889–900. 10.1101/gr.155001
 9.
Gupta S, Zink D, Korn B, Vingron M, Haas S: Genome wide identification and classification of alternative splicing based on EST data. Bioinformatics 2004, 20(16):2579–2585. 10.1093/bioinformatics/bth288
 10.
De Bona F, Ossowski S, Schneeberger K, Rätsch G: Optimal spliced alignments of short sequence reads. Bioinformatics 2008, 24: i174i180. 10.1093/bioinformatics/btn300
 11.
Trapnell C, Pachter L, Salzberg SL: TopHat: discovering splice junctions with RNASeq. Bioinformatics 2009, 25(9):1105–1111. 10.1093/bioinformatics/btp120
 12.
Bryant DW, Shen R, Priest HD, Wong WK, Mockler TC: Supersplatspliced RNAseq alignment. Bioinformatics 2010, 26(12):1500–1505. 10.1093/bioinformatics/btq206
 13.
Wang K, Singh D, Zeng Z, Coleman SJ, Huang Y, Savich GL, He X, Mieczkowski P, Grimm SA, Perou CM, MacLeod JN, Chiang DY, Prins JF, Liu J: MapSplice: accurate mapping of RNAseq reads for splice junction discovery. Nucleic Acids Research 2010, 38(18):e178. 10.1093/nar/gkq622
 14.
Slater G, Birney E: Automated generation of heuristics for biological sequence comparison. BMC Bioinformatics 2005, 6: 31. 10.1186/14712105631
 15.
Wu TD, Watanabe CK: GMAP: a genomic mapping and alignment program for mRNA and EST sequence. Bioinformatics 2005, 21(9):1859–1875. 10.1093/bioinformatics/bti310
 16.
Gotoh O: A spaceefficient and accurate method for mapping and aligning cDNA sequences onto genomic sequence. Nucleic Acids Research 2008, 36(8):2630–2638. 10.1093/nar/gkn105
 17.
Bonizzoni P, Della Vedova G, Dondi R, Pirola Y, Rizzi R: Minimum factorization agreement of spliced ESTs.In Proc 9th International Workshop on Algorithms in Bioinformatics (WABI), Volume 5724 of LNCS Edited by: Salzberg SL, Warnow T. Springer; 2009, 1–12. [http://dx.doi.org/10.1007/978–3642–04241–6_1]
 18.
Bonizzoni P, Rizzi R, Pesole G: Computational methods for alternative splicing prediction. Briefings in Functional Genomics and Proteomics 2006, 5(1):46–51. 10.1093/bfgp/ell011
 19.
Bonizzoni P, Mauri G, Pesole G, Picardi E, Pirola Y, Rizzi R: Detecting alternative gene structures from spliced ESTs: a computational approach. Journal of Computational Biology 2009, 16(1):43–66. 10.1089/cmb.2008.0028
 20.
Bonizzoni P, Rizzi R, Pesole G: ASPIC: a novel method to predict the exonintron structure of a gene that is optimally compatible to a set of transcript sequences. BMC Bioinformatics 2005, 6: 244. 10.1186/147121056244
 21.
Djebali S, Delaplace F, Crollius HR: Exogean: a framework for annotating proteincoding genes in eukaryotic genomic DNA. Genome Biology 2006, 7(Suppl 1):S7. 10.1186/gb20067s1s7
 22.
Gusfield D: Algorithms on Strings, Trees and Sequences: Computer Science and Computational Biology. Cambridge: Cambridge University Press; 1997.
 23.
Burset M, Seledtsov I, Solovyev V: Analysis of canonical and noncanonical splice sites in mammalian genomes. Nucleic Acids Research 2000, 28(21):4364–4375. 10.1093/nar/28.21.4364
 24.
Sheth N, Roca X, Hastings ML, Roeder T, Krainer AR, Sachidanandam R: Comprehensive splicesite analysis using comparative genomics. Nucleic Acids Research 2006, 34(14):3955–3967. 10.1093/nar/gkl556
 25.
Kent JJ: BLATthe BLASTlike alignment tool. Genome Research 2002, 12(4):656–664.
 26.
Guigó R, Flicek P, Abril J, Reymond A, Lagarde J, Denoeud F, Antonarakis S, Ashburner M, Bajic VB, Birney E, Castelo R, Eyras E, Ucla C, Gingeras TR, Harrow J, Hubbard T, Lewis SE, Reese MG: EGASP: the human ENCODE Genome Annotation Assessment Project. Genome Biology 2006, 7(Suppl 1):S2. 10.1186/gb20067s1s2
 27.
Burset M, Guigo R: Evaluation of Gene Structure Prediction Programs. Genomics 1996, 34: 353–357. 10.1006/geno.1996.0298
 28.
Altman DG, Bland JM: Statistics Notes: Diagnostic tests 1: sensitivity and specificity. BMJ 1994, 308(6943):1552. 10.1136/bmj.308.6943.1552
Acknowledgements
We thank Marcello Varisco for the implementation of some parts of the pipeline. This research was supported in part by FAR MIUR 60% grant "Algorithmic methods and combinatorial structures in Bioinformatics" (Univ. di MilanoBicocca) to YP, RR, GDV, and PB, grant "Dote ricerca applicata" 21_ARA (FSE, Regione Lombardia) to YP, and Ministero dell'Istruzione, dell'Università e della Ricerca, Italy: Fondo Italiano Ricerca di Base, "Laboratorio Internazionale di Bioinformatica" (LIBI), "Laboratorio di Bioinformatica per la Biodiversità Molecolare" (DM19410), PRIN 2009; Progetto Strategico Regione Puglia PS 012; Progetto EPIGEN (CNR) to GP.
This article has been published as part of BMC Bioinformatics Volume 13 Supplement 5, 2012: Selected articles from the First IEEE International Conference on Computational Advances in Bio and medical Sciences (ICCABS 2011): Bioinformatics. The full contents of the supplement are available online at http://www.biomedcentral.com/bmcbioinformatics/supplements/13/S5.
Author information
Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors' contributions
YP and RR designed the algorithm, developed the pipeline, designed and helped to perform the experiments, and drafted the manuscript. EP helped to design and to perform the experiments, and interpreted the results. GP helped to design the experiments and supervised the interpretation of the results. GDV helped to design the algorithm, to develop the pipeline, and to draft the manuscript. PB designed the algorithm, helped to draft the manuscript, and supervised the research. All authors read and approved the final manuscript.
Yuri Pirola, Raffaella Rizzi contributed equally to this work.
Electronic supplementary material
Supplementary tables
Additional file 1: . Characteristics of the first dataset and detailed results obtained in the experimental comparison. (PDF 176 KB)
Rights and permissions
Open Access This article is published under license to BioMed Central Ltd. This is an Open Access article is distributed under the terms of the Creative Commons Attribution License ( https://creativecommons.org/licenses/by/2.0 ), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
About this article
Cite this article
Pirola, Y., Rizzi, R., Picardi, E. et al. PIntron: a fast method for detecting the gene structure due to alternative splicing via maximal pairings of a pattern and a text. BMC Bioinformatics 13, S2 (2012). https://doi.org/10.1186/1471210513S5S2
Published:
DOI: https://doi.org/10.1186/1471210513S5S2
Keywords
 Edit Distance
 Splice Junction
 Suffix Tree
 Embed Graph
 Transcript Cluster