Computational prediction of nucleic acid structure
This article is about the computational prediction of nucleic acid structure. For experimental methods, see Nucleic acid structure determination.
Nucleic acid structure prediction is a computational method to determine secondary and tertiarynucleic acid structure from its sequence. Secondary structure can be predicted from one or several nucleic acid sequences. Tertiary structure can be predicted from the sequence, or by comparative modeling (when the structure of a homologous sequence is known).
The problem of predicting nucleic acid secondary structure is dependent mainly on base pairing and base stacking interactions; many molecules have several possible three-dimensional structures, so predicting these structures remains out of reach unless obvious sequence and functional similarity to a known class of nucleic acid molecules, such as transfer RNA (tRNA) or microRNA (miRNA), is observed. Many secondary structure prediction methods rely on variations of dynamic programming and therefore are unable to efficiently identify pseudoknots.
While the methods are similar, there are slight differences in the approaches to RNA and DNA structure prediction. In vivo, DNA structures are more likely to be duplexes with full complementarity between two strands, while RNA structures are more likely to fold into complex secondary and tertiary structures such as in the ribosome, spliceosome, or transfer RNA. This is partly because the extra oxygen in RNA increases the propensity for hydrogen bonding in the nucleic acid backbone. The energy parameters are also different for the two nucleic acids. The structure prediction methods can follow a completely theoretical approach, or a hybrid one incorporating experimental data.[1][2]
Single sequence structure prediction
A common problem for researchers working with RNA is to determine the three-dimensional structure of the molecule given only a nucleic acid sequence. However, in the case of RNA much of the final structure is determined by the secondary structure or intra-molecular base pairing interactions of the molecule. This is shown by the high conservation of base pairings across diverse species.
Secondary structure of small RNA molecules is largely determined by strong, local interactions such as hydrogen bonds and base stacking. Summing the free energy for such interactions should provide an approximation for the stability of a given structure. To predict the folding free energy of a given secondary structure, an empirical nearest-neighbor model is used. In the nearest neighbor model the free energy change for each motif depends on the sequence of the motif and of its closest base-pairs. (The "neighbor" aspect allows for describing the base stacking energy.) The energy of fragments are added together to get the total free energy. The structure with the minimal free energy (MFE) is the most stable.[3]
Andronescu 2007 parameters for RNA with any of the four canonical bases. This is derived from earlier wet lab experiments and from other forms of RNA structure data.[6][7]
Langdon 2018 parameters for RNA with any of the four canonical bases.[8]
As of 2020, most software packages default to Turner 2004. A 2020 benchmark shows that Turner 2004 is the worst of the four for RNA-RNA interaction tasks, with the best (Andronescu 2007) outperforming it by 5 pairs. It is known that Langdon 2018 is the best for structure prediction.[9]
The most stable structure
The simplest way to find the MFE structure would be to generate all possible structures and calculate the free energy for it, but the number of possible structures for a sequence increases exponentially with the length of RNA: number of secondary structures = (1,8)N, N- number of nucleotides.[10] For longer molecules, the number of possible secondary structures is huge: a sequence of 100 nucleotides has more than 1025 possible secondary structures. This calls for smarter methods.[3]
Dynamic programming algorithms
Most popular methods for predicting RNA and DNA's secondary structure involve dynamic programming.[11][12] One of the early attempts at predicting RNA secondary structure was made by Ruth Nussinov and co-workers who developed a dynamic programming-based algorithm that maximized the length and number of a series of "blocks" (polynucleotide chains).[11] Each "block" required at least two nucleotides, which reduced the algorithm's storage requirements over single base-matching approaches.[11] Nussinov et al. later published an adapted approach with improved performance that increased the RNA size limit to ~1,000 bases by folding increasingly sized subsections while storing the results of prior folds, now known as the Nussinov algorithm.[12] In 1981, Michael Zuker and Patrick Stiegler proposed a refined approach with performance comparable to Nussinov et al.'s solution but with the additional ability to find also find "suboptimal" secondary structures.[13]
Dynamic programming algorithms provide a means to implicitly check all variants of possible RNA secondary structures without explicitly generating the structures. First, the lowest conformational free energy is determined for each possible sequence fragment starting with the shortest fragments and then for longer fragments. For longer fragments, recursion on the optimal free energy changes determined for shorter sequences speeds the determination of the lowest folding free energy. Once the lowest free energy of the complete sequence is calculated, the exact structure of RNA molecule is determined.[3]
Dynamic programming algorithms are commonly used to detect base pairing patterns that are "well-nested", that is, form hydrogen bonds only to bases that do not overlap one another in sequence position. Secondary structures that fall into this category include double helices, stem-loops, and variants of the "cloverleaf" pattern found in transfer RNA molecules. These methods rely on pre-calculated parameters which estimate the free energy associated with certain types of base-pairing interactions, including Watson-Crick and Hoogsteen base pairs. Depending on the complexity of the method, single base pairs may be considered, and short two- or three-base segments, to incorporate the effects of base stacking. This method cannot identify pseudoknots, which are not well nested, without substantial algorithmic modifications that are computationally very costly.[14]
Predicting pseudoknots
One of the issues when predicting RNA secondary structure is that the standard free energy minimization and statistical sampling methods can not find pseudoknots.[4] The major problem is that the usual dynamic programing algorithms, when predicting secondary structure, consider only the interactions between the closest nucleotides, while pseudoknotted structures are formed due to interactions between distant nucleotides. Rivas and Eddy published a dynamic programming algorithm for predicting pseudoknots.[14] However, this dynamic programming algorithm is very slow. The standard dynamic programming algorithm for free energy minimization scales O(N3) in time (N is the number of nucleotides in the sequence), while the Rivas and Eddy algorithm scales O(N6) in time. This has prompted several researchers to implement versions of the algorithm that restrict classes of pseudoknots, resulting in performance gains. For example, pknotsRG tool includes only the class of simple recursive pseudoknots and scales O(N4) in time.[15]
The general problem of pseudoknot prediction has been shown to be NP-complete.[16]
Suboptimal structures
S. cerevisiae tRNAPhe structure space, where the true biological structure is not the one with MFE, mainly due to the presence of many modified bases. The energies and structures were calculated using RNAsubopt and the structure distances computed using RNAdistance from ViennaRNA 1.x. The Bos taurus tRNAPhe is in a similar situation, but the correct structure can be recovered as the MFE given appropriate corrections for modified bases (ViennaRNA 2.6.0 of 2023).[17]
The accuracy of RNA secondary structure prediction from one sequence by free energy minimization is limited by several factors:
The free energy value list in a nearest neighbor model may be incomplete or inaccurate.
Not all known RNA folds in such a way as to conform with the thermodynamic minimum.
Some RNA sequences have more than one biologically active conformation (i.e., riboswitches).
Modified bases are often assumed to fold in the same way as the unmodified version, but they actually have differences ranging from subtle (free energies changes on the order of 0.5 kcal/mol) to major (modification physcally blocks hydrogen bond from forming).[17]
For this reason, the ability to predict structures which have similar low free energy can provide significant information. Such structures are termed suboptimal structures. MFOLD is one program that generates suboptimal structures.[18]
A collection of structures can be represented by a "dot plot", a visualization of a square matrix containing the frequency of two bases being paired. This is essentially a type of heat map.
Boltzmann ensemble
A collection of possible structures forms an ensemble. By sampling from the ensemble according to the Boltzmann distribution (as exemplified by the program SFOLD), many possible structures can be returned.[19][20]
The states in an Boltzmann ensemble can also be represented by a "dot plot", with magnitudes being the probability of finding any two base being paired in the ensemble. These magnitudes implicitly represent thermodynamic data as well.
Comparative secondary structure prediction
Multiple evolutionarily related RNA sequences share patterns of covariation between sites. If two sites are often seen changing in sync, there is a high possibility that there is a structurally required hydrogen bond between those positions. This offers an additional source of information for what the true structure could look like.[16]
In general, the problem of alignment and consensus structure prediction are closely related. A few different approaches to the prediction of consensus structures can be distinguished:[21][22]
Folding of alignment
Alignment of singular predicted structures, in some cases jointly with sequence alignment
Simultaneous alignment of sequence and ensembles of predicted structures
Each of these steps can also be mixed and matched in an iterative fashion.[22]
Align then fold
A practical heuristic approach is to use multiple sequence alignment tools to produce an alignment of several RNA sequences, to find consensus sequence and then fold it. Covariation can be extracted from a multiple sequence alignment of multiple homologous RNA sequences with related but dissimilar sequences. The quality of the alignment determines the accuracy of the consensus structure model. Consensus sequences are folded using various approaches similarly as in individual structure prediction problem:
Pfold implements SCFGs. Covariation is converted into a "dot plot" of base pair probabilities, which is considered on top of the usual single-sequence version of Pfold.[23]
RNAalifold from the Vienna suite is essentially an alignment-based variant of RNAfold from the same suite. Both use a thermodynamic folding approach and can run in two modes: a MFE (minimum free energy) mode, which returns a single structure, and a partitioning mode, which gives several possible structures.[24] The score of a consensus structure is a combination of average thermodynamic energies and extra points derived from co-variation.[22]
A linear-time variant is found as LinearAlifold.[25]
ILM (iterated loop matching) uses combination of thermodynamics and mutual information (covariance) content scores. Like suggested in its name, it is based on Nussinov style loop-matching between predicted structures. In each iteration, a "best" helix/stem is found in the predicted secondary structure and the rest of the structure is folded again. This allows the prediction of pseudoknoted structures.[26]
Fold single then align/joint-align
Evolution frequently preserves functional RNA structure better than RNA sequence.[24] Hence, a common biological problem is to infer a common structure for two or more highly diverged but homologous RNA sequences. Sequence alignments become unsuitable and do not help to improve the accuracy of structure prediction when sequence similarity of two sequences is less than 50%. This calls for an approach that combines alignment and secondary structure prediction.[22]
The obvious approach to combine alignment and secondary structure prediction would be to fold the sequences using single-sequence structure prediction methods and align the resulting structures. Alignment of two structures is usually done by parsing the two structures into trees and then trying to find the minimum edit distance between the two trees.[27] This method runs fairly quickly even when a joint sequence-structure alignment is performed and gives results better than starting from a fixed, unchanging, potentially incorrect alignment.[28] It
Fold dot-plots then joint align
The use of singular structures and tree comparison still has it weaknesses. It is well-known that the true (physiological) structure is often not the minimum free energy structure. It is also found that tree-editing has limited ability to repair mispairings. These problems call for yet another type of approach, one that compares whole ensembles of possible structures.
There is an existing representation of ensembles of possible structures already: the dot plot, which remains useful here. To align two sequences while considering ensemble structures, each sequence first has its base-pair probability dot plot predicted. The problem then becomes joint alignment of sequences and dot plots; the prototypic algorithm for this problem is the Sankoff algorithm,[29] basically a merger of sequence alignment and Nussinov (maximal-pairing)[11] folding dynamic programming method.[30] The original Sankoff algorithm is a theoretical exercise because it requires extreme computational resources (O(n3m) in time, and O(n2m) in space, where n is the sequence length and m is the number of sequences).
Some notable attempts at implementing restricted versions of Sankoff's algorithm are Foldalign,[31][32] Dynalign,[33][34] PMmulti/PMcomp,[30]Stemloc,[35] Murlet,[36] and LocARNA-P.[37] These implementations are practical to run, but impose additional limits on properties such as the maximal length of alignment or variants of possible consensus structures. For example, Foldalign focuses on local alignments and restricts the possible length of the sequences alignment.
A different approach to joint alignment is used in CARNA to allow for more possible arrangements of base pairs such as pseudoknots or multiple stable structures. This is a MAX-SNP-hard problem, but constraint programming and hard limits keep the runtime practical.[38]
No matter which joint alignment method is used, they only deal with two sequences (or two pre-aligned groups of sequences) at a time. This is solved by ordinary iterative alignment with a guide tree.
Tertiary structure prediction
Once secondary structure of RNA is known, the next challenge is to predict tertiary structure. The biggest problem is to determine the structure of regions between double stranded helical regions. Also RNA molecules often contain posttranscriptionally modified nucleosides, which because of new possible non-canonical interactions, cause a lot of troubles for tertiary structure prediction.[39][40][41][42]
In the comparative approach, a related known structure is extracted from a database (e.g. the PDB for 3D structures). This structure is used as a template, onto which the sequence in question is grafted and adjusted.[43]
In the de novo or ab initio approach, no known 3D structures are used. The first step would be to predict the secondary structure using one of the approaches described above.[44] The secondary structure is then converted into fragments of 3D structures and joined together to form starting points for further refinement:
The more obvious method is to represent the temporary 3D structure using an all-atom representation containing the coordinates of every atom in 3D space.[45] The free energy of such a structure can be improved using existing physics-based methods such as molecular dynamics[46] or an RNA-specific random sampling of the conformational landscape[47] followed by screening with a statistical potential for scoring.[48]
All-atom structures take a lot of memory to store and a lot of computation power to improve. A coarse-grained representation can be used first to bring the structure closer to the true shape[49] before entering the high-resolution (all-atom) refinement stage, reducing the amount of work needed to be done in the high-resolution step.[50]
As with the problem of protein folding, machine learning (ML) has also been used to find and make use of higher-order relationships between the RNA sequence and the 2D or 3D structure. They outperform traditional methods in predicting the global RNA fold, but traditional (non-ML) methods still have an advantage in modeling intramolecular interactions and ligand binding sites as of 2024.[51]
^Zuker M.; Sankoff D. (1984). "RNA secondary structures and their prediction". Bull. Math. Biol. 46 (4): 591–621. doi:10.1016/s0092-8240(84)80062-2 (inactive 19 June 2025). S2CID189885784.{{cite journal}}: CS1 maint: DOI inactive as of June 2025 (link)
^ abcdNussinov R, Piecznik G, Grigg JR and Kleitman DJ (1978) Algorithms for loop matchings. SIAM Journal on Applied Mathematics.
^Malik, A; Zhang, L; Gautam, M; Dai, N; Li, S; Zhang, H; Mathews, DH; Huang, L (1 September 2024). "LinearAlifold: Linear-time consensus structure prediction for RNA alignments". Journal of Molecular Biology. 436 (17): 168694. arXiv:2206.14794. doi:10.1016/j.jmb.2024.168694. PMC 11377157. PMID38971557.
^Ruan, J., Stormo, G.D. & Zhang, W. (2004) ILM: a web server for predicting RNA secondary structures with pseudoknots. Nucleic Acids Research, 32(Web Server issue), W146-149.
^Shapiro BA and Zhang K (1990) Comparing Multiple RNA Secondary Structures Using Tree Comparisons Computer Applications in the Biosciences, vol. 6, no. 4, pp. 309–318.
^Siebert, S; Backofen, R (15 August 2005). "MARNA: multiple alignment and consensus structure prediction of RNAs based on sequence structure comparisons". Bioinformatics (Oxford, England). 21 (16): 3352–9. doi:10.1093/bioinformatics/bti550. PMID15972285.
^Sankoff D (1985). "Simultaneous solution of the RNA folding, alignment and protosequence problems". SIAM Journal on Applied Mathematics. 45 (5): 810–825. CiteSeerX10.1.1.665.4890. doi:10.1137/0145048.
^Torarinsson E, Havgaard JH, Gorodkin J. (2007) Multiple structural alignment and clustering of RNA sequences. Bioinformatics.
^Mathews DH, Turner DH (2002). "Dynalign: an algorithm for finding the secondary structure common to two RNA sequences". J Mol Biol. 317 (2): 191–203. doi:10.1006/jmbi.2001.5351. PMID11902836.
^Shapiro BA, Yingling YG, Kasprzak W, Bindewald E. (2007) Bridging the gap in RNA structure prediction. Curr Opin Struct Biol.
^Major F, Turcotte M, Gautheret D, Lapalme G, Fillion E, Cedergren R (Sep 1991). "The combination of symbolic and numerical computation for three-dimensional modeling of RNA". Science. 253 (5025): 1255–60. Bibcode:1991Sci...253.1255F. doi:10.1126/science.1716375. PMID1716375.
Macke T, Case D (1998). "Modeling Unusual Nucleic Acid Structures". Modeling unusual nucleic acid structures. In Molecular Modeling of Nucleic Acids. Edited by Leontes N, SantaLucia JJ. Washington, DC. ACS Symposium Series. Vol. 682. American Chemical Society. pp. 379–393. doi:10.1021/bk-1998-0682.ch024. ISBN978-0-8412-3541-0.