Abstract
RNA structure is a key determinant of RNA function and regulation. The coupling of chemical probing technologies, such as SHAPE, with deep sequencing has enabled large-scale experimental characterization of RNA structures in complex samples and under diverse conditions. Furthermore, probing data are often used to guide thermodynamics-based secondary structure prediction algorithms and have been shown to improve their accuracy. However, current algorithms treat these single-nucleotide measurements as statistically independent signals, inherently overlooking short-range dependencies in the data. Here, we show that discretized SHAPE data display context dependence within loop regions and within stem regions and we use Markov models to formally capture such dependencies. We then leverage Markov modeling in the classification of small structure motifs from their discretized SHAPE data signatures and subsequently integrate the classifying feature into the dynamic programming recursions that underlie computational RNA folding. Compared to state-of-the-art SHAPE-guided structure prediction methods, our Markov-informed framework improves prediction performance. Furthermore, we identify SHAPE signatures characteristic of highly stable hairpins, such as GAAA, GCAA, and UUCG tetraloops, and integrate these insights into the folding recursions to further improve predictions. Overall, the proposed framework provides a foundation for context-aware statistical modeling of SHAPE data, particularly in loop regions, where signal characterization has proven challenging due to high variance. This work further demonstrates that finer modeling of SHAPE data has the potential to push the limits of data-guided secondary structure prediction.
Keywords: RNA secondary structure prediction, Markov models, RNA folding, SHAPE, RNA Tetraloops
INTRODUCTION
Predicting RNA secondary structure is a fundamental problem in RNA biology, as structure plays a critical role in many cellular processes, including gene regulation, catalysis, and translation (Cruz & Westhof, 2009; Ganser et al., 2019; Sharp, 2009). Experimental techniques, such as X-ray crystallography, nuclear magnetic resonance, and cryo-electron microscopy, can determine RNA structures at high-resolution and precision (J. Deng et al., 2023). However, they are costly, labor-intensive, and limited in their applicability, and thus they do not scale well (Ma et al., 2022; Miao & Westhof, 2017). Computational approaches have therefore emerged as essential tools for RNA structure analysis (Clote, 2025; Sacco et al., 2026; Szikszai et al., 2026). Classical algorithms for secondary structure prediction commonly predict a single structure by minimizing free-energy under a thermodynamic nearest-neighbor model, using a dynamic programming framework (Hofacker et al., 1994; Mathews et al., 1999; Tinoco et al., 1973; Zuker & Stiegler, 1981). In a nearest-neighbor model, the free-energy change is decomposed into additive contributions from small local structure motifs, such as stacked base pairs, hairpin loops, internal and bulge loops, and multiloops (Mittal et al., 2024).
However, thermodynamic models alone often show limited accuracy when sequence information is used without additional structural constraints, derived for example from sequence comparison or experimental sources (Doshi et al., 2004; Mathews et al., 2004). In that context, structure probing experiments have proven highly informative to structure analysis by measuring nucleotide flexibility and accessibility, which correlate with RNA structural constraints (Ehresmann et al., 1987; Sloma & Mathews, 2015; Weeks, 2010). Among these, SHAPE (Selective 2’-Hydroxyl Acylation analyzed by Primer Extension) has been widely adopted, in which a reagent acylates the 2’-hydroxyl group of the backbone to form a 2’-O-adduct (Merino et al., 2005). This reaction is highly sensitive to local nucleotide flexibility, meaning that unpaired nucleotides react more readily than those constrained by base pairing or stable tertiary interactions. The extent of modification is quantified through reverse transcription followed by sequencing or electrophoresis, yielding a nucleotide-wise score known as SHAPE reactivity that is informative of base-pairing status. In recent years, these experiments have become a popular strategy for analyzing structures in complex RNA samples and have been pivotal to advancing a plethora of structure-function studies (Kwok et al., 2015).
Base-paired nucleotides collectively exhibit significantly lower SHAPE reactivities than flexible or unpaired ones. This property is key to integrating SHAPE data into computational structure prediction methods to improve their accuracy (Aviran & Incarnato, 2022; Eddy, 2014). A widely used thermodynamics-based strategy for single-structure prediction transforms reactivities into pseudoenergies to favor structures consistent with the data (Cordero et al., 2012; Deigan et al., 2009; F. Deng et al., 2016, 2016; Washietl et al., 2012; Wayment-Steele et al., 2022; Wu et al., 2015; Zarringhalam et al., 2012). It was pioneered by Deigan et al. (Deigan et al., 2009), who linear-log-transformed reactivities into pseudoenergies that were added to the free-energy contributions of base pairs. Subsequent studies demonstrated substantial improvements, and this and similar strategies were implemented in popular software (Hajdin et al., 2013; Lorenz et al., 2016). Despite their success, these methods treat SHAPE reactivities as independent, nucleotide-wise statistical signals (Eddy, 2014), overlooking data dependencies among neighboring nucleotides. This arises not merely from the simplicity of data integration under an independence assumption but also because most efforts to map local structure contexts to SHAPE reactivities have focused on modeling “one reactivity at a time” rather than analyzing motif-resolution patterns or the relationship between nearby nucleotides within a motif (Frezza et al., 2019; Hurst et al., 2018; Hurst & Chen, 2021; McGinnis et al., 2012; Mlýnský & Bussi, 2018; Sükösd et al., 2013; Yamamura et al., 2025).
It is well established that bases in stem regions tend to consistently exhibit low reactivities. In contrast, loop regions display much greater variability, leading to more heterogeneous and less predictable SHAPE patterns (Cao & Xue, 2021; Eddy, 2014; Sükösd et al., 2013; Xiao et al., 2022). This ambiguity suggests that data-guided identification of loop regions within state-of-the-art structure prediction algorithms is particularly prone to errors and that it could benefit from more careful modeling. This motivated two recent analyses of SHAPE data in loop motif libraries, which observed patterns characteristic of select loop motifs (Cao & Xue, 2021; Xiao et al., 2022). Xiao et al. analyzed a library of synthetic constructs containing polyA or poly U loops and studied trends in mean reactivity as a function of loop type, side (i.e., 3’/5’), and size, and the position within the loop. Cao and Xue analyzed loops in non-coding RNA structures, focusing on pairwise patterns, that is, reactivity differences between each two bases in a loop region. They established fifty patterns, mostly involving non-adjacent pairs. They further used this information to refine structure prediction by selecting loops from an ensemble of candidate structures by their agreement with the established patterns. Both analyses highlight a need for and the potential of shifting from per-nucleotide models towards more complex, motif-resolution and motif-dependent models of SHAPE signatures (Ledda & Aviran, 2018; Radecki et al., 2018). Motivated by these findings and by our observation that in loop regions, nucleotides that are highly reactive to SHAPE tend to be adjacent, we sought to formally capture such dependencies through a Markov model (Fig. 1).
Figure 1. Overview of Markov modeling of discretized SHAPE data.

(A) SHAPE reactivities, clipped to [0, 3], are discretized into “Low” and “High” states by a threshold , and the resulting state sequence is modeled as a 1st-order Markov chain for each structure context. State-transition probabilities are estimated separately for nucleotides not paired in the interior of a helix (left; labeled NI-Paired) and for nucleotides paired in the interior of a helix (right; labeled I-Paired), revealing different statistical properties. (B) Illustrative hairpin example: SHAPE reactivities, threshold (dashed line), and corresponding Markov states (L = Low, H = High) are shown on top of the sequence and reference structure in dot-bracket notation. Markov chain trajectories within each superclass and a model of the reference structure are also shown.
In this work, we show that discretized SHAPE data exhibit Markovian properties within loops and within stems and that these context dependencies can be leveraged to improve both motif detection directly from SHAPE data and SHAPE-guided secondary structure prediction. By accounting for correlations, our Markov-informed framework enables the folding algorithm to model SHAPE signals while remaining compatible with the state-of-the-art method for SHAPE-guided thermodynamics-based secondary structure prediction. In addition, we find SHAPE signatures in specific families of tetraloops, which are four-nucleotide hairpin loops that adopt highly conserved and stable conformations largely determined by their sequence (Woese et al., 1990). This prompted us to include an additional, tetraloop-specific modification to our framework to further improve SHAPE-guided structure prediction.
RESULTS
Markov Modeling of Discretized SHAPE Data
To construct a Markov model of SHAPE data, we collected a diverse set of RNA sequences, their in vitro SHAPE data published by the Weeks lab, and their reference structures (Materials and Methods). Next, we considered two alternative binary classification schemes of nucleotides: (1) Paired vs Unpaired or (2) Internally Paired (I-Paired) vs Not Internally Paired (NI-Paired). I-Paired refers to paired nucleotides, which are stacked between adjacent base pairs. NI-Paired refers to nucleotides not in canonical pairs or those in a base pair at the end of a helix. Hereafter, we refer to these binary labels as superclasses. We then parsed the structures into small structure motifs (e.g., stem, hairpin loop, internal loop, see example in Fig. 1B). Note that the choice of superclasses impacts the parsing because scheme (1) assigns nucleotides at helix ends to stems whereas scheme (2) assigns them to loop motifs (hairpin loop, internal loop, bulge, multiloop, and exterior loop, Supplemental Fig. S1). We considered alternative superclass definitions because SHAPE data at helix ends show distinctive statistical properties, characterized by mid-range reactivities that place them in between base-pair segments in stem interiors (generally unreactive) and unpaired regions (generally reactive) (Sükösd et al., 2013). Finally, we discretized the SHAPE reactivities into “Low” and “High” states by setting a threshold parameter .
For a given threshold , we estimated both the state-transition probabilities (i.e., the conditional probability of observing a state given its immediate predecessor state, Fig. 1A) and the single-state probabilities (i.e., the marginal probability of observing a state; Materials and Methods). We then examined how estimates vary as a function of . For example, Fig. 2 compares estimates of observing the “High” state (conditional vs marginal), as derived from regions of I-Paired and regions of NI-Paired nucleotides, i.e., when consolidating all loop types into the NI-Paired superclass (Supplemental Table S1). We found substantial differences between state-transition (orange and blue lines) and single-state (red line) probabilities, demonstrating a clear deviation from a nucleotide-level independence assumption, especially in NI-Paired (Fig. 2B). The probability of transitioning from a High state to a High state on the subsequent nucleotide is higher for any threshold than the probability of being in the High stare; therefore highly reactive nucleotides tend to be adjacent. While state frequencies change with , the substantial differences between state-transition and single-state probabilities prevail over a broad range of thresholds, especially for NI-Paired, suggesting that the observed Markov data structure is robust to threshold choices. The sizes of datasets used to estimate each probability also vary with and are relevant to estimation stability and precision (dashed lines). For most values, these are substantially larger for NI-Paired than for I-Paired nucleotides because the latter are overwhelmingly low reactive. We observed similar results when analyzing each loop type within the NI-Paired superclass and when considering Paired and Unpaired (Supplemental Fig. S2–S3).
Figure 2. Comparison of 1st-order Markov state-transition probabilities and marginal single-state probabilities as a function of the discretization threshold .

Estimated probabilities (solid lines) were obtained by separating structure motifs into those comprising of I-Paired (A) and NI-Paired (B) nucleotides. Dashed lines depict the number of data points used in the estimation. P(High|Low) is the probability that when a nucleotide is at the Low state, the subsequent one is at the High state. P(High|High) is the probability that when a nucleotide is High, the next one is also High. P(High) is the probability of observing a High state.
To assess the statistical significance of the observed Markov dependence, we conducted permutation tests (Materials and Methods). Across all superclasses and structure motifs, the observed test statistics were extremely unlikely under the independent and identically distributed (i.i.d.) null model, providing strong evidence for Markov dependence (Supplemental Fig. S4).
Superclass Detection
To determine whether the observed Markov dependencies provide actionable information, we investigated their utility in distinguishing between superclasses. To classify each of the parsed structure motifs as I-Paired or NI-Paired using SHAPE state sequences, we developed a sliding-window log-likelihood ratio score, inspired by prior work on gene finding (Korf & Rose, 2009). We define a motif score as
| (1) |
where denotes a sliding window of length over SHAPE states within a motif (i.e. a loop or helix), and and are the joint -mer state probabilities for classes 1 and 2 estimated from training data. For multi-arm motifs, such as internal loops, multiloops, and stems, we summed the scores of individual arms. We evaluated four models: i.i.d. baseline and three Markov-based models : 1st-order, Dropend, and Combined. The i.i.d. model assumes independence between adjacent nucleotides, whereas the 1st-order model captures dependencies between two adjacent nucleotides (i.e., ). To mitigate potential noise at motif boundaries, the Dropend model excludes the last 2-mer at the 3’ end of each motif from consideration (see Materials and Methods and Supplemental Methods A.1 for details and rationale). The Combined model applies the 1st-order approach to short motifs (length < 4) and the Dropend strategy to longer ones. Supplemental Fig. S5 shows Receiver Operating Characteristic (ROC) and Precision-Recall (PR) curves for the i.i.d. and Markov models when , evaluated under family-wise 5-fold cross-validation, treating NI-Paired as the positive class (see Supplemental Table S2 and Materials and Methods). In the family-wise cross-validation, sequences from the same Rfam family (i.e. homologs) can only appear in either training or testing, but not in both (Rivas et al., 2012; Szikszai et al., 2022, 2026). Incorporating Markov information consistently yields higher area under the curve (AUC) and Average Precision (AP) than the i.i.d. baseline. Moreover, within the Markov-based models, both the Dropend and Combined models outperform the 1st-order model, indicating that removing potentially noisy terminal transitions is useful. Supplemental Fig. S6 shows a comparison of PR curves for each fold when , demonstrating that all Markov-based models outperform the i.i.d. model, as indicated by higher AP values and a later drop in the PR curves. Among these models, the Combined model slightly outperforms the others.
Fig. 3 summarizes model performance as a function of the SHAPE discretization threshold over the range [0.1,1.0], demonstrating that the Combined model consistently outperforms the others. In contrast, while the 1st-order Markov and Dropend models surpass the i.i.d. baseline in terms of AUC and AP within the lower half of this range, they fail to maintain consistent superiority over the i.i.d. model when evaluated by score and accuracy. For the Combined model, while score and accuracy peak around t∈[0.2,0.3], AUC and AP favor values near t = 0.3 or t = 0.5 although gains over the i.i.d. model are more substantial at t ≈ 0.3. Overall, these trends suggest that provides a robust default choice for classification. Interestingly, it is also consistent with standard practice in the field to call bases with scores below 0.3 as unreactive (Deigan et al., 2009). In addition, we evaluated a 3-mer model that captures 2nd-order Markov dependencies; however, it consistently underperforms the 1st-order models (Supplemental Fig. S7). In a similar benchmark under the traditional Paired/Unpaired classification, emerged as the optimal threshold, at which the Combined model again performed the best (Supplemental Fig. S8–S10). Interestingly, when comparing classification into I-Paired/NI-Paired against the traditional Paired/Unpaired distinction, performance is generally superior under the former (a few percent gain), with the exception of the AUC measure.
Figure 3. Performance evaluation of motif I-Paired/NI-Paired superclass classification models as a function of the SHAPE discretization threshold .

Performance is evaluated by ROC-AUC (A), PR-AP (B), (C), and Accuracy (D), averaged over 5 folds.
To interpret the modest but consistent gains of Markov models over the i.i.d. baseline, we examined the window-level contributions, score(wi) (Eq. (1)). Supplemental Fig. S11A shows that same-state pairs ((High, High) or (Low, Low)) receive greater bonuses or penalties relative to the i.i.d. model. For example, the solid green curve ((High, High)) lies above the dashed green i.i.d. baseline, indicating a significantly greater bonus. In contrast, the solid purple curve ((Low, Low)) lies below the dashed purple baseline, reflecting extra penalty for this state pair. Together, these patterns highlight the information content captured by specific same-state pairs under the Markov model. Notably, the scores assigned to these same-state pairs have larger magnitudes than those of switch-state pairs ((High, Low) and (Low, High)), indicating a stronger discriminative capacity. To further analyze these score patterns, we examined the counts of different state pairs (Supplemental Fig. S11B–C). While switch-state pairs tend to receive positive scores, indicating they are more likely to be observed in NI-Paired contexts, they occur relatively infrequently in both superclasses. In contrast, same-state pairs dominate the observed counts in both superclasses. This imbalance implies that, although switch-state pairs are informative, the overall impact of Markov modeling is largely driven by the predominant same-state pairs, which provide stable and high-confidence contributions to classification.
Incorporating Markov Scores into Secondary Structure Prediction
Deigan et al. introduced a single-nucleotide pseudoenergy term (PET) (Deigan et al., 2009):
| (2) |
whereby upon forming a base-pair stack, each base in the stack is assigned its SHAPE-derived PET, and the four terms are introduced into the dynamic programming recursions as additional “energetic” contributions. The parameters and were learned through a grid search over multiple sequences with SHAPE data and known structures (Hajdin et al., 2013).
To add the Markov dependencies into this framework, we included our motif-level Markov score as an additional PET. Since it aggregates 2-mer likelihood ratios, it is worth mentioning Eddy’s likelihood-based interpretation of Deigan et al.’s PET (Eddy, 2014) and a similar formalism developed by Das and colleagues (Cordero et al., 2012), which link to the likelihood ratio between Paired and Unpaired contexts:
| (3) |
where is nucleotide ’s unknown structure context and and are known constants. Although these insights inspired us to add the Markov score as a PET, we did not directly extend this interpretation. Its extension amounts to replacing with the ratio of Markovian state-sequence likelihoods and will only take effect when closing a base-pair stack. While we found that this approach outperformed Deigan et al.’s method (Supplemental Table S3), in what follows, we add the Markov score (i.e., 2-mer likelihoods) to both stacking interactions and loop motifs. In our tests, this approach to performed better.
Let denote a -mer sliding window over a SHAPE state sequence. For a motif , spanning positions through , we defined a Markov score as
| (4) |
and converted it into a PET by
| (5) |
where is a new scaling parameter. We added it in all situations where structure motifs are considered in RNAstructure, which implements Deigan et al.’s method (Reuter & Mathews, 2010) (Materials and Methods).
To assess our method’s generalizability, we grouped sequences by RNA families. Additionally, to increase dataset size, we treated independently folding domains of 16S and 23S rRNA as distinct “families” (Jaeger et al., 1989). We then implemented a leave-one-family-out cross-validation strategy, resulting in 23 folds (Krueger et al., 2025; Szikszai et al., 2022) (Supplemental Table S4 and Materials and Methods). We considered both flexible and exact scoring strategies, the former treating a known base pair as correctly predicted if one index deviates by at most one nucleotide and the latter requiring an exact match (Mathews, 2019). Table 1 summarizes the results, averaged over all held-out test families and obtained under four combinations of a scoring strategy (flexible/exact) and reference structures (with/without pseudoknots), demonstrating that Markov-based models outperform Deigan et al.’s baseline in predicting unseen RNA families, with the 1st-order model consistently achieving best performance. One-sided Wilcoxon signed-rank tests confirmed it achieves a statistically significant improvement over the baseline (Supplemental Table S5). Specifically, when evaluated against pseudoknot-free structures using exact scoring, it gains nearly 2.2% (84.53% vs 86.71%). When breaking down the results into families (Supplemental Table S6), one can see that it outperforms the baseline in 13 cases and performs the same in 8 cases, although two of these 8 are already perfectly predicted by the baseline. In the two remaining cases (Domain 1 of 16S rRNA and 5S rRNA), the loss is less than 2%. For all models, we also found that the optimal and are highly consistent across folds.
Table 1. SHAPE-directed structure prediction performances under four evaluation settings.
Average test scores obtained through a leave-one-family-out cross-validation strategy are reported for Deigan et al.’s method and Markov-based models. Second and third columns list results obtained using flexible or exact scoring against known reference structures, respectively. Fourth and fifth columns pertain to flexible or exact scoring applied to pseudoknot-free reference structures, respectively. Best performance is highlighted in bold. Pseudoknots were removed using RemovePseudoknots in RNAstructure. PK stands for pseudoknot.
| Models | Flexible, with PK | Exact, with PK | Flexible, PK-free | Exact, PK-free |
|---|---|---|---|---|
| Deigan et al. | 83.28% | 81.02% | 86.41% | 84.53 % |
| 1st-order | 84.72% | 82.89% | 88.17% | 86.71% |
| Dropend | 83.54% | 81.58% | 87.24% | 85.34% |
| Combined | 84.61% | 82.51% | 88.12% | 86.33% |
Position-Aware Refinements for Select Hairpin Loops
A recent study found statistically significant differences in SHAPE reactivity between select nucleotide pairs residing in select hairpin, internal, and bulge loops, highlighting the position-dependence of structural signals in loops (Cao & Xue, 2021). The study first separated loops by type (e.g., hairpin, internal), and then, within each type, by length. The mined position-aware patterns are thus specific to select combinations of loop type and loop length.
Cao and Xue identified a pattern in tetraloops—short, yet highly stable four-base hairpin loops that play important roles in folding and function (Antao et al., 1991; Sheehy et al., 2010). This motivated us to further examine the most prevalent and well-studied families: GNRA and UNCG. Beyond the generic Markov property, we observed distinctive position-aware patterns that may further improve structure modeling. For the GNRA family, a clear pattern emerged in the Weeks data, where the first position is significantly less reactive than each of the other three positions (Supplemental Fig. S12). Two-sided paired Wilcoxon signed-rank tests confirmed statistical significance of these differences (p-value<0.001, Supplemental Table S7). Additionally, we observed a smaller but significant difference between the second and third positions (p-value<0.05). The GNRA pattern expands on the tetraloop pattern established by Cao and Xue, whereby the first position is less reactive than the second and third. Furthermore, the relationship between mean reactivities in the third and fourth positions appears opposite to that in (Cao & Xue, 2021). Next, we stratified GNRA into specific 4-mers and found that for some, the pattern was either not preserved, or the available data were limited (Supplemental Fig. S13). However, GAAA and GCAA exhibited similar, statistically significant patterns (Fig. 4 and Table 2). In GAAA, there are differences between the first and second, first and fourth, and second and third bases. In GCAA, the first base is less reactive than each of the other bases. We also identified a similar pattern in UUCG tetraloops, with differences between the first and third, first and fourth, and second and third bases. (Fig. 4C, Table 2).
Figure 4. Mean position-specific SHAPE patterns for GAAA (A), GCAA (B), and UUCG (C) tetraloops.

Means were computed from 19 (A), 9 (B), and 10 (C) instances. The red dashed line indicates the optimal threshold, , for SHAPE discretization found in our motif classification analysis. Error bars represent one standard deviation. Significance levels are indicated as follows: **p ≤ 0.01, *p ≤ 0.05.
Table 2.
Pairwise p-values from paired Wilcoxon signed-rank tests for GAAA, GCAA, and UUCG tetraloops.
| GAAA | |||
|---|---|---|---|
| Position | 2 | 3 | 4 |
| 1 | 5.39 × 10−3** | 6.27 × 10−2 | 1.31 × 10−2* |
| 2 | - | 4.37 × 10−2* | 3.01 × 10−1 |
| 3 | - | - | 1.56 × 10−1 |
| GCAA | |||
| Position | 2 | 3 | 4 |
| 1 | 1.56 × 10−2* | 1.56 × 10−2* | 1.56 × 10−2* |
| 2 | - | 2.19 × 10−1 | 9.38 × 10−1 |
| 3 | - | - | 3.75 × 10−1 |
| UUCG | |||
| Position | 2 | 3 | 4 |
| 1 | 5.47 × 10−2 | 7.81 × 10−3** | 7.81 × 10−3** |
| 2 | - | 1.17 × 10−2* | 2.50 × 10−1 |
| 3 | - | - | 2.50 × 10−1 |
Significance levels are indicated as follows:
p ≤ 0.001,
p ≤ 0.01,
p ≤ 0.05.
To integrate these signals into structure prediction, we introduced a sequence-specific term and added it to the Markov-based PET applied to hairpin loops (Materials and Methods). Because in the GNRA family and in UUCG, the strongest effects involve the first position, we focused on these, defining a reactivity difference (diff) as follows:
| (6) |
When scaled by a new parameter , it forms a new tetraloop term (TT):
| (7) |
We tuned and evaluated model performance. Fig. 5 shows the relationship between and the mean measure under the 1st-order model. The best performance is achieved when kcal/mol for all Markov models and scoring options. Supplemental Table S8 summarizes the results, showing small improvement in all settings. We further considered adding an intercept parameter to Eq. 7 but found that most performance variation is driven by changes in (Materials and Methods and Supplemental Fig. S14–S25). For simplicity and interpretability, we only retained .
Figure 5.

Mean measure as a function of the parameter under the 1st-order Markov model, evaluated against pseudoknot-free reference structures.
Although improvement is modest, we note that the targeted loops populate about 16% (34/218) of all hairpin loops in our dataset, with the vast majority residing in rRNA (24/34). For this reason, we avoided family-fold validation or traditional train-test splits and optimized over all data. Crucially, 91% (31/34) of the targeted loops are already correctly predicted by Deigan et al.’s method, and our approach recovered one of three mispredicted ones. Fig. 6 shows predictions without and with the TT alongside the known structure for E. coli 23S rRNA domain 4 (results shown for a 1st-order model but apply to all models). Without TT, GCAA resides in a 9 nt hairpin loop, and with TT, the tetraloop is correctly recovered. Introducing an additional term for select hairpins therefore yields meaningful local corrections, even though the overall gain is limited by their low prevalence in the dataset. Nevertheless, these results demonstrate that SHAPE signatures associated with specific motifs can potentially inform SHAPE-guided predictions.
Figure 6. Secondary structure of a tetraloop-containing region in E. coli 23S rRNA domain 4.

(A) Prediction without Tetraloop Term, (B) Prediction with Tetraloop Term, (C) Reference structure. Structures were drawn with RNAcanvas (Johnson & Simon, 2023).
DISCUSSION
Accurate prediction of RNA structure is essential for understanding RNA function, guiding motif discovery, and advancing RNA therapeutics. Although integration of chemical probing data, such as SHAPE, has improved secondary structure prediction, most existing approaches treat these data as independent, nucleotide-wise signals. Furthermore, most SHAPE modeling studies to date have characterized the signal at a single-nucleotide level, overlooking dependencies between nearby nucleotides, particularly in loops, where probing signals are highly variable and especially challenging to resolve.
Inspired by recent progress in identifying SHAPE data patterns in select loop motifs and by independently observing that high/low reactivities in loops tend to cluster, we addressed the gap in SHAPE data modeling by showing that when discretized, they exhibit a Markovian property. To gauge the potential of Markov modeling in improving structure inference, we first tackled the problem of motif detection directly from SHAPE data. We developed a motif-level score to distinguish between regions comprising entirely of I-Paired or NI-Paired, or alternatively, Paired or Unpaired nucleotides. We then integrated this score into a folding algorithm as a PET within the dynamic programming recursions. We found that a 1st-order Markov PET improves recovery of ground-truth structures compared to the state-of-the-art method that treats SHAPE scores as statistically independent. In addition, we identified position-specific SHAPE patterns for select tetraloops and showed that adding a corresponding PET helps resolve local misfolding. We evaluated several alternative PET formulations and found that the one combining a 1st-order model in tandem with a tetraloop term performs best across multiple benchmarks (Supplemental Table S8). However, the uneven distribution of tetraloops across RNAs in our dataset precluded a family-fold validation, hence support for this PET’s utility is currently limited. We therefore set the default PET to derive from a 1st-order model only. Overall, this Markov-informed framework provides a statistical foundation for modeling correlated SHAPE signals across diverse loop motifs. However, it is less applicable to base-selective probes, such as DMS (Peattie & Gilbert, 1980). Since DMS data are plagued by gaps (i.e., missing values), a 1st-order Markov model has limited utility, and unfortunately, we found that 2nd-order models of SHAPE data fall short.
Our modeling strategy is inherently different than Cao and Xue’s in that a Markov model learns general statistical associations between nearby signals, which we found in all loops, much like modern deep learning models, but considering a very limited, pre-defined context (Korf & Rose, 2009). Cao and Xue, on the other hand, pinpointed 50 pairwise differences, mostly between distal bases, in 14 specific motif groupings (e.g., 5-nt bulges), where some of these patterns were also later observed in designed loop motifs (Xiao et al., 2022). That said, these findings are complementary to and in agreement with ours since when adjacent signals tend to be “similar”, significant differences are more likely to arise between non-adjacent positions. In fact, one could jointly leverage both signature types to inform structure prediction, as our tetraloop term demonstrated. However, integration of detailed patterns into the folding recursions must carefully avoid overparameterization and overfitting. Another difference lies in how motif-level scores are used to inform structure prediction. Cao and Xue took a “sample and select” approach (reviewed in (Aviran & Incarnato, 2022)), where statistically sampled candidate motifs are scored for concordance with the identified SHAPE patterns to select the most consistent one. Since sample and select approaches generally fall short when RNAs get longer due to limited sampling depth, we opted to integrate SHAPE signatures directly into the folding recursions in a manner consistent with Deigan et al.’s approach. Finally, the GNRA pattern we detected is stronger than Cao and Xue’s tetraloop pattern by way of including differences between the first and fourth and the second and third bases. Interestingly, we observed similar, yet weaker differences between the first and fourth bases when analyzing all tetraloops (Supplemental Fig. S26). This discrepancy could be due to differences between the datasets. First, our dataset is larger (22 vs 11 RNAs) and comprises more RNA families. Second, the data in (Cao & Xue, 2021) were generated by two labs, with only 5 RNAs probed by the Weeks lab and their data included in our analysis. Since inter-lab variability is common (Choudhary et al., 2017; Kutchko & Laederach, 2017) and since data were not re-normalized to mitigate it, it is possible that the tetraloop signal was partially masked by artifacts.
Another future direction entails refining Markov-based scores to capture motif-specific and/or position-specific statistics. Differences in transition probabilities among motifs, e.g., higher P(High|High) in hairpin loops and multiloops (Supplemental Fig. S2), underscore the potential of finer modeling. Additionally, our observation that transition probabilities are position-dependent (Supplemental Fig. S27–S31) already prompted us to exclude the last transition (Dropend and Combined models). For the other positions, transitions may be directly modeled, as P(High|High) tends to decrease when approaching a motif’s 3’ end. However, modeling at such resolutions would greatly benefit from larger and more diverse datasets, which are currently lacking.
As noted earlier, our approach to guiding structure prediction by SHAPE was inspired by Deigan et al.’s work and by formulating a PET as a likelihood ratio. Yet, our benchmarks indicated that performance is maximized by adding 2-mer-based likelihood ratios to both stems and loops, thereby deviating from a Markovian extension of such interpretation (Supplemental Table S3). An alternative way to capture Markovian dependencies is by extending the probabilistic approach outlined by Eddy (Eddy, 2014) and implemented in RNAprob (F. Deng et al., 2016), where data likelihoods, as opposed to likelihood ratios, form nucleotide-wise PETs and are applied in all recursions (i.e., in both loop and stem contexts). These PETs can be replaced by motif-level, Markov-based likelihoods of discretized SHAPE state sequences. However, this approach performs comparably to Deigan et al.’s method (F. Deng et al., 2016), hence we opted to extend the latter.
Despite the improvements we achieved, our approach encounters specific algorithmic limitations. In our motif classification analysis, the Combined model, which disregards potentially noisy terminal transitions in longer motifs, demonstrated the highest discriminative power. However, integrating this idea, employed by both the Dropend and Combined models, into the dynamic programming framework presents challenges when considering multiloops. Unlike hairpin and internal loops, in the conventional dynamic programming recursions, multiloop closure energies are scored recursively through a base-by-base extension rather than as a single, fully delineated configuration of helix and loop regions. Because RNAstructure relies on these stepwise extensions to compute their free energy, it is impossible to prospectively determine the exact start and end of the constituent loop regions during intermediate recursion steps. Consequently, applying the length-dependent logic of the Combined model becomes intractable. Furthermore, attempting to pre-define the multiloop region beforehand could lead to double counting or incomplete coverage of the multiloop interactions. Therefore, for multiloops, we applied the standard 1st-order Markov-based score to ensure consistent pseudoenergy propagation. Future work could apply the Combined model using revised multiloop recursions that explicitly track the number of unpaired nucleotides in each segment between helices (Ward et al., 2017).
MATERIALS AND METHODS
Data Preparation
We previously compiled a set of reference structures and in vitro SHAPE data from the Weeks lab for 22 RNA sequences (Supplemental Table S9) (F. Deng et al., 2016). To increase dataset size, we split the structures of 16S and 23S rRNAs into independent folding domains based on Archive II (Sloma & Mathews, 2016), resulting in 34 sequences (Supplemental Table S10).
We partitioned the structures into six motif types, grouped into two superclasses: I-Paired, corresponding to stacked base-pair segments in stem interiors, and NI-Paired, which includes hairpin loops, internal loops, bulges, multiloops, and exterior loops (Supplemental Table S1 and Supplemental Fig. S1–S2). This binary grouping is used throughout the study. However, we also considered and benchmarked the traditional Paired/Unpaired classification. Because some ground-truth structures contain pseudoknots, we evaluated predictions against the ground truth and against pseudoknot-free structures. Pseudoknots were removed using RemovePseudoknots in RNAstructure (Reuter & Mathews, 2010). We analyzed only motifs of length 3 or more.
Analysis of SHAPE distributions in different structure contexts confirmed a prior model, where data in paired or internally paired regions center tightly near zero, but in unpaired regions, they are more dispersed and populate higher values (Sükösd et al., 2013) (Supplemental Fig. S32–S33).
Markov Model Construction
To construct a Markov model, we clipped reactivities to [0, 3] and discretized into “High” and “Low” states by a threshold :
| (8) |
To estimate a 1st-order model, let denote a transition count matrix, where records the number of transitions from states to . Transition probabilities were estimated from , e.g.,
| (9) |
Marginal state probabilities were estimated as the fraction of data in each state. When estimating transition probabilities, we counted transitions exclusively between contiguous bases within each motif, excluding transitions across motif boundaries or between different arms of internal loops and multiloops. We estimated transitions for each superclass and for each motif type.
Permutation Tests
To assess the statistical significance of Markov dependence within motifs, we randomly permuted the SHAPE states within each motif, thereby preserving motif boundaries and marginal state frequencies while disrupting sequential dependence. We recomputed the transition probabilities when , chosen to maintain sufficient counts for stable estimation and to follow accepted practices in determining “High”/”Low” SHAPE states. See Supplemental Methods for details. Across all structure contexts, the observed test statistics were highly unlikely under the i.i.d. null model, strongly supporting a Markovian data structure (Supplemental Fig. S4).
Motif Classification
We defined a likelihood-based motif score (Eq. (1) and Supplemental Fig. S34), where for internal loops, multiloops, and stems, scores of individual arms were summed. Since homologous RNA structure motifs can display similar SHAPE signatures (Lavender et al., 2015), we constructed train-test splits, such that all motifs originating from an RNA family are assigned to either the training or testing data. This ensures we assess true generalization to unseen data. In practice, we partitioned the motif collection into 5 folds, constructed to ensure that each held-out testing set contained approximately 20% of the motifs. We treated independently folding domains of 16S and 23S rRNAs as distinct families, as they feature structurally distinct architectures. We retained all riboswitch and tRNA sequences in the training set due to their short length, while the remaining sequences were divided by family (Krueger et al., 2025). See Supplemental Table S2 for fold compositions. Performance was evaluated via ROC curves (AUC), Precision-Recall curves (Average Precision), score, and accuracy, with NI-Paired (Unpaired) and I-Paired (Paired) labeled as classes 1 and 2, respectively.
For each class, , we estimated -mer probabilities, , from training data as
| (10) |
We considered four models that differ in how was estimated. The i.i.d. and 1st-order Markov models consider 1-mers and 2-mers, respectively. Motivated by prior observations that terminal positions might have reduced discriminative power (Cao & Xue, 2021), which we also found in our data, we developed a Dropend model, where we excluded the last 2-mer at the 3’ end of each motif (or each motif arm) when estimating -mer probabilities and when scoring (Supplemental Methods A.1, A.3). We also introduced a Combined model, which applies a 1st-order Markov model to short motifs (length ≤ 4) to prevent a substantial loss of Markov information and the Dropend model to longer motifs. We chose a length threshold 4 since it performed best among a range of lengths we evaluated. For each model, scores were then computed for held-out motifs.
Dynamic Programming Recursions
To briefly review the dynamic programming formulation in RNAstructure (Mathews et al., 2004) derived from (Zuker & Stiegler, 1981), let denote the minimum free energy (MFE) of any substructure spanning bases through under the constraint that and form a base pair. In the standard framework, it is obtained by
| (11) |
where , and denote the MFE on the same subsequence under the constraint that closes a stacked pair, internal loop/bulge, multiloop, or hairpin loop, respectively. Under Deigan et al.’s framework, comprises a stacking interaction energy term, , and the MFE of the enclosed substructure, :
| (12) |
Within , a standard free energy and a SHAPE PET are summed:
| (13) |
where is applied independently to each of the four bases in the stack. For the remaining three structural contexts, the SHAPE pseudoenergies are set to zero. As a result, SHAPE information influences folding directly through stacked regions only.
We introduced an additional Markov-based, motif-level PET, derived below for the I-Paired/NI-Paired classification scheme. The Markov score of a motif aggregates log-likelihood ratios over a sliding window within the motif. Following the likelihood-based interpretation of PET, we converted it to a PET and added to the recursions for each structural context, with a new scaling parameter , as follows:
| (14) |
| (15) |
| (16) |
| (17) |
where and are the energy terms for internal loops/bulges and hairpin loops, respectively, represents the Markov-modified version of the multiloop energy (described in detail below), and denotes the Markov score over the subsequence spanning positions to . We only scored internal loops/bulges of length 3 or more consecutive unpaired nucleotides. Supplemental Fig. S35 illustrates how is applied to stacked pairs, internal loops/bulges, and hairpin loops.
Incorporating directly into multiloop energies is nontrivial. The multiloop energy is computed through a dynamic programming table , which aggregates contributions from multiple configurations and depends on auxiliary tables, and . Unlike hairpin and internal loops, where the start and end of the loop region is known when computing the energetic contribution, multiloops involve combinations of branches, unpaired segments, and coaxial stacking configurations. Consequently, decomposing a multiloop into well-defined loop and helix segments suitable for assigning Markov-based PETs is ambiguous. To address this, we instead adopt an indirect strategy that successively incorporates Markov-based pseudoenergies through single-nucleotide extensions, including dangling ends and unpaired nucleotide extensions. Because such extensions already appear in the recursions for multiloop energies, this allows Markov information to propagate naturally into multiloop evaluations without delineating the multiloop components.
We augment three recursions that involve extensions by one or two unpaired nucleotides, considering configurations that are plausible within multiloops. These energies contribute (directly or indirectly) to . Let denote the MFE for the segment from base through base . It can be modified as follows:
| (18) |
where , wmb_branch is the penalty per helix branch, penalty(i,j) is a helix-end penalty, is the free energy change of a dangling end stacking onto the closing base pair, is the free energy penalty for incorporating an unpaired nucleotide into the loop, and term_mismatch is a terminal mismatch free energy change.
Markov contributions should also propagate through the multi-branch table, , which considers bifurcation into at least two branches:
| (19) |
| (20) |
Because the multiloop closure energy, , depends on , Markov scores integrated into and are inherited by . In addition, dangling-end cases contributing directly to may be treated similarly (Supplemental Fig. S36):
| (21) |
where wmb_closure is the free-energy penalty for forming a multiloop and multi_tstkm(·,·,·,·) is the free-energy change when a terminal mismatch stacks onto the closing base pair.
Additionally, we integrated the Markov scores into the Dropend and Combined models, where we modified the PET in internal/bulge and hairpin loops but kept the terms for multiloops and stacked pairs the same as in the 1st-order Markov model (Supplemental Methods A.4). We applied the Paired/Unpaired scheme to score stacking interactions because it is non-trivial to detect helix ends. For internal loops/bulges and hairpin loops, we implemented scoring by the Paired/Unpaired or the I-Paired/NI-Paired schemes. Implementation options are summarized in Supplemental Table S11.
We then performed a grid search to optimize and for different models, holding out one RNA family for testing and optimizing on the remaining families. Optimal parameters derived from each fold were then applied to predict the held-out family. Specifically, given a threshold , we first estimated the standard and Dropend 2-mer probabilities from the train data. We then discretized the SHAPE data in the test set by , computed Markov scores, and incorporated them into the folding algorithm. Finally, performance was evaluated using F1 score. Furthermore, we extended this modeling framework to the traditional Paired/Unpaired classification (see Supplemental Methods A.5). Note, however, that for simplicity and for consistency with Deigan et al.’s method, we only follow the Paired/Unpaired scheme when augmenting stacking interactions. Augmenting these by the I-Paired/NI-Paired scheme is non-trivial as it requires tracking the state of the inner base pair in a stack (i.e., to distinguish between a helix end and a stacked pair, and in some cases, retroactively adjusting the PET (F. Deng et al., 2016; Mathews et al., 2004).
Tetraloop Term
Based on the pairwise reactivity differences observed in GAAA, GCAA, and UUCG tetraloops, we defined a type-specific difference (Eq. 6) and converted it into a PET dubbed the Tetraloop Term (TT). We initially formulated TT as a linear function of the difference:
| (20) |
We added it to the hairpin loop energy function, as follows:
| (21) |
where is the free energy for the hairpin loop and is the hairpin Markov score.
We performed a grid search to optimize and . By fixing the Markov scaling parameter and threshold to their previously determined optimal values, we found that the model achieved best performance when and .
Software
The Fold program within the RNAstructure software package was updated to incorporate the Markov-based, SHAPE-derived score. The code is currently in pre-release testing and will be made publicly available as part of an upcoming RNAstructure release. Requests for the development version of the code can be directed to the corresponding authors.
Supplementary Material
ACKNOWLEDGEMENTS
This work was partially supported by National Institutes of Health grants R21GM148835 to S.A. and R35GM145283 to D.H.M.
Footnotes
Declaration of interests
None.
REFERENCES
- Antao V. P., Lai S. Y., & Tinoco I. Jr. (1991). A thermodynamic study of unusually stable RNA and DNA hairpins. Nucleic Acids Research, 19(21), 5901–5905. 10.1093/nar/19.21.5901 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Aviran S., & Incarnato D. (2022). Computational approaches for RNA structure ensemble deconvolution from structure probing Data. Journal of Molecular Biology, 167635. 10.1016/j.jmb.2022.167635 [DOI] [PubMed] [Google Scholar]
- Cao J., & Xue Y. (2021). Characteristic chemical probing patterns of loop motifs improve prediction accuracy of RNA secondary structures. Nucleic Acids Research, 49(8), 4294–4307. 10.1093/nar/gkab250 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Choudhary K., Deng F., & Aviran S. (2017). Comparative and integrative analysis of RNA structural profiling data: Current practices and emerging questions. Quantitative Biology (Beijing, China), 5(1), 3–24. 10.1007/s40484-017-0093-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Clote P. G. (2025). RNA: Computational Methods for Structure, Kinetics, and Rational Design, Volume One. Chapman and Hall/CRC. [Google Scholar]
- Cordero P., Kladwang W., VanLang C. C., & Das R. (2012). Quantitative dimethyl sulfate mapping for automated RNA secondary structure inference. Biochemistry, 51(36), 7037–7039. 10.1021/bi3008802 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Cruz J. A., & Westhof E. (2009). The dynamic landscapes of RNA architecture. Cell, 136(4), 604–609. 10.1016/j.cell.2009.02.003 [DOI] [PubMed] [Google Scholar]
- Deigan K. E., Li T. W., Mathews D. H., & Weeks K. M. (2009). Accurate SHAPE-directed RNA structure determination. Proceedings of the National Academy of Sciences, 106(1), 97–102. 10.1073/pnas.0806929106 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Deng F., Ledda M., Vaziri S., & Aviran S. (2016). Data-directed RNA secondary structure prediction using probabilistic modeling. RNA, 22(8), 1109–1119. 10.1261/rna.055756.115 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Deng J., Fang X., Huang L., Li S., Xu L., Ye K., Zhang J., Zhang K., & Zhang Q. C. (2023). RNA structure determination: From 2D to 3D. Fundamental Research, 3(5), 727–737. 10.1016/j.fmre.2023.06.001 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Doshi K. J., Cannone J. J., Cobaugh C. W., & Gutell R. R. (2004). Evaluation of the Suitability of Free-Energy Minimization Using Nearest-Neighbor Energy Parameters for RNA Secondary Structure Prediction. BMC Bioinformatics, 5, 105. 10.1186/1471-2105-5-105 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Eddy S. R. (2014). Computational Analysis of Conserved RNA Secondary Structure in Transcriptomes and Genomes. Annual Review of Biophysics, 43, 433–456. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ehresmann C., Baudin F., Mougel M., Romby P., Ebel J.-P., & Ehresmann B. (1987). Probing the Structure of RNAs in Solution. Nucleic Acids Research, 15(22), 9109–9128. 10.1093/nar/15.22.9109 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Frezza E., Courban A., Allouche D., Sargueil B., & Pasquali S. (2019). The interplay between molecular flexibility and RNA chemical probing reactivities analyzed at the nucleotide level via an extensive molecular dynamics study. Methods, Experimental and Computational Techniques for Studying Structural Dynamics and Function of RNA, 162–163, 108–127. 10.1016/j.ymeth.2019.05.021 [DOI] [PubMed] [Google Scholar]
- Ganser L. R., Kelly M. L., Herschlag D., & Al-Hashimi H. M. (2019). The roles of structural dynamics in the cellular functions of RNAs. Nature Reviews Molecular Cell Biology, 20(8), 474–489. 10.1038/s41580-019-0136-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hajdin C. E., Bellaousov S., Huggins W., Leonard C. W., Mathews D. H., & Weeks K. M. (2013). Accurate SHAPE-directed RNA secondary structure modeling, including pseudoknots. Proceedings of the National Academy of Sciences of the United States of America, 110(14), 5498–5503. 10.1073/pnas.1219988110 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hofacker I. L., Fontana W., Stadler P. F., Bonhoeffer L. S., Tacker M., & Schuster P. (1994). Fast folding and comparison of RNA secondary structures. Monatshefte Für Chemie / Chemical Monthly, 125(2), 167–188. 10.1007/BF00818163 [DOI] [Google Scholar]
- Hurst T., & Chen S.-J. (2021). Sieving RNA 3D structures with SHAPE and evaluating mechanisms driving sequence-dependent reactivity bias. The Journal of Physical Chemistry B, 125(4), 1156–1166. 10.1021/acs.jpcb.0c11365 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hurst T., Xu X., Zhao P., & Chen S.-J. (2018). Quantitative understanding of SHAPE mechanism from RNA structure and dynamics analysis. The Journal of Physical Chemistry B, 122(18), 4771–4783. 10.1021/acs.jpcb.8b00575 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Jaeger J. A., Turner D. H., & Zuker M. (1989). Improved predictions of secondary structures for RNA. Proceedings of the National Academy of Sciences, 86(20), 7706–7710. 10.1073/pnas.86.20.7706 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Johnson P. Z., & Simon A. E. (2023). RNAcanvas: Interactive drawing and exploration of nucleic acid structures. Nucleic Acids Research, 51(W1), W501–W508. 10.1093/nar/gkad302 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Korf I. F., & Rose A. B. (2009). Applying Word-Based Algorithms: The IMEter. In Belostotsky D. A. (Ed.), Plant Systems Biology (Vol. 553, pp. 287–302). Humana Press. [DOI] [PubMed] [Google Scholar]
- Krueger R. K., Aviran S., Mathews D. H., Zuber J., & Ward M. (2025). Differentiable Folding for Nearest Neighbor Model Optimization (Version 2). arXiv. 10.48550/ARXIV.2503.09085 [DOI] [Google Scholar]
- Kutchko K. M., & Laederach A. (2017). Transcending the prediction paradigm: Novel applications of SHAPE to RNA function and evolution. WIREs RNA, 8(1), e1374. 10.1002/wrna.1374 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kwok C. K., Tang Y., Assmann S. M., & Bevilacqua P. C. (2015). The RNA structurome: Transcriptome-wide structure probing with next-generation sequencing. Trends in Biochemical Sciences, 40(4), 221–232. 10.1016/j.tibs.2015.02.005 [DOI] [PubMed] [Google Scholar]
- Lavender C. A., Lorenz R., Zhang G., Tamayo R., Hofacker I. L., & Weeks K. M. (2015). Model-free RNA sequence and structure alignment informed by SHAPE probing reveals a conserved alternate secondary structure for 16S rRNA. PLOS Computational Biology, 11(5), e1004126. 10.1371/journal.pcbi.1004126 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ledda M., & Aviran S. (2018). PATTERNA: Transcriptome-wide search for functional RNA elements via structural data signatures. Genome Biology, 19(1), 28. 10.1186/s13059-018-1399-z [DOI] [PMC free article] [PubMed] [Google Scholar]
- Lorenz R., Luntzer D., Hofacker I. L., Stadler P. F., & Wolfinger M. T. (2016). SHAPE directed RNA folding. Bioinformatics, 32(1), 145–147. 10.1093/bioinformatics/btv523 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ma H., Jia X., Zhang K., & Su Z. (2022). Cryo-EM advances in RNA structure determination. Signal Transduction and Targeted Therapy, 7(1), 58. 10.1038/s41392-022-00916-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Mathews D. H. (2019). How to benchmark RNA secondary structure prediction accuracy. Methods, Experimental and Computational Techniques for Studying Structural Dynamics and Function of RNA, 162–163, 60–67. 10.1016/j.ymeth.2019.04.003 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Mathews D. H., Disney M. D., Childs J. L., Schroeder S. J., Zuker M., & Turner D. H. (2004). Incorporating chemical modification constraints into a dynamic programming algorithm for prediction of RNA secondary structure. Proceedings of the National Academy of Sciences of the United States of America, 101(19), 7287–7292. 10.1073/pnas.0401799101 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Mathews D. H., Sabina J., Zuker M., & Turner D. H. (1999). Expanded sequence dependence of thermodynamic parameters improves prediction of RNA secondary structure11Edited by I. Tinoco. Journal of Molecular Biology, 288(5), 911–940. 10.1006/jmbi.1999.2700 [DOI] [PubMed] [Google Scholar]
- McGinnis J. L., Dunkle J. A., Cate J. H. D., & Weeks K. M. (2012). The mechanisms of RNA SHAPE chemistry. Journal of the American Chemical Society, 134(15), 6617–6624. 10.1021/ja2104075 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Merino E. J., Wilkinson K. A., Coughlan J. L., & Weeks K. M. (2005). RNA Structure Analysis at Single-Nucleotide Resolution by Selective 2’-Hydroxyl Acylation and Primer Extension (SHAPE). Journal of the American Chemical Society, 127(12), 4223–4231. 10.1021/ja043822v [DOI] [PubMed] [Google Scholar]
- Miao Z., & Westhof E. (2017). RNA structure: Advances and assessment of 3D structure prediction. Annual Review of Biophysics, 46(Volume 46, 2017), 483–503. 10.1146/annurev-biophys-070816-034125 [DOI] [PubMed] [Google Scholar]
- Mittal A., Turner D. H., & Mathews D. H. (2024). NNDB: An expanded database of nearest neighbor parameters for predicting stability of nucleic acid secondary structures. Journal of Molecular Biology, Computation Resources for Molecular Biology, 436(17), 168549. 10.1016/j.jmb.2024.168549 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Mlýnský V., & Bussi G. (2018). Molecular dynamics simulations reveal an interplay between SHAPE reagent binding and RNA flexibility. The Journal of Physical Chemistry Letters, 9(2), 313–318. 10.1021/acs.jpclett.7b02921 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Peattie D. A., & Gilbert W. (1980). Chemical probes for higher-order structure in RNA. Proceedings of the National Academy of Sciences, 77(8), 4679–4682. 10.1073/pnas.77.8.4679 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Radecki P., Ledda M., & Aviran S. (2018). Automated recognition of RNA structure motifs by their SHAPE data signatures. Genes, 9(6), 300. 10.3390/genes9060300 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Reuter J. S., & Mathews D. H. (2010). RNAstructure: Software for RNA secondary structure prediction and analysis. BMC Bioinformatics, 11, 129. 10.1186/1471-2105-11-129 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Rivas E., Lang R., & Eddy S. R. (2012). A range of complex probabilistic models for RNA secondary structure prediction that includes the nearest-neighbor model and more. RNA, 18(2), 193–212. 10.1261/rna.030049.111 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sacco G., Bussi G., & Sanguinetti G. (2026). Machine learning for RNA secondary structure prediction: A review of current methods and challenges. RNA, 32(4), 443–456. 10.1261/rna.080840.125 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sharp P. A. (2009). The Centrality of RNA. Cell, 136(4), 577–580. 10.1016/j.cell.2009.02.007 [DOI] [PubMed] [Google Scholar]
- Sheehy J. P., Davis A. R., & Znosko B. M. (2010). Thermodynamic characterization of naturally occurring RNA tetraloops. RNA, 16(2), 417–429. 10.1261/rna.1773110 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sloma M. F., & Mathews D. H. (2015). Improving RNA secondary structure prediction with structure mapping data. In Chen S.-J. & Burke-Aguero D. H. (Eds.), Computational Methods for Understanding Riboswitches (Vol. 553, pp. 91–114). Academic Press. 10.1016/bs.mie.2014.10.053 [DOI] [PubMed] [Google Scholar]
- Sloma M. F., & Mathews D. H. (2016). Exact calculation of loop formation probability identifies folding motifs in RNA secondary structures. RNA, 22(12), 1808–1818. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sükösd Z., Swenson M. S., Kjems J., & Heitsch C. E. (2013). Evaluating the accuracy of SHAPE-directed RNA secondary structure predictions. Nucleic Acids Research, 41(5), 2807–2816. 10.1093/nar/gks1283 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Szikszai M., Wang T.-Y., Krueger R., Mathews D. H., Ward M., & Aviran S. (2026). Deep learning for RNA secondary structure determination: Gauging generalizability and broadening the scope of traditional methods. RNA, rna.080846.125. 10.1261/rna.080846.125 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Szikszai M., Wise M., Datta A., Ward M., & Mathews D. H. (2022). Deep learning models for RNA secondary structure prediction (probably) do not generalize across families. Bioinformatics, 38(16), 3892–3899. 10.1093/bioinformatics/btac415 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Tinoco I., Borer P. N., Dengler B., Levine M. D., Uhlenbeck O. C., Crothers D. M., & Gralla J. (1973). Improved estimation of secondary structure in ribonucleic acids. Nature New Biology, 246(150), 40–41. 10.1038/newbio246040a0 [DOI] [PubMed] [Google Scholar]
- Ward M., Datta A., Wise M., & Mathews D. H. (2017). Advanced multi-loop algorithms for RNA secondary structure prediction reveal that the simplest model is best. Nucleic Acids Research, 45(14), 8541–8550. 10.1093/nar/gkx512 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Washietl S., Hofacker I. L., Stadler P. F., & Kellis M. (2012). RNA folding with soft constraints: Reconciliation of probing data and thermodynamic secondary structure prediction. Nucleic Acids Research, 40(10), 4261–4272. 10.1093/nar/gks009 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wayment-Steele H. K., Kladwang W., Strom A. I., Lee J., Treuille A., Becka A., & Das R. (2022). RNA secondary structure packages evaluated and improved by high-throughput experiments. Nature Methods, 19(10), 1234–1242. 10.1038/s41592-022-01605-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Weeks K. M. (2010). Advances in RNA Structure Analysis by Chemical Probing. Current Opinion in Structural Biology, 20(3), 295–304. 10.1016/j.sbi.2010.04.001 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Woese C. R., Winker S., & Gutell R. R. (1990). Architecture of ribosomal RNA: constraints on the sequence of “tetra-loops”. Proceedings of the National Academy of Sciences of the United States of America, 87(21), 8467–8471. 10.1073/pnas.87.21.8467 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wu Y., Shi B., Ding X., Liu T., Hu X., Yip K. Y., Yang Z. R., Mathews D. H., & Lu Z. J. (2015). Improved prediction of RNA secondary structure by integrating the free energy model with restraints derived from experimental probing data. Nucleic Acids Research, 43(15), 7247–7259. 10.1093/nar/gkv706 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Xiao L., Fang L., & Kool E. T. (2022). Acylation probing of “generic” RNA libraries reveals critical influence of loop constraints on reactivity. Cell Chemical Biology, 29(8), 1341–1352.e8. 10.1016/j.chembiol.2022.05.005 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Yamamura K., Asai K., & Iwakiri J. (2025). Consistent features observed in structural probing data of eukaryotic RNAs. NAR Genomics and Bioinformatics, 7(1), lqaf001. 10.1093/nargab/lqaf001 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Zarringhalam K., Meyer M. M., Dotu I., Chuang J. H., & Clote P. (2012). Integrating chemical footprinting data into RNA secondary structure prediction. PLOS ONE, 7(10), e45160. 10.1371/journal.pone.0045160 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Zuker M., & Stiegler P. (1981). Optimal computer folding of large RNA sequences using thermodynamics and auxiliary information. Nucleic Acids Research, 9(1), 133–148. 10.1093/nar/9.1.133 [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
