Skip to main content
Briefings in Bioinformatics logoLink to Briefings in Bioinformatics
. 2024 Dec 31;26(1):bbae682. doi: 10.1093/bib/bbae682

R3Design: deep tertiary structure-based RNA sequence design and beyond

Cheng Tan 1,2,b, Yijie Zhang 3,4,b, Zhangyang Gao 5,b, Hanqun Cao 6, Siyuan Li 7, Siqi Ma 8, Mathieu Blanchette 9,10,✉, Stan Z Li 11,✉
PMCID: PMC11685104  PMID: 39737572

Abstract

The rational design of Ribonucleic acid (RNA) molecules is crucial for advancing therapeutic applications, synthetic biology, and understanding the fundamental principles of life. Traditional RNA design methods have predominantly focused on secondary structure-based sequence design, often neglecting the intricate and essential tertiary interactions. We introduce R3Design, a tertiary structure-based RNA sequence design method that shifts the paradigm to prioritize tertiary structure in the RNA sequence design. R3Design significantly enhances sequence design on native RNA backbones, achieving high sequence recovery and Macro-F1 score, and outperforming traditional secondary structure-based approaches by substantial margins. We demonstrate that R3Design can design RNA sequences that fold into the desired tertiary structures by validating these predictions using advanced structure prediction models. This method, which is available through standalone software, provides a comprehensive toolkit for designing, folding, and evaluating RNA at the tertiary level. Our findings demonstrate R3Design’s superior capability in designing RNA sequences, which achieves around Inline graphic in terms of both recovery score and Macro-F1 score in multiple datasets. This not only denotes the accuracy and fairness of the model but also underscores its potential to drive forward the development of innovative RNA-based therapeutics and to deepen our understanding of RNA biology.

Keywords: RNA, artificial intelligence, inverse folding, graph neural networks, biomolecular engineering

Introduction

The pivotal role of Ribonucleic acid (RNA) in biological systems is underscored by its diverse functions, from encoding genetic information to catalyzing biochemical reactions and regulating gene expression [1–3]. Notably, non-coding RNA strands fold into complex three-dimensional structures that are crucial for their biological functionality [4, 5]. The design of RNA molecules with specific structures and functions has profound implications for therapeutic development, synthetic biology, and the elucidation of life’s molecular underpinnings [6, 7]. The intricate geometries intrinsic to RNA molecules equip them with unique capabilities [8], enabling them to perform irreplaceable roles in vital cellular operations, including but not limited to mRNA translation [9], RNA splicing [10–12], and gene regulation [13]. These processes are foundational to cellular biology, underscore the critical nature of RNA’s contributions to life sciences, and highlight the potential impact of mastering RNA design on future biomedical and biotechnological advancements.

Despite the crucial role of RNA in myriad biological processes, the ability to design RNA molecules that fold into specific three-dimensional structures with high precision remains a significant challenge. Traditional computational methods for RNA design have predominantly focused on secondary structure predictions [14–19]. Some more recent approaches not only focused on developing reinforcement learning tools to enhance secondary structure-based RNA sequence design [14], but also proposed a standard protocol to integrate a 3D structure prediction model with the system pipeline to promote a more realistic sequence design [20], which accepts the designed sequence depending on the quality of predicted 3D structures with that sequence. However, while those methods are important and inspiring, their reliance on RNA secondary structure offers an incomplete view of RNA’s functional capabilities [21–25]. In particular, algorithms for RNA secondary structure prediction have been extensively developed, yielding impressive results through leveraging large datasets of known secondary structures [26–29]. However, knowledge of RNA tertiary structures, which is crucial for thoroughly understanding RNA functional mechanisms and discovering RNA-targeted therapies [6, 30], remains limited [31].

The success of protein structure prediction approaches [32, 33] inspired similar advancements in RNA tertiary structure prediction, leading to the development of RNA tertiary structure folding algorithms such as DeepFoldRNA [34], RoseTTAFoldNA [35], DRfold [25], trRosettaRNA [24], and RhoFold [36, 37]. While predicting RNA tertiary structures from primary sequences can leverage abundant sequence data [36] by multiple sequence alignment or language models, its inverse problem, designing RNA sequences that reliably fold into a specified tertiary structure, as also proposed by recent approaches [38], remains largely underexplored.

In this work, we propose a thorough pipeline aiming at data-driven tertiary structure-based RNA design tasks. We introduce R3Design, an RNA sequence design method that trained on over two thousand representative RNA structures collected from Protein Data Bank (PDB) [39] and RNASolo dataset [40]. R3Design builds a computational framework tailored to tackle the complexity of RNA tertiary structures. Furthermore, R3Design incorporates base pair prediction prior to guiding the RNA design process, leveraging the correlation between RNA secondary and tertiary structures. An iterative refinement strategy fine-tunes the model’s outputs through cycles of prediction and adjustment, facilitating nuanced adjustments that align with the complex structural dynamics inherent to functional RNA molecules. Benchmark evaluations underscore the efficacy of R3Design, establishing a robust baseline for tertiary structure-based RNA design and paving the way for future innovations in RNA-based therapeutics and molecular biology.

Results

R3Design designs RNA sequences with high sequence-level fidelity

We collected a non-redundant set of RNA structures from the PDB [39] and RNASolo dataset [40] to train R3Design, which comprises a total of 2218 representative RNA structures. This dataset was initially derived from the representative RNA structures in the RNASolo dataset with a resolution less than 4.0 Å. Then, their sequences and structures were cleaned according to the corresponding structures in the PDB database. Specifically, we excluded the sequences longer than 500 nucleotides as they only occupy Inline graphic in the whole original dataset, as shown in the Appendix. Our dataset was curated to represent a broad range of RNA structural types and complexities, ensuring a robust test of R3Design’s capabilities. We divided the dataset based on structural similarity, allocating 1774 for training, 223 for validation, and 221 for testing purposes. The distribution and specific characteristics of this dataset are detailed in the Appendix. To ensure the reliability of our results, we conducted each experiment three times using different random seeds and reported both the mean and standard deviation of our metrics, providing insights into the consistency and precision of R3Design.

Table 1 presents the sequence recovery rates achieved by R3Design in comparison to established RNA design methods across three sequence length categories: Short (0–50 nucleotides), Medium (50–100 nucleotides) and Long (more than 100 nucleotides). The recovery rate measures the percentage of nucleotides in the designed sequence that exactly match the target sequence, providing a direct indicator of fidelity. Higher values indicate better performance. Notably, R3Design demonstrates superior performance, particularly highlighted by its consistency across varying complexities and lengths, which underscores its robustness in handling the intrinsic variability of RNA structures.

Table 1.

The recovery on the benchmark dataset. The best results are highlighted in bold.

Method Recovery (%) Inline graphic
  Short Medium Long All
SeqRNN (h=128) 26.52Inline graphic1.07 24.86Inline graphic0.82 27.31Inline graphic0.41 26.23Inline graphic0.87
SeqRNN (h=256) 27.61Inline graphic1.85 27.16Inline graphic0.63 28.71Inline graphic0.14 28.24Inline graphic0.46
SeqLSTM (h=128) 23.48Inline graphic1.07 26.32Inline graphic0.05 26.78Inline graphic1.12 24.70Inline graphic0.64
SeqLSTM (h=256) 25.00Inline graphic0.00 26.89Inline graphic0.35 28.55Inline graphic0.13 26.93Inline graphic0.93
StructMLP 25.72Inline graphic0.51 25.03Inline graphic1.39 25.38Inline graphic1.89 25.35Inline graphic0.25
StructGNN 27.55Inline graphic0.94 28.78Inline graphic0.87 28.23Inline graphic1.95 28.23Inline graphic0.71
GraphTrans 26.15Inline graphic0.93 23.78Inline graphic1.11 23.80Inline graphic1.69 24.73Inline graphic0.93
PiFold 24.81Inline graphic2.01 25.90Inline graphic1.56 23.55Inline graphic4.13 24.48Inline graphic1.13
R3Design 39.66 Inline graphic 2.30 47.04 Inline graphic 0.39 47.42 Inline graphic 0.93 44.27 Inline graphic 0.62

The Macro F1-score, presented in Table 2, evaluates the balance between precision and recall achieved by each method across different RNA sequence lengths. The score is multiplied by 100 for better readability. A higher Macro F1-score indicates a method’s efficiency in not only identifying correct nucleotides (precision) but also in minimizing false negatives (recall). R3Design’s consistently higher scores across all categories reflect its robustness in sequence prediction, substantially enhancing both aspects of prediction quality compared to other methods.

Table 2.

The Macro-F1 on the benchmark dataset. The score is multiplied by 100 for aesthetics.

Method Macro F1 (Inline graphic100) Inline graphic
  Short Medium Long All
SeqRNN (h=128) 17.22Inline graphic1.69 17.20Inline graphic1.91 8.44Inline graphic2.70 17.74Inline graphic1.59
SeqRNN (h=256) 12.54Inline graphic2.94 13.64Inline graphic5.24 8.85Inline graphic2.41 13.64Inline graphic2.69
SeqLSTM (h=128) 9.89Inline graphic0.57 10.44Inline graphic1.42 10.71Inline graphic2.53 10.28Inline graphic0.61
SeqLSTM (h=256) 9.26Inline graphic1.16 9.48Inline graphic0.74 7.14Inline graphic0.00 10.93Inline graphic0.15
StructMLP 17.46Inline graphic2.39 18.57Inline graphic3.45 17.53Inline graphic8.43 18.88Inline graphic2.50
StructGNN 24.01Inline graphic3.62 22.15Inline graphic4.67 26.05Inline graphic6.43 24.87Inline graphic1.65
GraphTrans 16.34Inline graphic2.67 16.39Inline graphic4.74 18.67Inline graphic7.16 17.18Inline graphic3.81
PiFold 17.48Inline graphic2.24 18.10Inline graphic6.76 14.06Inline graphic3.53 17.45Inline graphic1.33
R3Design 41.48 Inline graphic 0.32 45.16 Inline graphic 2.28 42.80 Inline graphic 3.65 44.44 Inline graphic 0.85

To test the generalizability of R3Design, we further evaluated its performance on external benchmark datasets, including Rfam and RNA-Puzzles, which were compiled in [34]. These datasets encompass a diverse array of RNA structures and complexities, providing a robust framework for evaluating R3Design. We pre-trained the R3Design model on our benchmark dataset, explicitly excluding RNA structures that were similar to those in the external datasets to prevent data leakage and ensure a stringent testing protocol. Subsequently, we assessed the model’s performance on these benchmarks directly, without any additional training or fine-tuning.

The results, presented in Table 3, demonstrate that R3Design not only adapts well to new RNA structures but also consistently outperforms all baseline methods in terms of recovery and Macro F1-scores. R3Design achieved the highest recovery scores of 43.27% on Rfam and 45.41% on RNA-Puzzles, significantly outperforming the nearest competitor, eM2dRNAs, which scored 33.34 and 37.10%, respectively. This metric directly reflects the ability of R3Design to accurately reproduce target RNA sequences from their tertiary structures. Similarly, R3Design’s Macro F1 scores were 41.37% on Rfam and 44.74% on RNA-Puzzles, substantially higher than those of all other methods. The closest scores were by eM2dRNAs, at 24.80% on Rfam and 26.91% on RNA-Puzzles. These results highlight R3Design’s ability to generalize from its training dataset to new, previously unseen RNA structures. These findings affirm R3Design’s robust capability to model RNA sequences with high fidelity across varying structural complexities and datasets. The notable improvements in sequence recovery and Macro F1 scores underline not only its precision but also its reliability and effectiveness.

Table 3.

The overall recovery and Macro-F1 scores on the Rfam and RNA-Puzzles datasets.

Method Recovery (%) Inline graphic Macro F1 (Inline graphic100) Inline graphic
  Rfam RNA-Puzzles Rfam RNA-Puzzles
SeqRNN (h=128) 31.05Inline graphic0.51 31.51Inline graphic0.05 11.92Inline graphic0.17 12.11Inline graphic0.03
SeqRNN (h=256) 31.04Inline graphic0.50 31.53Inline graphic0.04 11.93Inline graphic0.16 12.12Inline graphic0.02
SeqLSTM (h=128) 30.28Inline graphic0.20 31.35Inline graphic0.26 12.36Inline graphic0.15 12.40Inline graphic0.15
SeqLSTM (h=256) 31.45Inline graphic0.08 31.79Inline graphic0.44 11.76Inline graphic0.09 12.07Inline graphic0.00
StructMLP 26.77Inline graphic3.38 27.06Inline graphic3.81 16.22Inline graphic2.43 16.72Inline graphic2.53
StructGNN 20.81Inline graphic1.42 20.68Inline graphic0.70 14.54Inline graphic1.11 12.70Inline graphic2.60
GraphTrans 27.50Inline graphic4.15 25.69Inline graphic4.34 20.66Inline graphic2.51 20.17Inline graphic0.14
PiFold 22.55Inline graphic4.13 23.78Inline graphic6.52 16.08Inline graphic2.34 16.20Inline graphic3.49
MCTS-RNA 31.74Inline graphic0.07 32.06Inline graphic1.87 23.82Inline graphic4.60 24.12Inline graphic3.47
LEARNA 31.92Inline graphic2.37 30.94Inline graphic4.15 24.02Inline graphic3.73 22.75Inline graphic1.17
aRNAque 30.01Inline graphic3.26 31.07Inline graphic2.32 22.84Inline graphic1.70 23.30Inline graphic1.65
eM2dRNAs 33.34Inline graphic1.02 37.10Inline graphic3.24 24.80Inline graphic3.88 26.91Inline graphic2.32
R3Design 43.27 Inline graphic 0.56 45.41 Inline graphic 1.95 41.37 Inline graphic 1.27 44.74 Inline graphic 0.71

For better visualization and to provide a clearer comparison of the distribution of the sequence-level metrics, we present a violin plot in Fig. 1. These results underscore R3Design’s capability to accurately model RNA sequences with high fidelity across different structural complexities and datasets. The improvements in sequence recovery and Macro-F1 scores not only highlight its precision but also its reliability and effectiveness for practical applications in RNA-based therapeutics.

Figure 1.

Figure 1

Violin plot on the sequence-level metrics across our benchmark, Rfam, and RNA-Puzzles datasets. (A) The first row shows the recovery rate comparison on the benchmark dataset with short, medium, and long splits. (B) The second row shows the Macro F1 comparison on the benchmark dataset with short, medium, and long splits. (C) The third row shows the recovery rate comparison on the complete benchmark dataset, Rfam, and RNA-Puzzles datasets. (D) The fourth row shows the Macro F1 comparison on the complete benchmark dataset, Rfam, and RNA-Puzzles datasets.

The designed sequence can fold into desirable secondary structure

Achieving high sequence-level fidelity is crucial for the accurate synthesis of RNA molecules; however, the functional competence of these molecules also critically depends on their ability to adopt correct secondary structures. This ability is pivotal not only for the structural integrity of RNA but also for its functionality in biological processes such as catalysis, regulation, and interactions with other biomolecules. To evaluate R3Design’s efficacy, we investigate its capacity to ensure that sequences it designs accurately fold into their native secondary structures. For our analyses, secondary structures are represented using the dot-bracket notation, which provides a visual and statistical means to assess folding accuracy.

Specifically, we leverage ModeRNA [41] to convert the tertiary structures of each RNA molecule into their corresponding dot-bracket representations. These representations served as the ground truth in our subsequent analyses. For the RNA sequences designed by R3Design, we employed RNAfold, a component of the ViennaRNA [42], to predict their secondary structures. RNAfold is renowned for its accuracy and efficiency in determining RNA secondary structures from sequence data, using thermodynamically optimized algorithms to predict the most stable structural configuration under given conditions. By inputting the designed sequences, we can obtain a predicted secondary structure in the dot-bracket notation for each sequence, which we then compare against the ground truth. We use accuracy to measure the percentage of nucleotides in the designed RNA sequence that correctly matches the secondary structure predicted by RNAfold. A higher percentage indicates a more accurate prediction of the RNA’s secondary structure. It is important to note that RNAfold may not always successfully predict a secondary structure for certain sequences. Therefore, we also calculated the ’recovered sequence rate’, which reflects the percentage of designed sequences that RNAfold could successfully fold into secondary structures. A rate of 100% indicates that all input sequences were successfully predicted.

We summarize the performance in designing RNA sequences that correctly fold into their predicted secondary structures in Fig. 2. On the Rfam dataset, R3Design stands out with an accuracy of 77.46%, which is significantly higher than the other methods, all while maintaining a 100% recovered sequence rate. Methods like MCTS, LEARNA, and EM2DRNA show perfect accuracy but their usability is limited by lower recovered sequence rates, suggesting that while they are highly precise, they are not as versatile or generalizable. Similar to the Rfam dataset, R3Design again provides a superior balance of high accuracy (74.04%) combined with a 100% recovered sequence rate on the RNA-Puzzles dataset, affirming its effectiveness and reliability in RNA sequence design across diverse datasets.

Figure 2.

Figure 2

Performance comparison of R3Design and other baseline models on folding secondary structure. The accuracy is the predicted secondary structure based on the designed sequences, and the recovered sequence rate is the foldable sequence rate. (A) The metrics on the Rfam dataset. (B) The metrics on the RNA-Puzzles dataset.

The designed sequence can fold into desirable tertiary structure

We evaluate the capability of R3Design to design RNA sequences that accurately fold into their desired tertiary conformations, using several advanced RNA tertiary structure prediction models for validation. To assess the tertiary folding of RNA sequences designed by R3Design, we employed three prominent RNA tertiary structure prediction models: DRfold [25], trRosettaRNA [24], AlphaFold3 [43], and RoseTTAFoldNA [35]. For each model, we first predicted the structures of native sequences as a baseline and then applied the models to sequences designed by R3Design. The Root Mean Square Deviation (RMSD) from the ground-truth structures served as the primary metric for evaluating the folded RNA tertiary structures.

We selected a set of RNA molecules that were unseen during the training of R3Design and are representative of diverse RNA structural types and complexities. Each molecule’s native sequence, along with the sequence redesigned by R3Design, was analyzed to compare their ability to fold into tertiary structures as predicted by the aforementioned models (Fig. 3).

Figure 3.

Figure 3

Comparative analysis of tertiary structure predictions for RNA sequences designed by R3Design. For each RNA molecule, we display both the native sequence and the sequence designed by R3Design. Tertiary structures predicted from these sequences using DRfold, trRosettaRNA, AlphaFold3, and RoseTTAFoldNA are shown. RMSD values are calculated to assess the accuracy of the predicted structures relative to the actual native tertiary structures. We highlight the different bases in the designed sequences in red.

Low RMSD cases (3AKZ-E and 3WQY-C)

For the RNA molecules 3AKZ-E and 3WQY-C, despite the designed sequences being markedly different from their native counterparts, the tertiary structures predicted by DRfold and trRosettaRNA closely resembled the native structures, as indicated by their low RMSD values. This suggests that R3Design can effectively design functionally equivalent RNA structures, even with significant sequence changes, maintaining structural integrity as evaluated by these models.

Moderate RMSD cases (5X6B-P and 6O3M-QV)

In cases such as 5X6B-P and 6O3M-QV, although the tertiary structures predicted from the R3Design sequences appeared visually similar to the ground-truth structures, they exhibited relatively higher RMSD values. Notably, DRfold consistently outperformed other models, indicating the combination of DRfold and R3Design is promising in in-silico tertiary structure-based RNA sequence design.

High RMSD cases (1GAX-C and 7KGA-A)

For molecules like 1GAX-C and 7KGA-A, the predicted structures displayed higher RMSD values yet maintained a similarity to the native structures in terms of overall spatial conformation. These instances underscore the challenges in RNA design, particularly in cases where maintaining exact native-like structures is crucial. Despite these challenges, the results affirm that R3Design possesses the capability to design RNA sequences that generally fold into their desired tertiary structures with high structural fidelity.

An RNA tertiary structure-based design software for in-silico designing and screening

The R3Design software represents a computational platform specifically tailored for the in-silico design and analysis of RNA sequences. By leveraging the inherent tertiary structure data provided by input PDB files, this software enables the RNA sequence design to meet desired structures. This innovative tool integrates sequence redesign, and comprehensive structural evaluations, making it a useful resource for researchers in the field of synthetic biology and therapeutic development.

As illustrated in Fig.4, the R3Design web software orchestrates the in-silico RNA design process through a streamlined, three-component pipeline: RNA sequence design using R3Design, comprehensive evaluations, and the delivery of final outputs. This platform begins by ingesting an RNA’s tertiary structure through a PDB file, setting the stage for RNA sequence design. We first utilize the R3Design model to design RNA sequences based on input tertiary structures. Following the sequence design, the sequences undergo meticulous evaluations across three structural dimensions—sequence, secondary, and tertiary levels:

Figure 4.

Figure 4

The detailed modular architecture of the R3Design software. The pipeline comprises three main components: (i) RNA sequence redesign using R3Design, based on the input tertiary structure, (ii) comprehensive evaluations at the sequence level, secondary structure level, and tertiary structure level, and (iii) the final output, which includes the optimized RNA sequences along with their corresponding evaluation metrics.

  • Sequence-level evaluation: this initial assessment focuses on sequence integrity, employing metrics like the recovery rate and Macro F1-score to quantify the similarity between the designed and native sequences.

  • Secondary structure-level evaluation: the accuracy of the predicted secondary structures is then verified, which is essential for understanding the RNA’s structural feasibility and the likelihood of it achieving the correct fold.

  • Tertiary structure-level evaluation: we compare the predicted structures, obtained using advanced models like RoseTTAFoldNA, with the original tertiary structures from the PDB input. This comparison is crucial as it highlights the structural fidelity and functional viability of the designed RNA sequences, offering insights into the effectiveness of the R3Design modifications.

The software outputs the designed RNA sequences that are capable of folding into the desired tertiary structures. Accompanying the designed sequences are detailed evaluation metrics that provide insights into the structural accuracy at multiple levels (tertiary, secondary, and sequence). Each metric serves as a critical component of the RNA sequence design process, elucidating successes and pinpointing areas that may require further optimization.

This R3Design software marks a significant advancement in tertiary structure-based RNA sequence design, offering a powerful platform for the in-silico design and evaluation of RNA molecules. By systematically redesigning RNA sequences based on the given tertiary structures and providing exhaustive multi-level structural evaluations, this software aids researchers in synthesizing RNA molecules with enhanced properties and confirmed structural integrity. Its comprehensive output, including optimized sequences and detailed metrics, ensures that researchers are well-equipped to pursue further experimental validations and applications in synthetic biology.

Discussion

We developed R3Design, a tertiary structure-based RNA sequence design model, diverging from the traditional secondary structure-based models commonly used in RNA design. We evaluate R3Design across three critical aspects to ensure its effectiveness and superiority over existing methods: sequence-level fidelity, secondary structure folding, and tertiary structure folding. At the sequence-level and secondary structure-level evaluations, R3Design significantly outperforms protein design baselines and secondary structure-based RNA design models. Namely, it effectively extracts RNA structural features through an RNA-specific modeling approach and introduces secondary structure constraints to help refine the designed sequence. R3Design also shows more stable performance than secondary structure-based RNA design models since most models are unable to output a conserved sequence for a large portion of RNA structure inputs in our dataset, as shown in Fig. 2. At the tertiary structure level, R3Design proves its capability to design RNA sequences that accurately fold into the desired tertiary structures, as validated by three advanced structure prediction models. Despite the designed sequences differing significantly from their native sequences, the resulting structures exhibit high similarity to the target structures. The comprehensive evaluations across multiple datasets underscore the robustness and generalizability of R3Design, establishing it as a powerful tool for RNA sequence design. The standalone R3Design software not only extends its utility but also stands out as the first comprehensive tool to tackle the entire RNA inverse folding problem. The software pipeline begins by accepting an RNA tertiary structure as input. It then proceeds with sequence design via the R3Design model and concludes by predicting the tertiary structure of the designed sequence, employing RosettaFoldNA [35] for the final output. Furthermore, the software allows for rigorous testing and evaluation of the functionalities and outcomes of each module within the model. It can generate secondary structures from the input tertiary structure in dot-bracket notation, assess the accuracy of the designed sequences, and compare the structural similarity between the input and the output predicted RNA tertiary structures. As a multifunctional tool, R3Design addresses each phase of the RNA inverse folding process. It not only promotes the development of similar in-silico models but also provides critical insights for experimental validation.

One limitation of R3Design is that it was trained using RNA sequences shorter than 500 nucleotides to enhance computational efficiency. However, as detailed in Supplementary Section A, a substantial 95.79% of sequences within the representative RNA chains are below this 500-nucleotide threshold, with longer sequences sporadically ranging between 500 and 4000 nucleotides. This distribution ensures that R3Design is applicable to the vast majority of RNA structures encountered in current databases, though its utility for exceptionally long RNA molecules remains constrained.

Another significant limitation is R3Design’s current inability to account for interactions between RNA and other molecules, such as proteins or small molecular ligands. This consideration is critical for the design of RNA molecules that function within complex biological systems, such as riboswitches or RNA aptamers that specifically bind to target molecules. Future iterations of R3Design could integrate these molecular interactions, employing more complex modeling frameworks that simulate the intermolecular forces and binding dynamics involved in these systems.

Methods

Preliminaries

For an RNA molecule, its primary structure consists of a sequence of nucleotide bases, which can be succinctly described by the following:

graphic file with name DmEquation1.gif (1)

where Inline graphic represents the total number of nucleotides in the RNA sequence. The formation of the tertiary structure involves the three-dimensional folding of this sequence, which involves specific atomic positions and can be denoted as

graphic file with name DmEquation2.gif (2)

where Inline graphic specifies the six atoms that typically comprise the backbone of the RNA structure, necessary for the integrity of its three-dimensional form.

Additionally, the secondary structures are incorporated using the dot-bracket notation, which efficiently marks paired and unpaired nucleotides:

graphic file with name DmEquation3.gif (3)

where Inline graphic is ’.’ if the nucleotide at position Inline graphic is unpaired, and ’(’ or ’)’ if it is part of a base pair. This notation is particularly useful in identifying and categorizing structural motifs that are crucial for the RNA’s function.

The core challenge of tertiary structure-based RNA sequence design is to formulate the mapping from the tertiary structure back to a corresponding primary structure, ideally preserving functionally important elements:

graphic file with name DmEquation4.gif (4)

where Inline graphic represents a learnable mapping function parameterized by Inline graphic. This function essentially aims to predict the primary RNA sequence (Inline graphic) that is capable of folding into a given tertiary structure (Inline graphic).

Graph-based RNA tertiary structure modeling

In this study, we develop a local coordinate system for each nucleotide in the RNA’s tertiary structure to facilitate precise structural modeling. The local coordinate system, denoted as Inline graphic for the Inline graphicth nucleotide, is constructed as follows:

graphic file with name DmEquation5.gif (5)

where Inline graphic is the negative bisector of angles between the rays of contiguous coordinates Inline graphic and Inline graphic, and Inline graphic is a unit vector normal to that plane. Formally, Inline graphic and Inline graphic are

graphic file with name DmEquation6.gif (6)

Constructing the local coordinate system involves calculating the bond vectors between successive Inline graphic atoms and using these to determine the bisector Inline graphic and normal Inline graphic. This local coordinate system is crucial as it provides a stable frame of reference for each nucleotide, invariant to the overall rotations and translations of the RNA molecule, thereby allowing for consistent intra- and inter-nucleotide measurements.

Unlike proteins where the backbone geometry can often be sufficiently modeled using only the Inline graphic atoms, RNA molecules exhibit a diversity of backbone conformations and base-pairing interactions that are more complex. To effectively capture this complexity, we propose modeling the RNA tertiary structure as an attributed graph Inline graphic, where Inline graphic and Inline graphic represent the node and edge attributes, respectively:

graphic file with name DmEquation7.gif (7)

with each node Inline graphic connected to Inline graphic nearest neighbors in three-dimensional space, forming a set denoted by Inline graphic. Here, Inline graphic and Inline graphic represent the dimensionalities of the node and edge attribute vectors, respectively. By default, we select Inline graphic to balance computational efficiency with structural detail capture.

We outline the attributes used in our modeling approach along with their corresponding illustrations in Table 4, which includes two levels of attributes: (i) intra-nucleotide level attributes describing the local geometry of each nucleotide as the node attribute Inline graphic, and (ii) inter-nucleotide level attributes describing the relative geometry between nucleotides as the edge attribute Inline graphic.

Table 4.

The feature construction of RNA tertiary structure modeling.

Level Feature Illustration
Intra Dihedral Angle Inline graphic
Distance Inline graphic
Direction Inline graphic
Inter Orientation Inline graphic
Distance Inline graphic
Direction Inline graphic

Intra-nucleotide level

(1) The dihedral angles, shown as red arrows in Fig. 5B, are calculated. We represent the dihedral angles of the RNA backbone using Inline graphic and Inline graphic functions. (2) The spatial distances between the other intra-nucleotide atoms and the atom Inline graphic are encoded into radial basis functions (RBFs). (3) The directions of the other intra-nucleotide atoms relative to the atom Inline graphic are calculated with respect to the local coordinate system Inline graphic.

Figure 5.

Figure 5

Overall framework of R3Design. (A) The overview of the R3Design pipeline. (B) The graph-based RNA tertiary structure modeling. (C) The secondary structure auxiliary task. (D) The model architecture of the backbone encoder and the sequence decoder. (E) The iterative sequence refinement process.

Inter-nucleotide level

(1) An orientation encoding Inline graphic is calculated from the quaternion representation of the spatial rotation matrix Inline graphic. (2) The spatial distances between inter-nucleotide atoms from neighboring nucleotides and the atom Inline graphic are encoded into RBFs. (3) The directions of the other inter-nucleotide atoms relative to the atom Inline graphic are calculated.

The R3Design framework

With the graph-based RNA tertiary structure modeling in place, we introduce the R3Design framework as shown in Fig. 5, which is structured around two principal components: a backbone encoder and a sequence decoder.

The backbone encoder is designed to transform the complex RNA tertiary structure into a comprehensive latent representation. It utilizes three layers of PiGNN, an adaptation from the PiFold protein design model [44]. This encoder processes the graph representation of the RNA tertiary structure meticulously, capturing not just the structural intricacies but also the crucial spatial relationships between nucleotides. Through its multilayered architecture, the backbone encoder effectively distills the essential features from the tertiary structure into a condensed form, setting the stage for accurate sequence prediction.

The sequence decoder is tasked with designing the corresponding RNA sequence from the latent representation provided by the encoder. The sequence decoder employs a linear layer optimized for this purpose, ensuring that the transition from structural data to nucleotide sequence is both smooth and accurate. This layer is intricately conditioned on the latent representation of the RNA tertiary structure, ensuring that structural information captured by the backbone encoder is effectively translated into the designed RNA sequence.

With the graph-based RNA tertiary structure modeling in place, we introduce the R3Design framework, which comprises two primary components: a backbone encoder and a sequence decoder. The backbone encoder is responsible for encoding the RNA tertiary structure into a latent representation, while the sequence decoder generates the corresponding RNA sequence from this representation. The backbone encoder is implemented using three layers of PiGNN [44], which is adapted from the protein design model PiFold. It processes the graph representation of the RNA tertiary structure, capturing the structural intricacies and spatial relationships between nucleotides. The sequence decoder, on the other hand, is a linear layer that predicts the RNA sequence based on the learned representation. It is conditioned on the latent representation of the RNA tertiary structure.

Secondary structure constraint

To ensure that the learned representations robustly encapsulate the functional intricacies of RNA sequences, particularly with respect to their secondary structures, we have incorporated a secondary structure constraint into our model. This constraint is operationalized through an auxiliary task that focuses on predicting the RNA’s secondary structure in the dot-bracket notation, which serves as a critical intermediary step in understanding RNA folding patterns. As shown in Fig. 5C, The auxiliary prediction task involves the use of the dot-bracket notation, a conventional method for denoting the secondary structure of RNA molecules. In this format, unpaired nucleotides are represented by dots (’.’), and paired nucleotides are bracketed together with matching parentheses (’(’ and ’)’), indicating base pairs in the RNA structure. This task is integrated into the main learning process to ensure that the secondary structural features are effectively captured in the RNA representation model. We implement a Transformer layer [45] to predict the secondary structure by giving the latent representation of the RNA tertiary structure. This Transformer layer is trained to predict the secondary structure of the RNA molecule, ensuring that the model captures the essential structural features of the RNA sequence. The secondary structure constraint is employed by the cross-entropy loss between the predicted secondary structure and the ground-truth secondary structure:

graphic file with name DmEquation8.gif (8)

where Inline graphic and Inline graphic are the ground-truth and predicted probabilities of the Inline graphicth secondary structure type at the Inline graphicth position, respectively.

Iterative sequence refinement

We initialize the model with a uniform probability distribution across the four nucleotide types (Adenine, Uracil, Cytosine, Guanine) for each position in the nucleotide sequence. Formally, this initialization can be described as follows:

graphic file with name DmEquation9.gif (9)

where Inline graphic represents the initial probability distribution, Inline graphic is the length of the RNA sequence, and Inline graphic is the probability of the Inline graphicth nucleotide type at the Inline graphicth position, with each type having an equal probability of Inline graphic initially.

The input to the model consists of this distribution of nucleotides, Inline graphic, combined with the graph-based representation of the RNA’s tertiary structure, Inline graphic. The model is trained to adjust its parameters to predict the probability distribution of the nucleotide sequence that aligns with the actual biological sequence observed. The predicted distribution of the Inline graphic-iteration, Inline graphic, is refined through iterative training to closely approximate the ground-truth distribution, Inline graphic. The training objective is to minimize the cross-entropy loss between the predicted probability distributions and the ground-truth distribution across all Inline graphic iterations:

graphic file with name DmEquation10.gif (10)

where Inline graphic and Inline graphic are the ground-truth and predicted probabilities of the Inline graphicth nucleotide type at the Inline graphicth position at the Inline graphic-iteration, respectively. We set the number of iterations Inline graphic in default.

The overall training objective is the linear combination of the secondary structure constraint loss and the iterative sequence loss:

graphic file with name DmEquation11.gif (11)

The architecture of the R3Design model is depicted in Fig. 5D, which illustrates the integration of the backbone encoder, sequence decoder, and iterative refinement.

Key Points

The main messages we would like to express in the paper are listed as follows:

  • This work introduces R3Design, a method designed to design RNA sequences based on their tertiary structures, trained on over two thousand RNA structures from the Protein Data Bank (PDB).

  • The method uses base pair prediction to improve accuracy by connecting RNA secondary and tertiary structures.

  • R3Design uses an iterative refinement process, which adjusts its predictions over multiple cycles to better match the complex structure of RNA.

  • This method is integrated into standalone software with another structure prediction approach, providing a comprehensive toolkit for designing, folding, and evaluating RNA at the tertiary level.

Supplementary Material

appendices_bbae682_bbae682

Acknowledgements

We thank the Compute Canada, Westlake University HPC Center for providing part of the computational resources.

Contributor Information

Cheng Tan, Zhejiang University, Zhejiang, China; AI Lab, Research Center for Industries of the Future, Westlake University, Zhejiang 310058, China.

Yijie Zhang, School of Computer Science, McGill University, Montreal QC H3A 2T8, Canada; MILA - Québec AI Institute, Montreal QC H2S 3H1, Canada.

Zhangyang Gao, AI Lab, Research Center for Industries of the Future, Westlake University, Zhejiang 310058, China.

Hanqun Cao, Department of Computer Science and Engineering, The Chinese University of Hong Kong, Shatin, N.T., Hong Kong, China.

Siyuan Li, AI Lab, Research Center for Industries of the Future, Westlake University, Zhejiang 310058, China.

Siqi Ma, AI Lab, Research Center for Industries of the Future, Westlake University, Zhejiang 310058, China.

Mathieu Blanchette, School of Computer Science, McGill University, Montreal QC H3A 2T8, Canada; MILA - Québec AI Institute, Montreal QC H2S 3H1, Canada.

Stan Z Li, AI Lab, Research Center for Industries of the Future, Westlake University, Zhejiang 310058, China.

Conflict of interest

None declared.

Funding

This work was supported by an AI&Health research chair from the Fonds de recherche du Québec en Santé, the Science & Technology Innovation 2030 Major Program Project No. 2021ZD0150100, National Natural Science Foundation of China Project No. 624B2115 and No. U21A20427, Project No. WU2022A009 from the Center of Synthetic Biology and Integrated Bioengineering of Westlake University, and Project No. WU2023C019 from the Westlake University Industries of the Future Research.

Data availability

The benchmark data used by this paper is publicly available at https://github.com/A4Bio/R3Design/releases/tag/data. Rfam and RNA-Puzzles datasets are publicly available at https://zhanggroup.org/DeepFoldRNA/benchmark.html.

Code availability

The R3Design software package, implemented by PyTorch, is publicly available at https://github.com/A4Bio/R3Design.

Author contributions statement

C.T., Y.Z., and G.Z. proposed this research, designed the method, and collected the datasets. S.L., H.C., and S.M. experimented and analyzed the results. M.B. and S.L. supervised the project and provided valuable suggestions on the manuscript. All authors discussed the results, revised the draft manuscript, and read and approved the final manuscript.

References

  • 1. Kaushik K, Sivadas A, Vellarikkal SK. et al. RNA secondary structure profiling in zebrafish reveals unique regulatory features. BMC Genomics 2018;19:1–17. 10.1186/s12864-018-4497-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2. Guo P, Coban O, Snead NM. et al. Engineering RNA for targeted siRNA delivery and medical application. Adv Drug Deliv Rev 2010;62:650–66. 10.1016/j.addr.2010.03.008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3. Sloma MF, Mathews DH. Exact calculation of loop formation probability identifies folding motifs in RNA secondary structures. RNA 2016;22:1808–18. 10.1261/rna.053694.115. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4. Feingold EA, Pachter L. The ENCODE (Encyclopedia of DNA Elements) project. Science 2004;306:636–40. 10.1126/science.1105136. [DOI] [PubMed] [Google Scholar]
  • 5. Gstir R, Schafferer S, Scheideler M. et al. Generation of a neuro-specific microarray reveals novel differentially expressed noncoding RNAs in mouse models for neurodegenerative diseases. RNA 2014;20:1929–43. 10.1261/rna.047225.114. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6. Warner KD, Hajdin CE, Weeks KM. Principles for targeting RNA with drug-like small molecules. Nat Rev Drug Discov 2018;17:547–58. 10.1038/nrd.2018.93. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7. Hopkins AL, Groom CR. The druggable genome. Nat Rev Drug Discov 2002;1:727–30. 10.1038/nrd892. [DOI] [PubMed] [Google Scholar]
  • 8. Crick F. Central dogma of molecular biology. Nature 1970;227:561–3. 10.1038/227561a0. [DOI] [PubMed] [Google Scholar]
  • 9. Roth A, Breaker RR. The structural and functional diversity of metabolite-binding riboswitches. Annu Rev Biochem 2009;78:305–34. 10.1146/annurev.biochem.78.070507.135656. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10. Runge F, Stoll D, Falkner S. et al. Learning to design RNA. In: International Conference on Learning Representations, Vancouver, Canada, 2018.
  • 11. Wanrooij PH, Uhler JP, Simonsson T. et al. G-quadruplex structures in RNA stimulate mitochondrial transcription termination and primer formation. Proc Natl Acad Sci 2010;107:16072–7. 10.1073/pnas.1006026107. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12. Kortmann J, Narberhaus F. Bacterial RNA thermometers: molecular zippers and switches. Nat Rev Microbiol 2012;10:255–65. 10.1038/nrmicro2730. [DOI] [PubMed] [Google Scholar]
  • 13. Meyer S, Chappell J, Sankar S. et al. Improving fold activation of small transcription activating RNAs (stars) with rational RNA engineering strategies. Biotechnol Bioeng 2016;113:216–25. 10.1002/bit.25693. [DOI] [PubMed] [Google Scholar]
  • 14. Runge F, Hutter F. Machine learning for RNA design: Learna. In: RNA Design: Methods and Protocols, pp. 63–93. Springer, Humana, New York, NY. 2024. [DOI] [PubMed] [Google Scholar]
  • 15. Yang X, Yoshizoe K, Taneda A. et al. RNA inverse folding using Monte Carlo tree search. BMC Bioinform 2017;18:1–12. 10.1186/s12859-017-1882-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16. Taneda A. Modena: a multi-objective RNA inverse folding. Adv Appl Bioinform Chem 2011;4:1–12. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17. Busch A, Backofen R. Info-RNA–a fast approach to inverse RNA folding. Bioinformatics 2006;22:1823–31. 10.1093/bioinformatics/btl194. [DOI] [PubMed] [Google Scholar]
  • 18. Eastman P, Shi J, Ramsundar B. et al. Solving the RNA design problem with reinforcement learning. PLoS Comput Biol 2018;14:e1006176. 10.1371/journal.pcbi.1006176. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19. Cazenave T, Touzani H. Monte Carlo inverse RNA folding. In: RNA Design: Methods and Protocols, pp. 205–15. Springer, Humana, New York, NY. 2024. [DOI] [PubMed] [Google Scholar]
  • 20. Antczak M, Szachniuk M. Toward increasing the credibility of RNA design. In: RNA Design: Methods and Protocols, pp. 137–51. Springer, Humana, New York, NY. 2024. [DOI] [PubMed] [Google Scholar]
  • 21. Angermueller C, Pärnamaa T, Parts L. et al. Deep learning for computational biology. Mol Syst Biol 2016;12:878. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22. Xiong P, Ruibo W, Zhan J. et al. Pairing a high-resolution statistical potential with a nucleobase-centric sampling algorithm for improving RNA model refinement. Nat Commun 2021;12:1–11. 10.1038/s41467-021-23100-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23. Singh J, Paliwal K, Singh J. et al. RNA backbone torsion and pseudotorsion angle prediction using dilated convolutional neural networks. J Chem Inf Model 2021;61:2610–22. 10.1021/acs.jcim.1c00153. [DOI] [PubMed] [Google Scholar]
  • 24. Wang W, Feng C, Han R. et al. trRosettaRNA: automated prediction of RNA 3D structure with transformer network. Nat Commun 2023;14:7266. 10.1038/s41467-023-42528-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25. Li Y, Zhang C, Feng C. et al. Integrating end-to-end learning with deep geometrical potentials for ab initio RNA structure prediction. Nat Commun 2023;14:5745. 10.1038/s41467-023-41303-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26. Singh J, Hanson J, Paliwal K. et al. RNA secondary structure prediction using an ensemble of two-dimensional deep neural networks and transfer learning. Nat Commun 2019;10:1–13. 10.1038/s41467-019-13395-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27. Chen X, Yu L, Umarov R. et al. RNA secondary structure prediction by learning unrolled algorithms. In: International Conference on Learning Representations, New Orleans, USA, 2019.
  • 28. Laiyi F, Cao Y, Jie W. et al. Ufold: fast and accurate RNA secondary structure prediction with deep learning. Nucleic Acids Res 2022;50:e14–4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29. Cheng T, Gao Z, Li SZ. RFold: towards simple yet effective RNA secondary structure prediction arXiv preprint arXiv:2212.14041. 2022.
  • 30. Churkin A, Retwitzer MD, Reinharz V. et al. Design of RNAs: comparing programs for inverse RNA folding. Brief Bioinform 2018;19:350–8. 10.1093/bib/bbw120. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31. Townshend RJL, Eismann S, Watkins AM. et al. Geometric deep learning of RNA structure. Science 2021;373:1047–51. 10.1126/science.abe5650. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32. Jumper J, Evans R, Pritzel A. et al. Highly accurate protein structure prediction with AlphaFold. Nature 2021;596:583–9. 10.1038/s41586-021-03819-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33. Baek M, DiMaio F, Anishchenko I. et al. Accurate prediction of protein structures and interactions using a three-track neural network. Science 2021;373:871–6. 10.1126/science.abj8754. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34. Pearce R, Omenn GS, Zhang Y. De novo RNA tertiary structure prediction at atomic resolution using geometric potentials from deep learning. bioRxiv. 2022 May 15:2022-05.
  • 35. Baek M, McHugh R, Anishchenko I. et al. Accurate prediction of nucleic acid and protein-nucleic acid complexes using rosettafoldna. bioRxiv. 2022 Sep 10:2022-09. [DOI] [PMC free article] [PubMed]
  • 36. Chen J, Zhihang H, Sun S. et al. Interpretable RNA foundation model from unannotated data for highly accurate RNA structure and function predictions. bioRxiv. 2022 Aug 7:2022-08.
  • 37. Shen T, Hu Z, Peng Z. et al. E2Efold-3D: end-to-end deep learning method for accurate de novo RNA 3D structure prediction arXiv preprint arXiv:2207.01586. 2022.
  • 38. Joshi CK, Liò P. gRNAde: a geometric deep learning pipeline for 3D RNA inverse design. In: RNA Design: Methods and Protocols, pp. 121–35. Springer, Humana, New York, NY. 2024. [DOI] [PubMed] [Google Scholar]
  • 39. Berman HM, Westbrook J, Feng Z. et al. The protein data bank. Nucleic Acids Res 2000;28:235–42. 10.1093/nar/28.1.235. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40. Adamczyk B, Antczak M, Szachniuk M. RNASolo: a repository of cleaned PDB-derived RNA 3D structures. Bioinformatics 2022;38:3668–70. 10.1093/bioinformatics/btac386. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41. Rother M, Rother K, Puton T. et al. Moderna: a tool for comparative modeling of RNA 3D structure. Nucleic Acids Res 2011;39:4007–22. 10.1093/nar/gkq1320. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42. Lorenz R, Bernhart SH, Siederdissen CH z. et al. ViennaRNA package 2.0. Algorithms Mol Biol 2011;6:1–14. 10.1186/1748-7188-6-26. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43. Abramson J, Adler J, Dunger J. et al. Accurate structure prediction of biomolecular interactions with AlphaFold 3. Nature 2024;630:493–500. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44. Gao Z, Cheng T, Li SZ. PiFold: toward effective and efficient protein inverse folding arXiv preprint arXiv:2209.12643. 2022.
  • 45. Vaswani A, Shazeer N, Parmar N. et al. Attention is all you need. Adv Neural Inf Process Syst 2017;30:5998–6004. [Google Scholar]

Associated Data

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

Supplementary Materials

appendices_bbae682_bbae682

Data Availability Statement

The benchmark data used by this paper is publicly available at https://github.com/A4Bio/R3Design/releases/tag/data. Rfam and RNA-Puzzles datasets are publicly available at https://zhanggroup.org/DeepFoldRNA/benchmark.html.


Articles from Briefings in Bioinformatics are provided here courtesy of Oxford University Press

RESOURCES