- Methodology article
- Open Access

# Directed acyclic graph kernels for structural RNA analysis

- Kengo Sato
^{1, 2, 3}Email author, - Toutai Mituyama
^{2}, - Kiyoshi Asai
^{4, 2}and - Yasubumi Sakakibara
^{3, 2}

**9**:318

https://doi.org/10.1186/1471-2105-9-318

© Sato et al; licensee BioMed Central Ltd. 2008

**Received:**13 April 2008**Accepted:**22 July 2008**Published:**22 July 2008

## Abstract

### Background

Recent discoveries of a large variety of important roles for non-coding RNAs (ncRNAs) have been reported by numerous researchers. In order to analyze ncRNAs by kernel methods including support vector machines, we propose stem kernels as an extension of string kernels for measuring the similarities between two RNA sequences from the viewpoint of secondary structures. However, applying stem kernels directly to large data sets of ncRNAs is impractical due to their computational complexity.

### Results

We have developed a new technique based on directed acyclic graphs (DAGs) derived from base-pairing probability matrices of RNA sequences that significantly increases the computation speed of stem kernels. Furthermore, we propose profile-profile stem kernels for multiple alignments of RNA sequences which utilize base-pairing probability matrices for multiple alignments instead of those for individual sequences. Our kernels outperformed the existing methods with respect to the detection of known ncRNAs and kernel hierarchical clustering.

### Conclusion

Stem kernels can be utilized as a reliable similarity measure of structural RNAs, and can be used in various kernel-based applications.

## Keywords

- Multiple Alignment
- Directed Acyclic Graph
- Support Vector Data Description
- String Kernel
- Common Secondary Structure

## Background

Recent discoveries of a large variety of important roles for non-coding RNAs (ncRNAs), including gene regulation or maturation of mRNAs, rRNAs and tRNAs, have been reported by many researchers. Most functional ncRNAs form secondary structures related to their functions, and secondary structures without pseudoknots can be modeled by stochastic context-free grammars (SCFGs) [1, 2]. Therefore, several computational methods based on SCFGs have been developed for modeling and analyzing functional ncRNA sequences [3–14]. These grammatical methods work very well if the secondary structures of the target ncRNAs are modeled successfully. However, it is difficult to build such stochastic models since it is necessary to construct complicated models, to prepare the number of training sequences, and/or to obtain prior knowledge for some families containing non-uniform and/or non-homologous sequences such as snoRNA families. Thus, we need more robust methods for performing structural ncRNA analysis. On the other hand, support vector machines (SVMs) and other kernel methods are being actively studied, and have been proposed for solving various problems in many research fields, including bioinformatics [15]. These methods are more robust than other existing methods, and we therefore considered using kernel methods including SVMs instead of the grammatical methods to analyze functional ncRNAs.

Several kernels for ncRNA sequences have been developed so far [16–19]. Kin *et al*. have proposed marginalized count kernels for RNA sequences [16]. Their kernels calculate marginalized count vectors of base-pair features under SCFGs trained with a given dataset, and compute the inner products. Therefore, marginalized count kernels inherit the drawback of the grammatical methods. Washietl *et al*. have developed a program called RNAz, which detects structurally conserved regions from multiple alignments by using SVMs [17]. RNAz employs the averaged *z*-score of the minimum free energy (MFE) for each sequence and structure conservation index (SCI). Assuming that MFE for the common secondary structure is close to that for each sequence if a given multiple alignment is structurally conserved, SCI is defined as the rate of MFE for the common secondary structure to the averaged MFE for each sequence. These features allow for the detection of structurally conserved regions. However, since these features cannot measure the structural similarities between RNA sequences, it is difficult to apply them to other aspects of structural RNA analysis, such as detecting particular families. Several works which involve some helpful features specific to given target families (e.g. miRNAs and snoRNAs) have been proposed [18, 19]. These family-specific methods perform well in detecting their target families. However, in order to apply this strategy to other families, it is necessary to develop new features for every family.

For the purpose of analyzing ncRNAs using kernel methods including support vector machines, we have proposed *stem kernels*, which extend the string kernels to measure the similarities between two RNA sequences from the viewpoint of secondary structures [20]. The feature space of the stem kernels is defined by enumerating all possible common base pairs and stem structures of arbitrary lengths. However, since the computational time and memory size required for the naive implementation of stem kernels are of the order of *O*(*n*^{4}), where *n* is the length of the inputted RNA sequence, applying stem kernels directly to large data sets of ncRNAs is impractical.

Therefore, we develop a new technique based on directed acyclic graphs (DAGs) derived from base-pairing probability matrices of RNA sequences, which significantly reduces the computational time of stem kernels. The time and space complexity of this method are approximately of the order of *O*(*n*^{2}). Furthermore, we propose profile-profile stem kernels for multiple alignments of RNA sequences, which utilize base-pairing probability matrices for multiple alignments instead of those for individual sequences.

## Methods

In this section, we propose new kernels for analyzing ncRNAs. First, an outline of our previous work is provided, after which the proposed new technique based on directed acyclic graphs (DAGs) derived from base-pairing probability matrices of RNA sequences is described. Finally, the proposed kernels are extended to kernels for multiple alignments of RNA sequences by utilizing averaged base-pairing probability matrices.

### Naive stem kernel algorithms

**x**=

*x*

_{1}

*x*

_{2}...

*x*

_{ n }(

*x*

_{ k }∈ {A, C, G, U}), we denote a contiguous subsequence

*x*

_{ j }...

*x*

_{ k }by

**x**[

*j*,

*k*], and the length of

**x**by |

**x**|. The empty sequence is indicated by

*∊*. For a base

*a*, the complementary base is denoted as $\overline{a}$. For a string

**x**and a base

*a*,

**x**

*a*denotes the concatenation of

**x**and

*a*. For two RNA sequences

**x**and

**x**

*'*, the stem kernel

*K*is defined recursively as follows:

Both the time and the memory required for the calculation *K*(**x**, **x** *'*) are of the order of *O*(|**x**|^{2}|**x** *'*|^{2}), which renders this method impractical for applying to large data sets of ncRNAs.

### Stem kernels with DAG representation

**x**=

*x*

_{1}

*x*

_{2}...

*x*

_{ n }, we calculate a base-pairing probability matrix

*P*

^{ x }using the McCaskill algorithm [21]. We denote the base-pairing probability of (

*x*

_{ i },

*x*

_{ j }) by ${P}_{ij}^{x}$, which is defined as:

where $\mathcal{Y}$(**x**) is an ensemble of all possible secondary structures of **x**, *p*(*y*|**x**) is the posterior probability of *y* given **x**, and *I*_{
ij
}(*y*) is an indicator function, which equals 1 if the *i*-th and the *j*-th nucleotides form a base-pair in *y* or 0 otherwise. We employ the Vienna RNA package [22] for computing these expected counts (2) using the McCaskill algorithm.

Subsequently, we build a DAG for the base-pairing probability matrix, where each vertex corresponds to a base pair whose probability is above a predefined threshold *p**. Let *G*_{
x
}= (*V*_{
x
}, *E*_{
x
}) be the DAG for an RNA sequence **x**, where *V*_{
x
}and *E*_{
x
}are vertices and edges in the DAG *G*_{
x
}, respectively. For each *v*_{
i
}= (*k*, *l*) ∈ *V*_{
x
}, (*x*_{
k
}, *x*_{
l
}) is a likely base pair, in other words, ${P}_{kl}^{x}\ge {p}^{\ast}$. Each *e*_{
ij
}∈ *E*_{
x
}is an edge from vertex *v*_{
i
}to vertex *v*_{
j
}.

For vertices *v*_{
i
}= (*k*, *l*) and *v*_{
i'
}= (*k'*, *l'*), we can define a partial order, *v*_{
i
}≺ *v*_{
i'
}if and only if *k* <*k'* and *l* > *l'*. An edge *e*_{
ii'
}connects vertices *v*_{
i
}and *v*_{
i'
}if and only if *v*_{
i
}≺ *v*_{
i'
}and there exists no *v*_{
j
}∈ *V*_{
x
}such that *v*_{
i
}≺ *v*_{
j
}≺ *v*_{
i'
}.

*e*

_{ ij },

*i*<

*j*is satisfied, in other words, there are no directed paths from

*v*

_{ j }to

*v*

_{ i }if

*i*<

*j*. Thus, we can apply the dynamic programming technique as follows:

where *root*(*G*) is a set of vertices which have no incoming edges, *K*_{
v
}and *K*_{
e
}are kernel functions for vertices and edges, respectively, and *g*_{
v
}and *g*_{
e
}are gap penalties for vertices and edges, respectively. *K* calculates the sum of kernel values for all pairs of possible substructures of *G*_{
x
}and *G*_{
x
'
}. Each of these kernel values is composed of the product of the subkernels *K*_{
v
}, *K*_{
e
}, *g*_{
v
}and *g*_{
e
}. Therefore, *K* is a convolution kernel and is positive semi-definite if *K*_{
v
}and *K*_{
e
}are also positive semi-definite [23].

The time and the memory required for the computation of *K* are of the order of *O*(*c*^{2}|*V*_{
x
}||*V*_{
x
'
}|) and *O*(|*V*_{
x
}||*V*_{
x
'
}|), respectively, where *c* is the maximum out-degree of *G*_{
x
}and *G*_{
x
'
}. We can control |*V*_{
x
}| using the predefined threshold for base pairs, *p**. When *p** = 0, *V*_{
x
}contains all possible base pairs, i.e., |*V*_{
x
}| = *n*(*n* - 1)/2. When *p** > 0, since each base can take part in *V*_{
x
}at most 1/*p** times, |*V*_{
x
}| is proportional to *n* of the length of the RNA sequence **x**. Since in many cases *c* ≪ |*V*_{
x
}|, the time and the memory required for this algorithm are approximately of the order of *O*(*n*^{2}) for sufficiently large values of *p**.

*K*

_{ v },

*K*

_{ e },

*g*

_{ v }and

*g*

_{ e }in Eq. (3) are available. In order to connect the DAG-based stem kernels to the naive stem kernels calculated from Eq. (1), we first define simple sub-kernels as follows:

*g*_{
v
}(*v*) = 1, ∀*v* ∈ *V*_{
x
}∪ *V*_{
x
'
} (6)

*g*_{
e
}(*e*) = 1, ∀*e* ∈ *E*_{
x
}∪ *E*_{
x
'
}. (7)

*p** → 0, the DAG-based stem kernels calculated form Eq. (3) with the above sub-kernels approach the naive stem kernels calculated from Eq. (1) since both Eqs. (1) and (3) designate recursive traversal to all substructures of

**x**and

**x**

*'*in the sense of the partial order ≺, and when

*p** = 0, the substructures of

**x**and

**x**

*'*for both kernels which contribute kernel values are identical to each other due to these sub-kernels. More sophisticated kernels can be constructed using substitution scoring matrices, as well as local alignment kernels [24]:

*g*_{
v
}(*v*) = *γ*^{2}, ∀*v* ∈ *V*_{
x
}∪ *V*_{
x
'
} (10)

*g*_{
e
}(*e*) = *γ*^{n(e)}, ∀*e* ∈ *E*_{
x
}∪ *E*_{
x
'
}, (11)

where $S({x}_{l},{x}_{k},{{x}^{\prime}}_{{k}^{\prime}},{{x}^{\prime}}_{{l}^{\prime}})$ is a substitution scoring function from a base pair (*x*_{
l
}, *x*_{
k
}) to a base pair $({{x}^{\prime}}_{{k}^{\prime}},{{x}^{\prime}}_{{l}^{\prime}})$, *α* > 0 is a weight parameter for base pairs, *γ* > 0 is the decoy factor for loop regions, and *n*(*e*) is the number of nucleotides in the loop region enclosed by base pairs at both ends of an edge *e*.

*S*, and

*p** = 0.01,

*α*= 0.1,

*γ*= 0.4, which were optimized by cross-validation tests. In order to prevent sequence length bias, we normalize our kernels

*K*as follows:

Stem kernels can be applied only to RNA secondary structures. However, primary sequences are still important for calculating the similarities between a pair of RNA sequences. Therefore, in order to take into account both primary sequences and secondary structures, we combine our stem kernels with the local alignment kernels by adding them.

### Profile-profile stem kernels

If multiple alignments of homologous RNA sequences are available, we can calculate their base-paring probability matrices more precisely by taking the averaged sum of individual base-pairing probability matrices in accordance with the given multiple alignment [25]. The algorithm of the DAG-based stem kernels for a pair of RNA sequences can be extended to that for a pair of multiple alignments of RNA sequences using averaged base-pairing probability matrices. Since the method of the averaged base-paring probability matrices has been proven to be accurate and robust by Kiryu *et al*. [25], we can expect this method to improve the proposed stem kernel method. We call these profile-profile stem kernels.

*i*-th column of a multiple alignment

**A**by

**A**

_{ i }, a nucleotide in

**A**

_{ i }of the

*j*-th sequence by

*a*

_{ ij }, and the number of aligned sequences in

**A**by

*num*(

**A**). We can calculate the averaged base-pairing probability matrix of a given multiple alignment

**A**as follows:

**x**

*'*is the sequence

**x**with all gaps removed and

*ρ*(

*k*) is an index on

**x**

*'*of the

*k*-th column of

**A**. After constructing ${P}_{kl}^{A}$, we can build DAGs, and the kernel

*K*

_{ v }for columns can be calculated by replacing the substitution function

*S*in Eq. (9) with

## Results and Discussion

In this section, we present some of the results of our experiments in order to confirm the validity of our method as well as a discussion of those results.

### Discrimination with SVMs and other kernel machines

*SP*) and the sensitivity (

*SN*), which are defined as follows:

where *TP* is the number of correctly predicted positives, *FP* is the number of incorrectly predicted positives, *TN* is the number of correctly predicted negatives, and *FN* is the number of incorrectly predicted negatives. Furthermore, the area under the receiver operating characteristic (ROC) curve, i.e., the ROC score, was also used for evaluation. The ROC curve plots the true positive rates (= *SN*) as a function of the false positive rates (= 1 - *SP*) for varying decision thresholds of a classifier.

*p**, we performed the experiments for various values of

*p** ∈ {0.1, 0.01, 0.001, 0.0001}. Figure 2 shows the accuracy and the calculation time for each threshold. Since the accuracy for

*p** = 0.01 was slightly better than that for the other values, and the calculation time in this case was acceptable for practical use, we fixed

*p** = 0.01 as the default cutoff threshold of the base-pairing probabilities. Then, we compared the DAG-based stem kernels with the naive stem kernels. The experimental results shown in Table 1 indicate that the DAG-based kernels are significantly faster than the naive kernels owing to the approximation by a predefined threshold of the base-pairing probability. Furthermore, in spite of using an approximation, the DAG-based kernels are slightly more accurate than the naive kernels due to the convolution with the local alignment kernels and the removal of low-likelihood base pairs which may create noise.

Comparison of the discrimination capabilities of the naive stem kernels and the DAG-based stem kernels.

Naive stem kernels | DAG-based stem kernels | |||||||
---|---|---|---|---|---|---|---|---|

ncRNA type | ROC | SP | SN | Time (s) | ROC | SP | SN | Time (s) |

tRNA | 0.97 | 0.82 | 0.94 | 0.9 | 0.98 | 0.93 | 0.86 | 9.9 × 10 |

5S rRNA | 0.97 | 0.97 | 0.74 | 5.1 | 1.00 | 1.00 | 0.95 | 2.2 × 10 |

miRNA | 0.88 | 0.65 | 0.88 | 1.6 | 0.86 | 0.88 | 0.69 | 9.7 × 10 |

H/ACA snoRNA | 0.80 | 0.80 | 0.54 | 12.8 | 0.89 | 0.90 | 0.72 | 4.1 × 10 |

C/D snoRNA | 0.78 | 0.55 | 0.79 | 4.7 | 0.87 | 0.91 | 0.71 | 2.0 × 10 |

Next, we performed the experiment on a large dataset including multiple alignments, which was used to train RNAz [17]. This dataset includes 12 ncRNA families of 7,169 original alignments, extracted from the Rfam database [26], with the exception of the single-recognition particle (SRP) RNA and RNAseP, which were extracted from [27, 28]. Each alignment consists of two to ten sequences aligned by CLUSTAL-W [29], and the mean pairwise identities are between 50% and 100%. The dataset also includes 7,169 negatives, which were generated from the original alignments by shuffling the columns, where the conservation rate on each column was preserved [30]. In this experiment, for each RNA family, SVMs trained the model which distinguishes the original alignments of a target RNA family from all other original and shuffled alignments in the dataset. We compared the profile-profile stem kernels with the local alignment kernels [24], which only consider primary sequences of RNAs. Subsequently, we extended the local alignment kernels using the same technique as in the case of the profile-profile stem kernels in order to account for multiple alignments.

Non-coding RNA detection using SVMs in comparing the stem kernels with the local alignment kernels.

Stem kernels | Local alignment kernels | |||||||||
---|---|---|---|---|---|---|---|---|---|---|

ncRNA type | Rfam Accession | N | ROC | SP | SN | nSV | ROC | SP | SN | nSV |

5S ribosomal RNA | RF00001 | 449 | 1.000 | 1.000 | 0.996 | 164.9 (1.3) | 1.000 | 1.000 | 0.996 | 4013.0 (31.1) |

U2 spliceosomal RNA | RF00004 | 566 | 0.999 | 1.000 | 0.993 | 631.2 (4.9) | 0.999 | 1.000 | 0.986 | 4117.5 (31.9) |

tRNA | RF00005 | 495 | 0.998 | 1.000 | 0.998 | 234.8 (1.8) | 1.000 | 1.000 | 0.998 | 4287.2 (33.2) |

Hammerhead ribozyme III | RF00008 | 588 | 1.000 | 1.000 | 0.997 | 221.2 (1.7) | 1.000 | 1.000 | 0.997 | 2452.1 (19.0) |

U3 snoRNA | RF00012 | 471 | 1.000 | 1.000 | 0.996 | 266.2 (2.1) | 0.998 | 1.000 | 0.870 | 4665.3 (36.2) |

U5 spliceosomal RNA | RF00020 | 510 | 1.000 | 1.000 | 0.996 | 525.5 (4.1) | 1.000 | 1.000 | 0.994 | 4060.0 (31.5) |

tmRNA | RF00023 | 730 | 1.000 | 1.000 | 0.997 | 685.8 (5.3) | 0.975 | 1.000 | 0.037 | 4677.7 (36.2) |

Group II intron | RF00029 | 604 | 1.000 | 1.000 | 0.993 | 482.7 (3.7) | 1.000 | 1.000 | 0.990 | 4217.3 (32.7) |

mir-10 | RF00104 | 620 | 1.000 | 1.000 | 0.998 | 59.5 (0.5) | 1.000 | 1.000 | 0.998 | 159.6 (1.2) |

U70 snoRNA | RF00156 | 608 | 0.999 | 1.000 | 0.990 | 195.0 (1.5) | 0.999 | 1.000 | 0.992 | 3811.8 (29.5) |

RNAse P | - | 656 | 1.000 | 1.000 | 0.991 | 490.6 (3.8) | 0.905 | 1.000 | 0.018 | 4729.2 (36.6) |

SRP RNA | - | 872 | 1.000 | 1.000 | 0.995 | 441.5 (3.4) | 0.908 | 1.000 | 0.900 | 4373.9 (33.9) |

Total | 7169 | 1.000 | 1.000 | 0.995 | 4398.9 (2.9) | 0.977 | 1.000 | 0.788 | 45564.6 (29.5) |

Non-coding RNA detection using SVDD in comparing the stem kernels with the local alignment kernels.

Stem kernels | Local alignment kernels | |||||||||
---|---|---|---|---|---|---|---|---|---|---|

ncRNA type | Rfam Accession | N | ROC | SP | SN | nSV | ROC | SP | SN | nSV |

5S ribosomal RNA | RF00001 | 449 | 1.000 | 1.000 | 0.940 | 27.8 (6.9) | 1.000 | 1.000 | 0.886 | 48.4 (12.0) |

U2 spliceosomal RNA | RF00004 | 566 | 0.997 | 0.999 | 0.912 | 51.8 (10.2) | 0.999 | 1.000 | 0.844 | 92.0 (18.1) |

tRNA | RF00005 | 495 | 0.983 | 0.948 | 0.939 | 26.8 (6.0) | 0.999 | 0.999 | 0.853 | 67.0 (15.0) |

Hammerhead ribozyme III | RF00008 | 588 | 1.000 | 0.998 | 0.971 | 14.2 (2.7) | 1.000 | 1.000 | 0.968 | 19.3 (3.6) |

U3 snoRNA | RF00012 | 471 | 1.000 | 1.000 | 0.915 | 36.3 (8.6) | 0.959 | 1.000 | 0.775 | 95.5 (22.5) |

U5 spliceosomal RNA | RF00020 | 510 | 0.999 | 0.998 | 0.939 | 30.3 (6.6) | 1.000 | 1.000 | 0.882 | 57.2 (12.5) |

tmRNA | RF00023 | 730 | 1.000 | 1.000 | 0.881 | 83.1 (12.6) | 0.757 | 1.000 | 0.037 | 636.5 (96.9) |

Group II intron | RF00029 | 604 | 0.996 | 0.989 | 0.942 | 30.9 (5.7) | 0.999 | 1.000 | 0.922 | 48.7 (9.0) |

mir-10 | RF00104 | 620 | 1.000 | 1.000 | 0.977 | 13.3 (2.4) | 1.000 | 1.000 | 0.984 | 10.7 (1.9) |

U70 snoRNA | RF00156 | 608 | 0.998 | 0.996 | 0.952 | 25.5 (4.7) | 1.000 | 1.000 | 0.951 | 29.0 (5.3) |

RNAse P | - | 656 | 0.998 | 1.000 | 0.887 | 66.2 (11.2) | 0.629 | 1.000 | 0.006 | 587.5 (99.5) |

SRP RNA | - | 872 | 1.000 | 1.000 | 0.939 | 54.4 (6.9) | 0.994 | 1.000 | 0.881 | 95.3 (12.1) |

Total | 7169 | 0.998 | 0.995 | 0.932 | 460.6 (7.1) | 0.938 | 1.000 | 0.729 | 1787.1 (27.7) |

In this section, we trained SVMs with the stem kernels to detect particular ncRNA families. On the other hand, the SVMs in RNAz are trained to detect any structural ncRNAs, including unknown ncRNAs [17]. In order to demonstrate that RNAz is capable of discovering unknown ncRNAs with no bias toward the ncRNA families of the training set, SVMs were trained by excluding particular families of ncRNAs, and were used for classifying the excluded ncRNAs and the shuffled negatives. We attempted the same training scheme as described in [17] to investigate the ability of the stem kernels to discover unknown ncRNAs using the same dataset as in the experiment of Table 2. As a result, the ROC scores in this test were 0.699 for the stem kernels, 0.582 for the local alignment kernels, and 0.949 for RNAz. This result suggests that the ability of stem kernels to discover unknown ncRNAs is weaker than that of RNAz. The key feature in discovering unknown structural ncRNAs is to detect evolutionary conserved structures in multiple sequence alignments. The SCI used in RNAz directly assesses the structure conservation in multiple alignments, and it contributes to the ability of detecting unknown structural ncRNAs. However, since the SCI cannot measure the structural similarities between RNA sequences, it is difficult to apply it to other aspects of structural RNA analysis, such as detecting particular families. On the other hand, the stem kernels evaluate common stem structures between two multiple alignments, in other words, the stem kernels are not the measure of the structure conservation, but rather are the measure of the structural similarity between ncRNAs. Therefore, the stem kernels can be applied to various kernel methods including not only SVMs but also kernel principal component analysis (KPCA), kernel canonical correlation analysis (KCCA), and so on [15].

### Remote homology search

Furthermore, we conducted a remote homology search of ncRNAs using SVMs with our kernel. Our kernel method was compared with INFERNAL [7] based on profile SCFGs. INFERNAL has been recommended for RNA homology search by the benchmark of currently available RNA homology search tools called BRAliBase III [33]. This benchmark dataset contains tRNAs, 5S rRNAs and U5 spliceosomal RNAs, which have relatively conserved sequences and/or secondary structures, whereby both INFERNAL and our kernel can easily detect homologs (data not shown).

*C. elegans*from the literature [34]. These mean pairwise identities are too low to be discovered by existing methods. For each family, non-homologs were generated by shuffling every sequence 10 times. The shuffling processes preserved dinucleotide frequencies. Twenty query sets of 5 and 10 sequences were sampled from each family, respectively. Using these query sets, we attempted to search for homologs among all of the original and the shuffled sequences.

Summary of the dataset for the experiment of the remote homology search.

ncRNA type | N | Length | %id |
---|---|---|---|

H/ACA snoRNA | 47 | 145.1 | 29% |

C/D snoRNA | 41 | 84.6 | 30% |

For INFERNAL, each query was aligned by CLUSTAL-W [29], folded by RNAalifold [35], and converted into a covariance model (CM). The CM searched for homologous sequences in the dataset, calculating a bit score for each sequence. A ROC curve can be plotted using the bit scores as decision values.

For the stem kernel, every sequence for each query was shuffled 10 times in order to generate negative samples. Then, the SVM with the stem kernel learned the discrimination model from the query and the negatives. The model searched for homologous sequences in the dataset, calculating an SVM class probability for each sequence. A ROC curve can be plotted in this case using SVM class probabilities as decision values.

Note that the sequences in the datasets shown in Table 4 are remotely homologous to each other, which makes it difficult for RNAalifold to calculate common secondary structures from alignments produced by CLUSTAL-W. INFERNAL searches the common secondary structure of the query sequences for a given sequence, and thus the CM search fails if no acceptable covariance model for the query sequences can be generated. Although using structural alignments for ncRNAs might improve the homology search with INFERNAL, it is not certain that given query sequences have common secondary structures. In such cases, it is difficult for any alignment programs to produce robust alignments with acceptable common secondary structures. In fact, the secondary structures of snoRNAs used in our experiments are highly diverse so that we often did not obtain suitable multiple alignments for building CMs even if using structural alignment programs (data not shown). In contrast, SVMs calculate kernel values, i.e., pairwise similarities, between every pair of examples, and learn the weight parameters for each example in order to maximize the margin between the positives and the negatives. After this, the trained SVMs predict the classification of a new example based on the weighted sum of kernel values of the new example and all the training examples. In other words, SVMs make a decision about the classification based on the majority voting principle with respect to the optimized weights. This approach minimizes the risk of mispredictions and makes decisions which are more robust than those of the methods which use only one representative such as a common secondary structure of the query sequences, that is, SVMs with our kernel require no common secondary structures of the query sequences, and can make robust predictions in performing remote homology search of structural ncRNAs. This approach, however, requires a number of kernel computations for each sequence to be analyzed, proportional to the number of support vectors collected in training SVMs. Therefore, the prediction process should take a long computation time if the training process could not reduce the number of support vectors.

### Kernel hierarchical clustering

*TP*) be the number of sequence pairs in the same cluster which belong to the same family of Rfam. Analogously, let the number of false positives (

*FP*) be the number of sequence pairs in the same cluster which belong to different families, the number of false negatives (

*FN*) be the number of sequence pairs from the same family which lie in different clusters, and the number of true negatives (

*TN*) be the number of sequence pairs from different families which lie in different clusters. The ROC curve plots the true positive rates as a function of the false positive rates for different clustering thresholds. Figure 6 shows the ROC curves for our kernel and LocARNA [36]. LocARNA produced hierarchical clusters whose ROC score was 0.781, while our kernel produced a score of 0.894.

LocARNA and the DAG-based stem kernels are similar to each other in their approximation technique, in which the base pairs whose base-pairing probability is below a predefined threshold are disregarded. One of the most important differences between the above two methods is that LocARNA calculates a score for only the best scoring secondary structure with bifurcations, while stem kernels sum all scores over an ensemble of common stem structures, including any suboptimal structures. In other words, stem kernels can be regarded as a variant of Sankoff algorithm [37], which calculates the partition function without any bifurcations. This feature of stem kernels determines their robustness with respect to measuring structural similarities.

## Conclusion

We have developed a new technique for analyzing structural RNA sequences using kernel methods. This technique is based on directed acyclic graphs (DAGs) derived from base-pairing probability matrices of RNA sequences, and significantly reduces the computation time for stem kernels. Our method considers only likely base pairs whose base-pairing probability is above a predefined threshold. The kernel values are calculated using DAG kernels, where each DAG is produced from these likely base pairs. Furthermore, we have proposed profile-profile stem kernels for multiple alignments of RNA sequences, which utilize the averaged base-pairing probability matrices of multiple alignments of RNA sequences.

Our kernels outperformed the existing methods for detection of known ncRNAs by using SVMs and kernel hierarchical clustering. In the experiments where SVMs were used, the stem kernels performed nearly perfect discrimination in the dataset, and collected a smaller number of support vectors in comparison with the local alignment kernels due to the robustness of the stem kernels with respect to secondary structures. Therefore, stem kernels can be used for reliable similarity measurements of structural RNAs, and can be utilized in various applications using kernel methods.

The new technique proposed in this paper significantly increases the computation speed for stem kernels, which is a step toward the realization of a genome-scale search of ncRNAs using stem kernels. Since our method is capable of detecting remote homology, it is possible to discover new ncRNAs which cannot be detected with existing methods.

## Availability

Our implementation of the profile-profile stem kernels is available at http://www.ncrna.org/software/stem-kernels/ under the GNU public license. It takes RNA sequences or multiple alignments, and calculates a kernel matrix, which can be used as an input for a popular SVM tool called LIBSVM [38]. Furthermore, our software is capable of parallel processing using the Message Passing Interface (MPI) [39].

## Declarations

### Acknowledgements

This work was supported in part by a grant from "Functional RNA Project" funded by the New Energy and Industrial Technology Development Organization (NEDO) of Japan, and was also supported in part by Grant-in-Aid for Scientific Research on Priority Area "Comparative Genomics" No. 17018029 from the Ministry of Education, Culture, Sports, Science and Technology of Japan. We thank Dr. S. Washietl and Dr. I. L. Hofacker for providing us with their large-scale dataset of multiple alignments of non-coding RNAs. We also thank our colleagues from the RNA Informatics Team at the Computational Biology Research Center (CBRC) for fruitful discussions.

## Authors’ Affiliations

## References

- Eddy SR: Non-coding RNA genes and the modern RNA world.
*Nat Rev Genet*2001, 2(12):919–929. 10.1038/35103511View ArticlePubMedGoogle Scholar - Searls DB: The language of genes.
*Nature*2002, 420(6912):211–217. 10.1038/nature01255View ArticlePubMedGoogle Scholar - Eddy SR, Durbin R: RNA sequence analysis using covariance models.
*Nucleic Acids Res*1994, 22(11):2079–2088. 10.1093/nar/22.11.2079PubMed CentralView ArticlePubMedGoogle Scholar - Sakakibara Y, Brown M, Hughey R, Mian IS, Sjölander K, Underwood RC, Haussler D: Stochastic context-free grammars for tRNA modeling.
*Nucleic Acids Res*1994, 22(23):5112–5120. 10.1093/nar/22.23.5112PubMed CentralView ArticlePubMedGoogle Scholar - Knudsen B, Hein J: RNA secondary structure prediction using stochastic context-free grammars and evolutionary history.
*Bioinformatics*1999, 15(6):446–454. 10.1093/bioinformatics/15.6.446View ArticlePubMedGoogle Scholar - Rivas E, Eddy SR: Noncoding RNA gene detection using comparative sequence analysis.
*BMC Bioinformatics*2001, 2: 8. 10.1186/1471-2105-2-8PubMed CentralView ArticlePubMedGoogle Scholar - Eddy SR: A memory-efficient dynamic programming algorithm for optimal alignment of a sequence to an RNA secondary structure.
*BMC Bioinformatics*2002, 3: 18. 10.1186/1471-2105-3-18PubMed CentralView ArticlePubMedGoogle Scholar - Sakakibara Y: Pair hidden Markov models on tree structures.
*Bioinformatics*2003, 19(Suppl 1):i232-i240. 10.1093/bioinformatics/btg1032View ArticlePubMedGoogle Scholar - Klein RJ, Eddy SR: RSEARCH: finding homologs of single structured RNA sequences.
*BMC Bioinformatics*2003, 4: 44. 10.1186/1471-2105-4-44PubMed CentralView ArticlePubMedGoogle Scholar - Sato K, Sakakibara Y: RNA secondary structural alignment with conditional random fields.
*Bioinformatics*2005, 21(Suppl 2):ii237-ii242. 10.1093/bioinformatics/bti1139View ArticlePubMedGoogle Scholar - Holmes I: Accelerated probabilistic inference of RNA structure evolution.
*BMC Bioinformatics*2005, 6: 73. 10.1186/1471-2105-6-73PubMed CentralView ArticlePubMedGoogle Scholar - Dowell RD, Eddy SR: Efficient pairwise RNA structure prediction and alignment using sequence alignment constraints.
*BMC Bioinformatics*2006, 7: 400. 10.1186/1471-2105-7-400PubMed CentralView ArticlePubMedGoogle Scholar - Pedersen JS, Bejerano G, Siepel A, Rosenbloom K, Lindblad-Toh K, Lander ES, Kent J, Miller W, Haussler D: Identification and classification of conserved RNA secondary structures in the human genome.
*PLoS Comput Biol*2006, 2(4):e33. 10.1371/journal.pcbi.0020033PubMed CentralView ArticlePubMedGoogle Scholar - Do CB, Woods DA, Batzoglou S: CONTRAfold: RNA secondary structure prediction without physics-based models.
*Bioinformatics*2006, 22(14):e90-e98. 10.1093/bioinformatics/btl246View ArticlePubMedGoogle Scholar - Schölkopf B, Tsuda K, Vert JP:
*Kernel Methods in Computational Biology*. Cambridge, MA: MIT Press; 2004.Google Scholar - Kin T, Tsuda K, Asai K: Marginalized kernels for RNA sequence data analysis.
*Genome Inform*2002, 13: 112–122.PubMedGoogle Scholar - Washietl S, Hofacker IL, Stadler PF: Fast and reliable prediction of noncoding RNAs.
*Proc Natl Acad Sci U S A*2005, 102(7):2454–2459. 10.1073/pnas.0409169102PubMed CentralView ArticlePubMedGoogle Scholar - Hertel J, Stadler PF: Hairpins in a Haystack: recognizing microRNA precursors in comparative genomics data.
*Bioinformatics*2006, 22(14):e197-e202. 10.1093/bioinformatics/btl257View ArticlePubMedGoogle Scholar - Hertel J, Hofacker IL, Stadler PF: SnoReport: Computational identification of snoRNAs with unknown targets.
*Bioinformatics*2008, 24(2):158–164. 10.1093/bioinformatics/btm464View ArticlePubMedGoogle Scholar - Sakakibara Y, Popendorf K, Ogawa N, Asai K, Sato K: Stem kernels for RNA sequence analyses.
*J Bioinform Comput Biol*2007, 5(5):1103–1122. 10.1142/S0219720007003028View ArticlePubMedGoogle Scholar - McCaskill JS: The equilibrium partition function and base pair binding probabilities for RNA secondary structure.
*Biopolymers*1990, 29(6–7):1105–1119. 10.1002/bip.360290621View ArticlePubMedGoogle Scholar - Hofacker IL: Vienna RNA secondary structure server.
*Nucleic Acids Res*2003, 31(13):3429–3431. 10.1093/nar/gkg599PubMed CentralView ArticlePubMedGoogle Scholar - Haussler D: Convolution kernels on discrete structures. In
*Tech. Rep. UCSC-CRL-99–10*. Department of Computer Science, University of California at Santa Cruz; 1999.Google Scholar - Saigo H, Vert JP, Ueda N, Akutsu T: Protein homology detection using string alignment kernels.
*Bioinformatics*2004, 20(11):1682–1689. 10.1093/bioinformatics/bth141View ArticlePubMedGoogle Scholar - Kiryu H, Kin T, Asai K: Robust prediction of consensus secondary structures using averaged base pairing probability matrices.
*Bioinformatics*2007, 23(4):434–441. 10.1093/bioinformatics/btl636View ArticlePubMedGoogle Scholar - Griffiths-Jones S, Moxon S, Marshall M, Khanna A, Eddy SR, Bateman A: Rfam: annotating non-coding RNAs in complete genomes. Nucleic Acids Res 2005, (33 Database):D121-D124.Google Scholar
- Rosenblad MA, Gorodkin J, Knudsen B, Zwieb C, Samuelsson T: SRPDB: Signal Recognition Particle Database.
*Nucleic Acids Res*2003, 31: 363–364. 10.1093/nar/gkg107PubMed CentralView ArticlePubMedGoogle Scholar - Brown JW: The Ribonuclease P Database.
*Nucleic Acids Res*1999, 27: 314. 10.1093/nar/27.1.314PubMed CentralView ArticlePubMedGoogle Scholar - Thompson JD, Higgins DG, Gibson TJ: CLUSTAL W: improving the sensitivity of progressive multiple sequence alignment through sequence weighting, position-specific gap penalties and weight matrix choice.
*Nucleic Acids Res*1994, 22(22):4673–4680. 10.1093/nar/22.22.4673PubMed CentralView ArticlePubMedGoogle Scholar - Washietl S, Hofacker IL: Consensus folding of aligned sequences as a new measure for the detection of functional RNAs by comparative genomics.
*J Mol Biol*2004, 342: 19–30. 10.1016/j.jmb.2004.07.018View ArticlePubMedGoogle Scholar - Tax DM, Duin RP: Support vector data description.
*Machine Learning*2004, 54: 45–66. 10.1023/B:MACH.0000008084.60811.49View ArticleGoogle Scholar - Babak T, Blencowe BJ, Hughes TR: Considerations in the identification of functional RNA structural elements in genomic alignments.
*BMC Bioinformatics*2007, 8: 33. 10.1186/1471-2105-8-33PubMed CentralView ArticlePubMedGoogle Scholar - Freyhult EK, Bollback JP, Gardner PP: Exploring genomic dark matter: a critical assessment of the performance of homology search methods on noncoding RNA.
*Genome Res*2007, 17: 117–125. 10.1101/gr.5890907PubMed CentralView ArticlePubMedGoogle Scholar - Deng W, Zhu X, Skogerbø G, Zhao Y, Fu Z, Wang Y, He H, Cai L, Sun H, Liu C, Li B, Bai B, Wang J, Jia D, Sun S, He H, Cui Y, Wang Y, Bu D, Chen R: Organization of the Caenorhabditis elegans small non-coding transcriptome: genomic features, biogenesis, and expression.
*Genome Res*2006, 16: 20–29. 10.1101/gr.4139206PubMed CentralView ArticlePubMedGoogle Scholar - Hofacker IL, Fekete M, Stadler PF: Secondary structure prediction for aligned RNA sequences.
*J Mol Biol*2002, 319(5):1059–1066. 10.1016/S0022-2836(02)00308-XView ArticlePubMedGoogle Scholar - Will S, Reiche K, Hofacker IL, Stadler PF, Backofen R: Inferring noncoding RNA families and classes by means of genome-scale structure-based clustering.
*PLoS Comput Biol*2007, 3(4):e65. 10.1371/journal.pcbi.0030065PubMed CentralView ArticlePubMedGoogle Scholar - Sankoff D: Simultaneous solution of the RNA folding, alignment and protosequence problems.
*SIAM Journal on Applied Mathematics*1985, 45(5):810–825. 10.1137/0145048View ArticleGoogle Scholar - Fan RE, Chen PH, Lin CJ: Working set selection using second order information for training support vector machines.
*Journal of Machine Learning Research*2005, 6: 1889–1918. [http://www.csie.ntu.edu.tw/~cjlin/libsvm/]Google Scholar - Pacheco P:
*Parallel Programming with MPI*. Morgan Kaufmann; 1996.Google Scholar

## Copyright

This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.