## Abstract

RNA molecules aggregate under certain conditions. The resulting condensates are implicated in human neurological disorders, and can potentially be designed towards specified bulk properties in vitro. However, the mechanism for aggregation—including how aggregation properties change with sequence and environmental conditions—remains poorly understood. To address this challenge, we introduce an analytical framework based on multimer enumeration. Our approach reveals the driving force for aggregation to be the increased configurational entropy associated with the multiplicity of ways to form bonds in the aggregate. Our model uncovers rich phase behavior, including a sequence-dependent reentrant phase transition, and repeat parity-dependent aggregation. We validate our results by comparison to a complete computational enumeration of the landscape, and to previously published molecular dynamics simulations. Our work unifies and extends published results, both explaining the behavior of CAG-repeat RNA aggregates implicated in Huntington’s disease, and enabling the rational design of programmable RNA condensates.

### Similar content being viewed by others

## Introduction

RNA molecules form structures through base-pairing interactions between complementary regions. Frequently, a given region of an RNA molecule will be complementary both to another region on the same molecule as well as to a different RNA molecule. How is the competition between forming intra- and inter-molecular contacts decided?

Predicting the outcome of this competition is a major open question, affecting a wide swath of both in vivo and in vitro phenomena. The effects of this competition are particularly stark in the context of biological condensates, in which RNA–RNA interactions play a major, largely understudied, role^{1,2,3,4,5,6}. While typical condensates often involve RNA–protein contacts, purely RNA-based aggregation phenomena have been observed both in vitro and in vivo for certain transcripts associated with repeat expansion disorders^{7}.

The expansion of repeats in certain sections of DNA has been implicated in a significant number of (primarily) neurodegenerative disorders including Huntington’s disease, myotonic dystrophy, and Fragile X syndrome^{8,9,10}. While the proximate cause of many of these disorders is the effect of the expansion on the protein sequence, these expansions can lead to effects at the level of the RNA as well^{11,12,13,14,15,16,17}, including an aggregation transition^{7,18}. In particular, RNA containing **CAG** or **CUG** repeats were found by Jain & Vale to phase separate depending on the number of repeats present in each molecule, led by **GC** stickers binding to one another^{7}. Since all **GC** stickers are self-complementary, it is not immediately clear what leads RNA molecules in certain parameter regimes to form inter- vs. intra-molecular contacts at different rates. Aggregation was observed when the number of repeats per strand exceeded ~30, roughly the same number of repeats leading to diseases in humans^{7}. This phenomenon was also observed and further studied in molecular dynamics (MD) simulations of the system by Nguyen et al.^{19}. These simulations were able to explore the molecular details of the aggregation transition, at the cost of each simulation (at a different concentration or number of repeats per strand) requiring ~3 months of supercomputer time.

Current models are insufficient to explore the properties of the aggregation transition demonstrated by these studies. State-of-the-art models of associative polymers either do not include a competition between intra- and inter-molecular binding (as is more natural for rigid proteins and for heterotypic interactions) or (erroneously) assume it has no qualitative effects on the resulting system^{20,21,22}. While intra-chain interactions are typically ignored, exceptions do exist. These include Dobrynin’s 2004 study extending the Flory–Stockmayer approach to include intra-chain associations^{23}, and a recent publication by Weiner et al. which found that self-bonds play a crucial role in determining phase behavior in a lattice system with heterotypic binding motifs of varying lengths^{24}.

Here, we derive an analytical model to describe a system of polymers with self-complementary stickers. Eschewing mean-field-theory approaches that have dominated the field, we employ a multimerization-based framework that predicts the entire multimerization landscape in addition to the phase behavior, and thus naturally and explicitly considers the competition between intra- and inter-molecular contacts^{25}. Quantitative consideration of this competition reveals that configurational entropy, arising from the multiplicity of ways to form bonds, is the driving force for aggregation in this system. Mapping out the complete phase diagram, we find that as a result of the competition between intra- and inter-molecular bonds, the system exhibits a tunable reentrant phase transition as a function of sequence or temperature. With very strong stickers (or low temperatures) the polymers fold into stable monomers and dimers, and are more likely to form aggregates at intermediate sticker strengths. We furthermore find that, for long enough linkers that enable adjacent stickers to bind, the parity of the number of stickers per strand affects not only the dimerization transition but the large-scale aggregation behavior as well. We validate our results by comparing them to a computational model that enumerates the complete landscape of intra- and inter-molecular structures that the RNA can form, and by comparing them to the results of the Jain *&* Vale and Nguyen et al. studies^{7,19}. Our work provides a unified framework to explain both dimerization and aggregation phenomena in **CAG** repeat systems^{17,19} and extends these to arbitrary sequences, temperatures, and concentrations, thus setting the stage for the construction of novel materials and new techniques based on programmable RNA condensates.

## Results

### Equilibrium behavior is predicted by an analytical model

We consider a nucleic acid sequence comprised of *n* identical stickers (Fig. 1a). The stickers are separated by *n*−1 equally spaced linkers that do not interact with the stickers. Each linker consists of *l* nucleotides. Stickers are self-complementary and bind through base pairing interactions, such that each sticker can be bound to at most one other. Each bonded sticker has a free energy contribution of *F*_{b}; however, bonds that create closed loops also have an entropic cost Δ*S*_{loop} that depends on the loop length *l*_{loop}. This is because nucleotides comprising a closed loop (such as a hairpin, internal, or multi-loop) are constrained in the conformations they can adopt. A simple model treating unbound nucleotides as a polymer random walk estimates that the entropic cost of forming loops scales logarithmically with the loop length (see the “Methods” section)^{26,27}. Assuming a characteristic loop length *l*_{eff}, the effective strength of the sticker interactions is *F* ≡ *F*_{b}−*T*Δ*S*_{loop}(*l*_{eff}) (see the “Methods” section).

In this work, we are concerned with the behavior resulting from such sequences interacting with one another. Two stickers that bind to one another may be on the same strand or on two different strands. Moreover, many strands can be connected to one another through a chain of such bonds. We call a group of *m* strands connected through a series of intermolecular bonds a multimer of size *m*, or an *m*-mer. There are many ways a multimer of size *m* can form: any combination of bonds that occur either intra- or inter-molecularly within a group of *m* strands, such that each strand is reachable from every other by following a series of intermolecular bonds, is an *m*-mer.

We consider a system of *M* strands present in a container of volume *V*, such that their concentration is *c*^{tot} = *M*/*V*. We take the thermodynamic limit of *M* and *V* going towards infinity with their ratio staying constant. We seek to predict how frequently multimers comprised of *m* strands form in this system, and how this frequency changes with *m*. We define *c*_{m} as the concentration of multimers of size *m*, such that

There are two possible regimes for the system: For large *m*, *c*_{m} either decreases or increases with *m* (Fig. 1a). In the former case, the system is in the dilute phase, with only small multimers typically forming. In contrast, if *c*_{m} increases with *m*, large aggregates of the order of the system size dominate the landscape. The aggregation transition is defined as the crossover point between the regime in which very large multimers are suppressed, to that in which they are dominant.

In equilibrium, *c*_{m} is proportional to the ratio of the partition function of *m*-mers, *Z*_{m}, to the partition function of *m* monomers, \({({Z}_{1})}^{m}\) (see the “Methods” section). The partition functions are comprised of three terms:

Here, the multiplicity factor *g*(*n*, *m*, *N*_{b}) represents the number of distinct ways to make *N*_{b} bonds connecting *m* identical strands, each with *n* stickers. Δ*F* is the effective free energy cost of multimerization (see below) and *β* = 1/*k*_{B}*T* is the inverse thermal energy, where *T* is temperature. *g* can be calculated exactly (see the “Methods” section and Supplementary Note 1) and is qualitatively different depending on whether the linkers are long enough to allow adjacent stickers to bind to one another or not (Fig. 1b).

In order to fit experimental data on the prevalence of multiple nucleic acid strands binding to one another in vitro, nucleic acid models include a free energy penalty for multimerization. This leads to the term (*m*−1)Δ*F* in Eq. 2. This penalty is motivated by the enthalpic and entropic costs of nucleic acids binding, including ion effects and the translational and orientational entropies lost upon association^{28,29,30}. This penalty scales linearly with the number of strands in a multimer, such that each additional strand added to a multimer carries the same penalty^{31}. See the “Methods” section and Supplementary Note 2 for further discussion.

The sum in Eq. 2 can be approximated by its dominant term (a saddlepoint approximation). There are three regimes to consider, corresponding to strong, intermediate, and weak binding, in which the sum in Eq. 2 is dominated by large, intermediate, and small values of *N*_{b}, respectively (Fig. 1c). The value of \({N}_{{\rm {b}}}={N}_{{\rm {b}}}^{\star }\) that dominates the sum is that which maximizes a combination of the bond energy *F* and configurational entropy *g*. For example, the strong binding regime is characterized by bond energy considerations overwhelming configurational entropy effects, while the intermediate binding regime is characterized by a degree of balance between the two.

### The model is validated by comparing to exact computational enumeration and previously published results

To validate the analytical model, we constructed a dynamic programming-based computational model that exactly enumerates *Z*_{m} in polynomial time (Supplementary Note 5.2). The analytical model described above makes three primary approximations compared to the computational model: (1) it assumes a constant entropy for all loops; (2) it considers only structures with a given number of bonds *N*_{b} (with a single next-order correction term); (3) it uses an approximate form for *g*(*n*, *m*, *N*_{b}) (see the “Methods” section). The computational model makes none of these approximations, considering all (non-pseudoknotted; see Supplementary Note 5.1) structures that can form and including a loop-length-dependent loop entropy term.

Nevertheless, the analytical model closely approximates the exact computational model, as demonstrated in Fig. 2. The analytical model requires only one fitting parameter: the normalized effective loop length \({l}_{{{{{{{{\rm{eff}}}}}}}}}^{{{{{{{{\rm{fit}}}}}}}}}\) (see the “Methods” section). That parameter is fit separately to the regimes allowing and disallowing neighbor binding. Importantly, it is fit only once for each regime—to the monomer partition function with strong binding—and not separately for different values of *n*, *m*, or *F*_{b}. We demonstrate quantitative agreement between the analytical and computational models in Fig. 2, and in Supplementary Fig. 5.

We further sought to compare the model’s predictions to previously published results, namely the MD simulations performed by Nguyen et al.^{19}. Those simulations examined 64 **CAG**-repeat RNA strands with varying numbers of repeats per strand and of RNA concentrations. We considered the same system of **CAG** sequences, using the value *F*_{b} = −10 employed in the MD simulations and no fitting parameters beyond the aforementioned single parameter fit to the computational model. We enumerated the monomer and dimer partition functions computationally, and used the analytical model to extrapolate up to *m* = 64, the number of strands used in the MD simulations. The extrapolation was performed by fitting the single parameter to our computational results for *m* = 1, and using Supplementary Eqs. S38 and S48 to obtain the results for *m* > 2. The primary difference between our model predictions and those of MD simulations is that the former is purely equilibrium, while the latter is decidedly not so, even after significant simulation time. (A secondary difference is that the former considers an infinite system of given concentration, while the latter considers a finite number of strands).

We plot the propensity of the system to form aggregates as a function of *n* and *c*^{tot} in Fig. 3. Following ref. ^{19}, we define multimers of size 2 ≤ *m* ≤ 4 as oligomers; however, this ensemble is dominated by dimers, with trimers and tetramers forming at very low fractions. We find that for certain concentrations, the system forms either monomers or dimers depending on the parity of *n*, in agreement with experimental results^{17}; however, this parity does not significantly affect aggregation. We plot the results of Nguyen et al. on top of our predictions as colored points, finding excellent quantitative agreement between the two.

### A reentrant phase transition governs aggregation as a function of sticker strength

For very low temperatures or strong stickers, the ensemble of multimers is dominated by small structures such as dimers, in which all bonds can be satisfied. However, for intermediate sticker strengths, the configurational entropy gain of having a few unsatisfied bonds exceeds the energetic cost. This configurational entropy grows with multimer size, driving the system to aggregate. Finally, for very weak stickers or high temperatures, the structures melt. This phenomenon corresponds to a reentrant phase transition. We demonstrate this transition in our computational model in Fig. 4, enumerating up to *m* = 15. As shown in the figure, the two dilute phases at strong and weak binding regimes are quite different from one another. In the strong binding regime, (almost) all bonds are satisfied in a typical structure, mainly through intramolecular interactions or dimerization. In the weak binding regime, (almost) no bonds are typically satisfied.

We next explored whether this reentrant transition was merely a small *m* effect. We employed the analytical model, for which we can consider arbitrarily large values of *m*. Even when considering *m* → *∞*, we find a reentrant transition in the threshold concentration above which the system is expected to form aggregates, \({c}_{{{{{{{{\rm{thresh}}}}}}}}}^{{{{{{{{\rm{tot}}}}}}}}}\) (see Supplementary Note 4), as shown in Fig. 5a. This transition is especially prominent for short linkers that disallow neighbor binding since the configurational entropy of dimers in this regime is quite limited (regardless of *n*, only one dimer configuration can satisfy all stickers). For longer linkers (allowing neighbor binding), this transition is most pronounced for even values of *n* for which monomers can satisfy all their own bonds, although it is apparent also for odd *n*, for which dimers can satisfy all bonds.

The behavior shown in Fig. 5 is in agreement with what we would expect from configurational entropy concerns alone (Supplementary Fig. 6). That the propensity of the system to aggregate occurs at more negative values of *β**F*, and is more pronounced, for the case of disallowing neighbor binding than for the case of allowing neighbor binding, is predicted by the different forms of the configurational entropy in these two regimes. Similarly, larger values of *n* increase the propensity of the system to aggregate because of their effect on configurational entropy, rather than any enthalpic considerations (Supplementary Fig. 6).

## Discussion

In this work, we have considered a simple model of competition between intra- and inter-molecular binding: a polymer with *n* identical evenly spaced self-complementary stickers. We have shown that the system is characterized by three parameters: *n*, the number of repeats per strand; *β**F*, the effective strength of each bond accounting for the loop entropy cost; and *c*^{tot}*e*^{−βΔF}, a dimensionless concentration that accounts for multimerization cost.

Our model computes the prevalence of all possible multimers that can form, considering both intra-strand and inter-strand contacts. Our framework quantitatively recapitulates previously published MD simulation results, each data point of which required 3 months of supercomputer simulation time^{19}. We substantially extend these results to arbitrary sequences, temperatures, and concentrations, and to arbitrarily large multimers (i.e. aggregates) in an analytical framework.

In this system, aggregation is not necessarily predicted as the regime where the most possible bonds are satisfied, as bonds can be satisfied by intramolecular as well as by intermolecular contacts. Instead, aggregation is predicted by the relative stability of the aggregate compared to smaller multimers. The stability of each structure is a function of three terms, as seen in Eq. 2: (1) the number of stickers bound (each contributes *F* to the free energy); (2) the number of strands in the structure (each contributes *μ* + Δ*F*, where *μ* is the chemical potential); and (3) the configurational entropy of the structure. This last term contributes \(-\log (g)/\beta\) to the free energy, where *g* is the number of ways to satisfy the given number of bonds with the given number of strands in the structure.

This last term is the driving force for aggregation in this system. Aggregates are no more stable than dimers in terms of the first term, the possible number of stickers bound (both are able to satisfy all stickers). Aggregates are further penalized by the second term, the multimerization cost. If these two terms were the only terms in the free energy, we would not see any aggregates. It is the third term, the configurational entropy, that drives aggregation. Larger multimers are able to satisfy their bonds in many more configurations than a corresponding collection of smaller multimers, leading to an enormous entropic benefit in forming aggregates. This has been described as a competition between configurational and translational entropies in other contexts^{24,32}. In our system, the benefit due to *g* peaks when most, but not all, stickers are satisfied (Supplementary Fig. 6).

This behavior leads to a reentrant phase transition. For −*β**F* ≫ 1, the number of bonds satisfied is the primary consideration. Dimers are able to satisfy all their bonds, and the multiplicity benefit of aggregates is not sufficiently large when all bonds are satisfied, suppressing aggregation in this regime. Aggregation is also suppressed for very positive values of *β**F*, which as a result of loop entropy costs can occur even when the sticker binding itself is favored (i.e. *F*_{b} < 0). However, for intermediate values of *β**F*—when dimers prefer having some bonds left unsatisfied—the configurational entropy benefit of forming aggregates is overwhelming. Aggregates form at 1–2 orders of magnitude lower concentrations in this regime than in the strong binding regime.

The predicted aggregation transition of the system is completely described in Fig. 5b. We plot the (dimensionless) threshold concentration \({c}_{{{{{{{{\rm{thresh}}}}}}}}}^{{{{{{{{\rm{tot}}}}}}}}}\) as a function of *n* and *β**F*. Aggregation is more prevalent for short linkers (disallowing neighbor binding) than for longer linkers (allowing neighbor binding). For short linkers, small structures are quite constrained in the number of ways they can satisfy all of their bonds, leading the differential configurational entropy benefit of aggregates to grow quite large. For longer linkers, smaller structures are more stable since the corresponding multiplicity is much larger. For similar reasons, the reentrant phase transition is most pronounced with short linkers. For long linkers, even values of *n* demonstrate a more pronounced reentrant transition than odd values, since their competition is between monomers—with no multimerization penalties—and aggregates. In all other cases, the reentrant transition is primarily due to competition between dimers and aggregates. For short linkers, the parity of *n* is found in our model to affect monomerization vs. dimerization in agreement with previously published results^{17}, but has almost no effect on aggregation properties. The reason is that for short linkers and strong stickers, dimers behave similarly regardless of the parity of *n*: both odd and even *n* can form a dimer satisfying all bonds with only one configuration.

Although there is a qualitative difference between short linkers of *l* < 3 and long linkers of *l* ≥ 3, within each regime, increasing the linker length leads to larger values of Δ*S* and weaker binding. Decreasing the persistence length, for example by changing ionic conditions, would be expected to lead to a similar result. These effects and the predicted phase diagram as a whole (Fig. 5b) could be at least qualitatively tested experimentally by replicating the Jain *&* Vale experiments for multiple sequences with different sticker strengths and linker lengths and measuring the change in the concentration needed to form aggregates for the different conditions. The available published data is in good agreement with our predictions, in that larger values of *n* show a greater propensity for aggregation in both experiments and our model predictions^{7}.

Our results bear similarities to the so-called “magic number effect" whereby for heterotypic mixtures, aggregation is suppressed when the number of binding sites in one species is a small integer multiple of the other’s^{32,33}. In such systems, small stable clusters can form with all bonds satisfied. In our homotypic system, dimers can always exhibit a magic number-like effect for strong stickers, and in the regime in which neighbor binding is allowed, for even *n*, monomers can as well. In fact, a weak reentrant transition has been observed in some simulations of the magic number effect in heterotypic systems (see Fig. 3A of ref. ^{34}). Our results suggest that a reentrant transition may be a generic feature of the magic number effect and that the strength of the reentrant behavior may decay the more molecules are involved.

Our model has several limitations. To make the expression analytically tractable, our formalism makes a heuristic approximation for the multimer multiplicity factor *g* in the regime disallowing neighbor bonds. For similar reasons, we were unable to analytically explore the weak binding regime, applicable for systems where the loop entropy cost of forming stickers outweighs their energetic benefit. A limitation of our model’s physiological applicability is that we did not explicitly consider magnesium. Magnesium can act as a bridge between negatively charged RNA molecules such that even in the absence of base pairing, Mg–RNA mixtures can form aggregates^{18,35}. Experimental results thus rely on magnesium aiding the aggregation process^{7}. However, the MD simulations to which we compare here do not explicitly consider magnesium^{19} and the high concentrations required for the system to aggregate (e.g. Fig. 3) are the result. To first-order, the effects of magnesium could be accounted for in our model as modifying Δ*F* (along with *F*_{b}), which effectively modifies the concentrations, as concentrations only enter the model as *c*^{tot}e^{−βΔF}. For clarity, we opted to leave Δ*F* unmodified; therefore, the high concentrations we consider should be significantly decreased for a system including magnesium.

While non-equilibrium effects are relevant in these systems, our analysis is entirely an equilibrium prediction. Indeed, kinetic trapping appears to be the biggest experimental hurdle to testing our reentrant phase predictions. At the same time, the results of decidedly out-of-equilibrium MD simulations^{19} show excellent quantitative agreement with our equilibrium predictions (Fig. 3). For this reason, it is likely that out-of-equilibrium effects are not the dominant factor in repeat RNA aggregation behavior. In vivo RNA aggregates are even more fluid-like and dynamic than in vitro aggregates, for reasons that remain largely unclear but appear to be the result of active enzymes in the cell^{7}. Future work may consider how such active processes affect the aggregation properties, and the connection between in vivo non-equilibrium steady states and the equilibrium steady state discussed here.

Given the radical simplicity of the model used here, there is a host of extensions to consider. For example: How does this model interact with complex coacervation, as when including polycations in the solution? How does a polymer pattern with multiple orthogonal stickers behave? How do multiple different polymers, with both *cis* and *trans* binding, interact with one another? And how do physiological RNA molecules use the principles explored here to control their aggregation properties?

Our work demonstrates that the competition between intra- and inter-molecular binding can lead to remarkable and (perhaps) unintuitive behavior. Our results mapping the control knobs for this phase behavior create a framework for the study of RNA–RNA interactions in in vivo biological condensates and set the stage for the construction of novel materials and new techniques based on programmable RNA condensates.

## Methods

### Partition functions determine equilibrium behavior

We consider a nucleic acid sequence comprised of *n* stickers separated by *n*−1 linkers (Fig. 1a). Stickers are self-complementary and bind through base pairing interactions, such that each sticker can be bound to at most one other sticker. The strength of the sticker interactions, *F*_{b}, is determined by the sequence of the stickers; for example, an RNA **GC** sticker with **A** nucleotide linkers in standard conditions has *F*_{b} = −6.4 kcal/mol (or, for DNA, −1.4), while a **GCGC** sticker has *F*_{b} = −12.2 kcal/mol (−5.8 for DNA). These are calculated using the classic nearest-neighbor model for RNA or DNA base-pairing interactions^{29,30}. The linkers, each of which is of length *l*, are inert.

We seek to predict how frequently multimers comprised of *m* strands form, and how this frequency changes with *m*. Aggregation occurs in the parameter regime where the concentration of multimers comprised of *m* strands, *c*_{m}, increases with *m*. *c*_{m} is defined as the sum of all structures that have *m* strands connected by base pairing interactions. In equilibrium, *c*_{m} is proportional to the partition function of *m*-mers, *Z*_{m}:

Here, *σ*_{m} is a structure comprised of *m* strands linked by base pairing, including potential intramolecular bonds; and *β* = 1/*k*_{B}*T* where *k*_{B} is Boltzmann’s constant and *T* is the temperature measured in Kelvin. *F*(*σ*_{m}) is the free energy of the structure, given by^{29}

where *N*_{b}(*σ*_{m}) is the number of bonds in the structure, and Δ*G*_{assoc} is the hybridization penalty associated with intermolecular binding (discussed below). Each closed loop of length *l*_{loop} leads to an entropic penalty of Δ*S*_{loop}(*l*_{loop}), associated with the decrease in three-dimensional configurations of the single-stranded region of the loop compared to a free chain, given by^{26,27}

where *v*_{s} is the volume within which two nucleotides can bind, and *b* is the persistence length of single-stranded regions. This equation treats the single-stranded loop as an ideal chain. An excluded volume term *v**m*^{2} can be added to Eq. 4^{20} but we assume *v* is small enough that this term is negligible except for very large *m* (see Supplementary Note 4 for further discussion).

Given the partition functions *Z*_{m} for all *m*-mers, we can calculate the equilibrium concentrations of *m*-mers, *c*_{m}, for all *m*, by solving a set of *m* simultaneous equations. *Z*_{m} affects physical observables such as *c*_{m} only through the ratio \({Z}_{m}/{Z}_{1}^{m}\), describing, in essence, the propensity of *m* strands to form an *m*-mer as opposed to *m* monomers^{25,31}:

where the concentrations are made dimensionless by normalizing by a reference concentration (see Supplementary Note 2) and *c*^{tot} is the total concentration of strands added to solution. In short, this equation arises from *c*_{m} = *Z*_{m}e^{mβμ} where *μ* is the chemical potential and the fugacity *e*^{βμ} = *c*_{1}/*Z*_{1} in equilibrium^{25}.

Solutions to Eq. 6 have two typical regimes. In one, *c*_{m} decays exponentially with *m*. On the other, *c*_{m} grows with *m* (until excluded volume effects begin to dominate). The latter regime corresponds to aggregation (Fig. 1a).

### An analytical model for the partition functions

The calculation of *Z*_{m} is too computationally intensive to perform directly, by explicitly enumerating all possible structures that can form, as the number of possible structures grows exponentially with *n* and *m*. In order to predict phase behavior for a wide range of sequences and experimental conditions, we develop an analytical framework for computing *Z*_{m}. This framework enables us to search a broad parameter space and tune phase behavior in the system. We validate our analytical model against a computational model that exactly calculates *Z*_{m} with a dynamic programming approach (Supplementary Note 5.2) thus providing an exact baseline model for comparison.

We rely on one major assumption to enable an analytical approach: we approximate the loop entropies as independent of loop length; or equivalently, we assume that the model is dominated by loops of one characteristic length, *l*_{eff}. This length depends on the length of the linkers in the system, *l*. This approximation is reasonable because of two factors. First, because of the logarithmic dependence of Δ*S*_{loop} on loop length (Eq. 5), moderate heterogeneities in loop length lead to only small differences in Δ*S*_{loop}. Second, because the typical number of loops in a multimer scales linearly with the size of the multimer (see Supplementary Note 3), we expect similar levels of heterogeneity in loop length independent of the size of the multimer. This approximation is expected to break down for very large *n* and weak binding (*F*_{b} > 0), in which case the few loops that typically form will likely have a broad distribution of lengths; this regime is not considered here.

With this approximation, for monomers, each bond provides constant free energy of *F* = *F*_{b} − *T*Δ*S*, where Δ*S* = Δ*S*_{loop}(*l*_{eff}). Since the number of loops is given by *N*_{b}−(*m*−1), we also define Δ*F* ≡ (Δ*G*_{assoc} + *T*Δ*S*). This quantity enters Eq. 6, such that it allows us to redefine a rescaled concentration *c*e^{−βΔF} (also, see Supplementary Note 2). Without rescaling concentration, the partition function *Z*_{m} can thus be written as

where the multiplicity factor *g*(*n*, *m*, *N*_{b}) represents the number of distinct ways to make *N*_{b} bonds connecting *m* identical strands, each with *n* stickers. This is identical to Eq. 2.

This multiplicity factor is most straightforward to consider for the case of monomers. We make the approximation that the contribution of pseudoknots to the partition function is negligible due to their high entropic cost (see Supplementary Note 5.1). Our goal is therefore to calculate the number of ways to form non-pseudoknotted structures containing *N*_{b} bonds given a strand of *n* stickers. For monomers, the multiplicity can be calculated exactly. However, the result depends on whether adjacent stickers are able to bind to one another or not. For a long enough linker length (≥3 nts for the case of RNA), neighboring stickers can bind; for shorter linker lengths (as, for example, for **CAG** repeats), they cannot (see Fig. 1b). As derived in Supplementary Note 1.1,

The top line (allowing neighbor binding) is simply calculated as the product of two factors: \(\left({{n}\atop{2{N}_{b}}}\right)\) (the number of ways to choose 2*N*_{b} bound stickers from *n* possibilities); and the Catalan number \({C}_{{N}_{\rm {{b}}}}\) (the number of non-pseudoknotted ways to construct bonds between the chosen stickers). The bottom line (disallowing neighbor bonds) requires a brief additional calculation to derive (Supplementary Note 1.1).

Calculating *g*(*n*, *m*, *N*_{b}) from *g*(*n*, 1, *N*_{b}) also depends on whether or not adjacent stickers can bind (see Supplementary Note 1.2). While the exact calculation requires large numbers of sums with no closed-form solution, a close approximation is given by

where *α* ≈ 0.42, representing an additional heuristic for the case of disallowing neighbor binding compared to the case of allowing such binding. The value of *α* = 0.42 used is a heuristic estimate that is an especially good fit to the strong interaction regime, and other approximations may improve it (see Supplementary Fig. 1). The factor of 1/*m* corrects for overcounting due to symmetry (Supplementary Note 1.2.3; see also Supplementary Fig. 2)^{36}.

Given expressions for the multiplicity factor, the partition functions (Eq. 7) are now in principle computable. However, the full sum in that equation remains too computationally intensive to be useful. We, therefore, turn to a saddlepoint approximation: sums of exponentials are typically dominated by their maximum terms, and Eq. 7 is no exception.

In order to find the maximum term, there are three cases to consider, corresponding to physically meaningful distinctions (Fig. 1c). In one regime, the “strong binding" regime, the ensemble is dominated by structures that maximize the bond energy, and the sum is dominated by the last terms (\({N}_{{\rm {b}}}={N}_{{\rm {b}}}^{\max }\)). In the second, the “intermediate binding" regime, the ensemble is dominated by structures that maximize a combination of the bond energy and configurational entropy measured by *g*, and the sum is dominated by an intermediate-term (\({N}_{{\rm {b}}}={N}_{{\rm {b}}}^{\star }\)). In the third, the “weak binding" regime, the ensemble is dominated by structures that have almost no bonds, and the sum is dominated by the first terms (\({N}_{{\rm {b}}}={N}_{{\rm {b}}}^{\min }\)). These three cases must be treated separately: in the strong and weak binding regimes, the discrete nature of the sum is crucial, while in the intermediate regime, the sum can be well-approximated by an integral. The boundary between these regimes occurs approximately when \({N}_{{\rm {b}}}^{\star }={N}_{{\rm {b}}}^{\max }-1\) or \({N}_{{\rm {b}}}^{\star }={N}_{{\rm {b}}}^{\min }+3\). For Figs. 3 and 5, we set the boundary between the strong and intermediate regimes at \({N}_{{\rm {b}}}^{\star }={N}_{{\rm {b}}}^{\max }-\frac{1}{4}\) (allowing neighbor binding) and \({N}_{\rm {{b}}}^{\star }=\frac{n}{2}-2\) (disallowing neighbor binding).

After computing the dominant term of the sum, the next-order correction to *Z*_{m} comes from either considering the next-dominant term (strong and weak regimes) or the curvature at the maximum (intermediate regime); see Supplementary Note 3 for more details.

When comparing between the analytical and computational models, we use a single fitting parameter \({l}_{{{{{{{{\rm{eff}}}}}}}}}^{{{{{{{{\rm{fit}}}}}}}}}\), which tunes the normalized effective loop length. That parameter is fit separately to the monomer partition functions allowing and disallowing neighbor binding, but is kept constant for all values of *m*. For different binding strengths, a different fraction of stickers will be bonded, leading to a different value of *l*_{eff}. Rather than having a separate fitting parameter for each parameter set, we only fit once (to monomers) in each of the two linker length regimes (allowing and disallowing neighbor binding). We then assume that *l*_{eff} changes linearly with the fraction of stickers bonded, leading to:

We fit \({l}_{{{{{{{{\rm{eff}}}}}}}}}^{{{{{{{{\rm{fit}}}}}}}}}\) to the strong binding regime (Fig. 2) for which \({l}_{{{{{{{{\rm{eff}}}}}}}}} \, \approx \, {l}_{{{{{{{{\rm{eff}}}}}}}}}^{{{{{{{{\rm{fit}}}}}}}}}\). We find intuitively reasonable values for \({l}_{{{{{{{{\rm{eff}}}}}}}}}^{{{{{{{{\rm{fit}}}}}}}}}\). When using *l* = 1 (disallowing neighbor binding), we find \({l}_{{{{{{{{\rm{eff}}}}}}}}}^{{{{{{{{\rm{fit}}}}}}}}}=4.3\) nucleotides. This value is in between the length of an internal loop formed by two individual linkers (4 nucleotides) and the length of a hairpin loop formed by two linkers and a sticker (5 nucleotides). When using *l* = 4 (allowing neighbor binding), we find \({l}_{{{{{{{{\rm{eff}}}}}}}}}^{{{{{{{{\rm{fit}}}}}}}}}=7\) nucleotides. This value is also in between the length of an internal loop formed by two individual linkers (10 nucleotides) and the length of a hairpin loop formed by a single linker (5 nucleotides).

### Reporting summary

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.

## Data availability

The data that support the findings of this study are available from the corresponding author upon reasonable request.

## Code availability

All code used to generate the results and figures in this study can be found at https://github.com/ofer-kimchi/RNA-aggregation.

## References

Van Treeck, B. & Parker, R. Emerging roles for intermolecular RNA–RNA interactions in RNP assemblies.

*Cell***174**, 791–802 (2018).Polymenidou, M. The RNA face of phase separation.

*Science***360**, 859–860 (2018).Fay, M. M. & Anderson, P. J. The role of RNA in biological phase separations.

*J. Mol. Biol.***430**, 4685–4701 (2018).Roden, C. & Gladfelter, A. S. RNA contributions to the form and function of biomolecular condensates.

*Nat. Rev. Mol. Cell Biol.***22**, 1–13 (2020).Van Treeck, B. et al. RNA self-assembly contributes to stress granule formation and defining the stress granule transcrip- tome.

*Proc. Natl Acad. Sci. USA***115**, 2734–2739 (2018).Langdon, E. M. et al. mRNA structure determines specificity of a polyQ-driven phase separation.

*Science***360**, 922–927 (2018).Jain, A. & Vale, R. D. RNA phase transitions in repeat expansion disorders.

*Nature***546**, 243–247 (2017).Ellerby, L. M. Repeat expansion disorders: mechanisms and therapeutics.

*Neurotherapeutics***16**, 924–927 (2019).Usdin, K. The biological effects of simple tandem repeats: lessons from the repeat expansion diseases.

*Genome Res.***18**, 1011–1019 (2008).Hannan, A. J. Tandem repeats mediating genetic plasticity in health and disease.

*Nat. Rev. Genet.***19**, 286–298 (2018).Santhana Mariappan, S. V., Garcia, A. E. & Gupta, G. Structure dynamics of the DNA hairpins formed by tandemly repeated CTG triplets associated with myotonic dystrophy.

*Nucleic Acids Res.***24**, 775–783 (1996).Kiliszek, A., Kierzek, R., Krzyzosiak, W. J. & Rypniewski, W. Atomic resolution structure of CAG RNA repeats: structural insights and implications for the trinucleotide repeat expansion diseases.

*Nucleic Acids Res.***38**, 8370–8376 (2010).Figueroa, A. A., Cattie, D. & Delaney, S. Structure of even/odd trinucleotide repeat sequences modulates persistence of non-b conformations and conversion to duplex.

*Biochemistry***50**, 4441–4450 (2011).Ni, ChengWei, Wei, Yu. Jie, Shen, Y. I. & Lee, I. R. Long-range hairpin slippage reconfiguration dynamics in trinucleotide repeat sequences.

*J. Phys. Chem. Lett.***10**, 3985–3990 (2019).Sobczak, K., de Mezer, M., Michlewski, G., Krol, J. & Krzyzosiak, W. J. RNA structure of trinucleotide repeats associated with human neurological diseases.

*Nucleic Acids Res.***31**, 5469–5482 (2003).Broda, M., Kierzek, E., Gdaniec, Z., Kulinski, T. & Kierzek, R. Thermodynamic stability of RNA structures formed by CNG trinucleotide repeats. Implication for prediction of RNA structure.

*Biochemistry***44**, 10873–10882 (2005).Huang, J. & Delaney, S. Unique length-dependent biophysical properties of repetitive DNA.

*J. Phys. Chem. B***120**, 4195–4203 (2016).Ma, Y., Li, H., Gong, Z., Yang, S., Wang, P. & Tang, C. Nucleobase clustering contributes to the formation and hollowing of repeat-expansion RNA condensate.

*J. Am. Chem. Soc.***144**, 4716–4720 (2022).Nguyen, H. T., Hori, N. & Thirumalai, D. Condensates in RNA repeat sequences are heterogeneously organized and exhibit reptation dynamics.

*Nat. Chem.***14**, 775–785 (2022).Semenov, A. N. & Rubinstein, M. Thermoreversible gelation in solutions of associative polymers. 1. Statics.

*Macromolecules***31**, 1373–1385 (1998).Choi, JeongMo, Holehouse, A. S. & Pappu, R. V. Physical principles underlying the complex biology of intracellular phase transitions.

*Annu. Rev. Biophys.***49**, 107–133 (2020).Lin, Y. et al. Narrow equilibrium window for complex coacervation of tau and RNA under cellular conditions.

*eLife***8**, 1–31 (2019).Dobrynin, A. V. Phase diagram of solutions of associative polymers.

*Macromolecules***37**, 3881–3893 (2004).Weiner, B. G., Pyo, A. G. T., Meir, Y. & Wingreen, N. S. Motif-pattern dependence of biomolecular phase separation driven by specific interactions.

*PLoS Comput. Biol.***17**, 1–17 (2021).Curatolo, A. I., Kimchi, O., Goodrich, C. P. & Brenner, M. P. The assembly yield of complex, heterogeneous structures: a computational toolbox. Preprint at

*bioRxiv*https://doi.org/10.1101/2022.06.26.497606 (2022).Jacobson, H. & Stockmayer, W. H. Intramolecular reaction in polycondensations. I. The theory of linear systems.

*J. Chem. Phys.***18**, 1600–1606 (1950).Kimchi, O., Cragnolini, T., Brenner, M. P. & Colwell, L. J. A polymer physics framework for the entropy of arbitrary pseudoknots.

*Biophys. J.***117**, 520–532 (2019).Xia, T. et al. Thermodynamic parameters for an expanded nearest-neighbor model for formation of RNA duplexes with Watson–Crick base pairs.

*Biochemistry***37**, 14719–14735 (1998).Turner, D. H. & Mathews, D. H. NNDB: the nearest neighbor parameter database for predicting stability of nucleic acid secondary structure.

*Nucleic Acids Res.***38**, 2009–2011 (2009).SantaLucia, J. & Hicks, D. The thermodynamics of DNA structural motifs.

*Annu. Rev. Biophys. Biomol. Struct.***33**, 415–440 (2004).Dirks, R. M., Bois, J. S., Schaeffer, J. M., Winfree, E. & Pierce, N. A. Thermodynamic analysis of interacting nucleic acid strands.

*SIAM Rev.***49**, 65–88 (2007).Xu, B. et al. Rigidity enhances a magic-number effect in polymer phase separation.

*Nat. Commun.***11**, 4–11 (2020).Freeman Rosenzweig, E. S. et al. The Eukaryotic CO2-concentrating organelle is liquid-like and exhibits dynamic reorganization.

*Cell***171**, 148-162.e19 (2017).Zhang, Y., Xu, B., Weiner, B. G., Meir, Y. & Wingreen, N. S. Decoding the physical principles of two-component biomolecular phase separation.

*eLife***10**, 1–31 (2021).Onuchic, P. L., Milin, A. N., Alshareedah, I., Deniz, A. A. & Banerjee, P. R. Divalent cations can control a switch-like behavior in heterotypic and homotypic RNA coacervates.

*Sci. Rep.***9**, 1–10 (2019).Klein, E. D., Perry, R. W. & Manoharan, V. N. Physical interpretation of the partition function for colloidal clusters.

*Phys. Rev. E***98**, 1–12 (2018).Kerpedjiev, P., Hammer, S. & Hofacker, I. L. Forna (force-directed RNA): simple and effective online RNA secondary structure diagrams.

*Bioinformatics***31**, 3377–3379 (2015).

## Acknowledgements

We thank Sumit Majumder and Ankur Jain for sharing their expertise of this system and the central experiments, as well as Hung Nguyen and Naoto Hori for discussions of their molecular dynamics simulations. We thank Ned Wingreen and Yaojun Zhang for discussions of magic number systems and their connection to the present work. We also thank Krishna Shrinivas, Peter Clote, Megan Engel, Ben Weiner, and Rees Garmann for interesting and useful discussions. This work was supported by the Peter B. Lewis ’55 Lewis-Sigler Institute/Genomics Fund through the Lewis-Sigler Institute of Integrative Genomics at Princeton University, and the National Science Foundation through the Center for the Physics of Biological Function (PHY-1734030) (O.K.); a National Science Foundation Graduate Research Fellowship under Grant No. DGE1745303 (E.M.K.); the Harvard Materials Research Science and Engineering Center (DMR 20-11754), the Office of Naval Research (ONR N00014-17-1-3029), and the Simons Foundation through the Simons Foundation Investigator Award (M.P.B.).

## Author information

### Authors and Affiliations

### Contributions

All the authors (O.K., E.M.K., M.P.B.) designed research. O.K. and E.M.K. carried out theoretical calculations, wrote Python code, and analyzed data. All the authors (O.K., E.M.K., M.P.B.) wrote the article.

### Corresponding author

## Ethics declarations

### Competing interests

The authors declare no competing interests.

## Peer review

### Peer review information

*Nature Communications* thanks Gian Tartaglia and the other, anonymous, reviewers for their contribution to the peer review of this work. Peer reviewer reports are available.

## Additional information

**Publisher’s note** Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Supplementary information

## Rights and permissions

**Open Access** This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.

## About this article

### Cite this article

Kimchi, O., King, E.M. & Brenner, M.P. Uncovering the mechanism for aggregation in repeat expanded RNA reveals a reentrant transition.
*Nat Commun* **14**, 332 (2023). https://doi.org/10.1038/s41467-023-35803-x

Received:

Accepted:

Published:

DOI: https://doi.org/10.1038/s41467-023-35803-x

## Comments

By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.