[Paper Review] Flexible RNA design under structure and sequence constraints using formal languages
This paper presents a novel framework for flexible RNA sequence design under complex structural and sequence constraints using formal languages, combining context-free grammars and finite-state automata to enable efficient, linear-time generation of diverse candidate sequences. The method supports global sampling with forced or forbidden motifs, outperforming existing tools in candidate throughput despite lower per-design success rates, and was validated in designing functional RNAs for exon splicing enhancers.
The problem of RNA secondary structure design (also called inverse folding) is the following: given a target secondary structure, one aims to create a sequence that folds into, or is compatible with, a given structure. In several practical applications in biology, additional constraints must be taken into account, such as the presence/absence of regulatory motifs, either at a specific location or anywhere in the sequence. In this study, we investigate the design of RNA sequences from their targeted secondary structure, given these additional sequence constraints. To this purpose, we develop a general framework based on concepts of language theory, namely context-free grammars and finite automata. We efficiently combine a comprehensive set of constraints into a unifying context-free grammar of moderate size. From there, we use generic generic algorithms to perform a (weighted) random generation, or an exhaustive enumeration, of candidate sequences. The resulting method, whose complexity scales linearly with the length of the RNA, was implemented as a standalone program. The resulting software was embedded into a publicly available dedicated web server. The applicability demonstrated of the method on a concrete case study dedicated to Exon Splicing Enhancers, in which our approach was successfully used in the design of \emph{in vitro} experiments.
Motivation & Objective
- To address the limitations of existing RNA design tools that cannot handle complex, non-positional sequence constraints such as mandatory or forbidden motifs.
- To develop a unified, scalable framework for RNA design that integrates diverse constraints into a single formal language model.
- To enable efficient random generation and exhaustive enumeration of RNA sequences compatible with a target secondary structure and user-defined sequence motifs.
- To demonstrate the method's utility in designing biologically relevant RNAs, such as those involved in exon splicing regulation.
- To provide a publicly available web server and software for practical use in synthetic biology and RNA nanotechnology.
Proposed method
- The method models RNA design constraints using context-free grammars (CFGs) and finite-state automata (FSA), unifying diverse constraints into a single, compact formal language.
- It combines structural constraints (secondary structure) with sequence constraints (e.g., presence/absence of motifs) into a hybrid grammar that captures both base-pairing and nucleotide-level rules.
- The framework enables weighted random generation and exhaustive enumeration of sequences via generic algorithms, with time and space complexity linear in RNA length.
- A custom software implementation, CFGRNAD, uses dynamic programming over the combined grammar to sample sequences efficiently.
- The approach supports flexible motif specification—either at fixed positions or anywhere in the sequence—using regular expressions within the FSA component.
- The method is integrated into a web server for public access, supporting practical applications in synthetic biology and in vitro validation.
Experimental results
Research questions
- RQ1Can a formal language-based approach efficiently handle a broad range of biologically relevant sequence constraints, including forced and forbidden motifs, in RNA design?
- RQ2How does the linear-time complexity of the proposed method compare to cubic-time alternatives in terms of candidate throughput and design quality?
- RQ3To what extent do complex constraints, such as forbidden motifs that may appear anywhere in the sequence, affect the probability of successful folding into the target structure?
- RQ4Can the method generate a sufficiently large and diverse set of candidate sequences to compensate for a lower per-design success rate compared to heuristic methods?
- RQ5How does the inclusion of structural motifs (e.g., non-canonical pairs) within the formal grammar affect designability and functional relevance?
Key findings
- The CFGRNAD method achieves linear time and space complexity with respect to RNA length, enabling efficient generation of large candidate sets.
- Despite a lower per-design success rate—30% to 2% for complete success on sequences of 30–100 nt—the method generated 197,000 candidates in the time NUPACK required for just 20, significantly outperforming it in raw candidate throughput.
- For sequences of 100 nt, NUPACK achieved 80% to 40% complete success probability, while CFGRNAD achieved only 30% to 2%, but the larger candidate pool compensated in practice.
- The structural sensitivity (≥90% base-pair similarity) was 50% to 18% for CFGRNAD, compared to 97% for NUPACK, indicating a trade-off between diversity and individual design quality.
- The method successfully designed functional RNAs for exon splicing enhancers (ESEs), with in vitro validation confirming its biological relevance and practical utility.
- The framework is the only available tool supporting both forced and forbidden motifs in RNA design, enabling applications previously unattainable with existing tools.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.