==== Front Bioinformatics Bioinformatics bioinformatics Bioinformatics 1367-4803 1367-4811 Oxford University Press 37387188 10.1093/bioinformatics/btad252 btad252 General Computational Biology AcademicSubjects/SCI01060 RNA design via structure-aware multifrontier ensemble optimization Zhou Tianshuo School of Electrical Engineering and Computer Science, Oregon State University, Corvalli OR 97330, United States Dai Ning School of Electrical Engineering and Computer Science, Oregon State University, Corvalli OR 97330, United States Li Sizhen School of Electrical Engineering and Computer Science, Oregon State University, Corvalli OR 97330, United States Ward Max Department of Computer Science and Software Engineering, The University of Western Australia, Perth, Australia https://orcid.org/0000-0002-2907-6557 Mathews David H Department of Biochemistry and Biophysics, University of Rochester Medical Center, Rochester, NY 14642, United States Center for RNA Biology, University of Rochester Medical Center, Rochester, NY 14642, United States Department of Biostatistics & Computational Biology, University of Rochester Medical Center, Rochester, NY 14642, United States https://orcid.org/0000-0001-6444-7045 Huang Liang School of Electrical Engineering and Computer Science, Oregon State University, Corvalli OR 97330, United States Corresponding author. School of Electrical Engineering and Computer Science, Oregon State University, Corvalli OR 97330, USA. E-mail: liang.huang.sh@gmail.com (L.H.) 6 2023 30 6 2023 30 6 2023 39 Suppl 1 ISMB/ECCB 2023 Proceedings i563i571 © The Author(s) 2023. Published by Oxford University Press. 2023 https://creativecommons.org/licenses/by/4.0/ This is an Open Access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted reuse, distribution, and reproduction in any medium, provided the original work is properly cited. Abstract Motivation RNA design is the search for a sequence or set of sequences that will fold to desired structure, also known as the inverse problem of RNA folding. However, the sequences designed by existing algorithms often suffer from low ensemble stability, which worsens for long sequence design. Additionally, for many methods only a small number of sequences satisfying the MFE criterion can be found by each run of design. These drawbacks limit their use cases. Results We propose an innovative optimization paradigm, SAMFEO, which optimizes ensemble objectives (equilibrium probability or ensemble defect) by iterative search and yields a very large number of successfully designed RNA sequences as byproducts. We develop a search method which leverages structure level and ensemble level information at different stages of the optimization: initialization, sampling, mutation, and updating. Our work, while being less complicated than others, is the first algorithm that is able to design thousands of RNA sequences for the puzzles from the Eterna100 benchmark. In addition, our algorithm solves the most Eterna100 puzzles among all the general optimization based methods in our study. The only baseline solving more puzzles than our work is dependent on handcrafted heuristics designed for a specific folding model. Surprisingly, our approach shows superiority on designing long sequences for structures adapted from the database of 16S Ribosomal RNAs. Availability and implementation Our source code and data used in this article is available at https://github.com/shanry/SAMFEO. National Institutes of Health 10.13039/100000002 R35 GM145283 National Science Foundation 10.13039/100000001 IIS-2009071 ==== Body pmc1 Introduction Ribonucleic acid (RNA) plays essential roles in the core activities within living cells such as transcription and translation, catalyzing reactions, and controlling gene expression. Designing RNA molecules with specific functions or structures is an indispensable part of synthetic biology. One important and growing topic on synthetic RNA is noncoding RNA design (Hofacker et al. 1994; Taneda 2011; Churkin et al. 2018; Portela 2018; Shi et al. 2018), which also has profound applications in RNA-based therapeutics and diagnostics, including siRNA, antisense oligos, PCR primers, and CRISPR guide RNAs. Given a target structure, RNA design aims to find sequences that can fold into that structure, in order to create artificial RNA molecules that have a desired function, such as artificial ribozymes (Bauer and Suess 2006), artificial miRNAs (Schwab et al. 2006), artificial RNA aptamers (Hamada 2018), and artificial riboswitches (Findeiß et al. 2017). This problem, however, has been proved NP-hard (Bonnet et al. 2020). The simplest RNA design method is adaptive walk (Hofacker et al. 1994), which starts from a random sequence, uniformly chooses one or two positions to mutate at each step, and accepts it if and only if the objective becomes better than before. A variety of methods have been proposed to improve this process. To reduce the time cost from many evaluations for the whole sequence, RNAinverse (Hofacker et al. 1994; Lorenz et al. 2011) optimizes small substructures first and then proceeds to larger ones. Similarly, RNA-SSD (Andronescu et al. 2004) and NUPACK (Zadeh et al. 2011) adopt a hierarchical decomposition strategy. Recently, many methods apply genetic or evolutionary algorithm to RNA design, such as MODENA (Taneda 2011), Frnakenstein (Lyngsø et al. 2012), m2dRNAs (Rubio-Largo et al. 2019), and ERD (Esmaili-Taheri and Ganjtabesh 2015). Among them, MODENA and m2dRNAs use multi-objective function while Frnakenstein focuses on the multitarget inverse folding problem. MCTS-RNA (Yang et al. 2017) and NEMO (Portela 2018) use Monte Carlo search to reach a more extensive search space. DSS-Opt (Matthies et al. 2012), RNAiFold (Garcia-Martin et al. 2013), and antaRNA Kleinkauf et al. (2015) use various approaches to allow more constraints. Note that there are also some learning-based methods for RNA design (Eastman et al. 2018; Runge et al. 2018), which, however, are characterized by large amounts of training data and time, but have not shown superior effectiveness compared to optimization-based methods. Despite various techniques that have been developed, there still exist some limitations in the current methods mentioned above. First, mainstream methods focus on the MFE criterion, i.e. finding sequences whose MFE structure is the same as the target structure. However, the sequence found by MFE criterion can often allow alternative structures with only slightly higher energies (Hofacker et al. 1994), causing a very low equilibrium probability for the sequence to fold into the target structure. Another related issue is that all the current methods ignore the case when a designed sequence has multiple MFE structures (Ward et al. 2022). In addition, most methods can only find one sequence or a small population of sequences within one run of design. However, it is more engaging to design as many as possible sequences in one time. Here we state that the benefits of finding a large amount of MFE solutions are 2-fold: (i) It is helpful to solve RNA design problem with more constraints, e.g. sequence compositions and GC content (Garcia-Martin et al. 2013; Esmaili-Taheri and Ganjtabesh 2015; Kleinkauf et al. 2015). (ii) It is crucial for further developing learning-based RNA design methods, for which one bottleneck is the lack of supervised training data especially the scarcity of MFE solutions. To address the above drawbacks, we propose a new design paradigm Structure-Aware Multifrontier Ensemble Optimization (SAMFEO), which optimizes ensemble objectives to perform RNA Design. To handle the incompatibility between objective and MFE criterion, we generate the MFE solutions as byproducts of the iterative optimization process. In addition, we have invented a search method integrated with several components to utilize structure level and ensemble level information at different optimization stages to make the design more effective. Our main contributions are as follows: We formulate RNA design as a general ensemble objective optimization problem, and propose to get MFE solutions from byproducts of optimization. As a result, not only more target structures can be designed successfully, but also for each target structure, a wide variety of MFE solutions can be found. We invent a structure-aware optimization process to make use of structure level and ensemble level information at different stages of optimization: initialization, sampling, mutation, and updating. Instead of performing greedy search to find suitable sequences, we adopt a multifrontier search framework to keep the running best k sequences in optimization process. This lead to even more satisfactory MFE solutions being found. Our work SAMFEO solves the most Eterna100 puzzles compared to other optimization based RNA design methods. The only RNA design method that can solve more puzzles than SAMFEO is dependent on heuristic rules coded by human experts. More importantly, the quality of MFE solutions designed by SAMFEO is higher than other methods. Experiments with 16S RNA structures demonstrate that SAMFEO exhibits an absolute advantage over baselines on long sequence design. 2 The RNA design problem An RNA sequence x of length n is specified as a string of base nucleotides x1x2…xn, where xi∈{A,C,G,U} for i=1,2,…,n. A secondary structure P for x is a set of paired indices where each pair (i,j)∈P indicates two distinct bases xixj∈{CG,GC,AU,UA,GU,UG} and each index from 1 to n can only be paired once. A secondary structure is pseudoknot-free if there don’t exist two pairs (i,j)∈P,(k,l)∈ P such that i