Rosetta FARFAR2 is a fragment assembly algorithm that predicts the 3D atomic coordinates of an RNA molecule de novo, without relying on a homologous template structure. It operates by assembling short, overlapping fragments from a library of experimentally determined RNA structures, then using a Monte Carlo simulated annealing protocol guided by a knowledge-based potential to search for low-energy conformations.
Glossary
Rosetta FARFAR2

What is Rosetta FARFAR2?
A fragment assembly and Monte Carlo optimization algorithm within the Rosetta software suite specifically designed for de novo prediction of RNA tertiary structure from sequence.
The algorithm refines coarse-grained models into all-atom representations and scores them using the Rosetta energy function, which combines physical and statistical terms. FARFAR2 is benchmarked in blind assessments like RNA-Puzzles and is particularly effective for predicting the global fold of small to medium-sized RNAs, including complex motifs such as pseudoknots and A-minor motifs.
Key Features of FARFAR2
The core algorithmic components and operational principles that define the Rosetta FARFAR2 fragment assembly pipeline for de novo RNA tertiary structure prediction.
Fragment Assembly Monte Carlo
FARFAR2 operates on the principle of fragment assembly, constructing 3D models by stitching together short, overlapping RNA fragments (typically 3 nucleotides long) from a library of experimentally determined structures. The algorithm initiates with an extended chain conformation and performs a Monte Carlo simulated annealing search. Each move replaces a segment with a torsionally compatible fragment, and the new conformation is accepted or rejected based on the Metropolis criterion using the Rosetta all-atom energy function.
Low-Resolution Centroid Representation
To efficiently explore the vast conformational landscape, FARFAR2 initially represents RNA in a coarse-grained centroid mode. In this phase, each nucleotide side chain is reduced to a single pseudo-atom (centroid) located at the geometric center of the base. This simplification dramatically reduces the degrees of freedom, allowing the Monte Carlo search to rapidly identify globally correct helix packing arrangements and tertiary folds before computationally expensive all-atom refinement.
All-Atom Refinement with Explicit Solvent
Following the low-resolution stage, FARFAR2 transitions to a high-resolution all-atom refinement phase. The centroid models are recovered to full atomic detail, and the energy landscape is sampled using the Rosetta all-atom energy function (ref2015). This function integrates:
- Lennard-Jones van der Waals packing terms
- Lazaridis-Karplus implicit solvation model
- Orientation-dependent hydrogen bonding potentials
- Knowledge-based backbone torsion and base-stacking potentials
Experimental Data Integration
FARFAR2 is designed to seamlessly incorporate sparse experimental constraints to guide folding and improve accuracy. The energy function can be augmented with pseudo-energy terms derived from:
- SHAPE chemical probing reactivity profiles
- DMS methylation protection data
- Cryo-EM density maps (via map-to-model fitting)
- NMR residual dipolar couplings (RDCs) These restraints penalize conformations that violate experimental observations, effectively biasing the Monte Carlo trajectory toward the native state.
Parallelized Large-Scale Sampling
Due to the stochastic nature of Monte Carlo simulation, FARFAR2 requires extensive independent trajectories to converge on the global energy minimum. The algorithm is massively parallelized to run thousands of independent folding simulations simultaneously across high-performance computing clusters. Results are clustered by root-mean-square deviation (RMSD), and the lowest-energy models from the largest clusters are selected as the final predicted structures, providing a consensus-based confidence metric.
Knowledge-Based Fragment Library
The predictive power of FARFAR2 depends critically on its fragment library, a curated database of RNA backbone torsion angles and base-pair geometries extracted from high-resolution X-ray crystallographic structures. The library is non-redundant and filtered by resolution. For a given target sequence, fragments are selected based on sequence similarity and predicted secondary structure propensity, ensuring that local structural building blocks are physically realistic and evolutionarily plausible.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about the Rosetta FARFAR2 algorithm and its role in de novo RNA tertiary structure prediction.
Rosetta FARFAR2 is a fragment assembly and Monte Carlo optimization algorithm within the Rosetta software suite specifically designed for de novo prediction of RNA tertiary structure from sequence. It works by first fragmenting the target RNA sequence into short, overlapping segments of approximately three nucleotides. These fragments are matched against a library of experimentally determined RNA structures to identify candidate conformations. The algorithm then assembles these fragments into a complete 3D model using a Monte Carlo simulated annealing protocol. During assembly, the structure is iteratively perturbed and scored using the Rosetta all-atom energy function, which combines knowledge-based potentials with physics-based terms. Low-energy conformations are retained, and the process repeats until the system converges on a predicted native-like fold. FARFAR2 explicitly models non-canonical interactions, including Leontis-Westhof base pairs and A-minor motifs, making it particularly effective for complex RNA architectures that standard secondary structure prediction tools cannot capture.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
FARFAR2 vs. Deep Learning Methods
A feature-level comparison of the physics-based FARFAR2 algorithm against end-to-end deep learning approaches for RNA tertiary structure prediction.
| Feature | Rosetta FARFAR2 | AlphaFold 3 | RoseTTAFoldNA |
|---|---|---|---|
Core Methodology | Fragment assembly with Monte Carlo simulated annealing | Diffusion-based generative model with all-atom refinement | Three-track neural network (sequence, distance, coordinate) |
Requires Secondary Structure Input | |||
Explicit Physics-Based Energy Function | |||
End-to-End Learning from Sequence | |||
Handles Non-Canonical Base Pairs | |||
Predicts Pseudoknots | |||
Integrates Chemical Probing Data (SHAPE) | |||
Typical Inference Time (per target) | Hours to days | Seconds to minutes | Minutes |
Related Terms
Key algorithms, scoring functions, and structural motifs that underpin the Rosetta FARFAR2 fragment assembly pipeline for de novo RNA tertiary structure prediction.
Fragment Assembly
The core algorithmic strategy of FARFAR2, where the target RNA sequence is divided into short, overlapping fragment windows (typically 3 nucleotides). Candidate conformations for each window are drawn from a library of experimentally determined RNA structures. The full-length model is built by Monte Carlo sampling, which randomly selects and inserts these fragments to explore the conformational space, accepting or rejecting moves based on the Rosetta energy function.
Stepwise Monte Carlo (SWM)
A high-resolution refinement method used within FARFAR2 that builds RNA models one nucleotide at a time. Unlike fragment insertion, SWM samples the discrete torsion angle space of the sugar-phosphate backbone for each residue. It employs a branch-and-bound search strategy to systematically enumerate and evaluate possible conformations, enabling the precise modeling of non-canonical motifs and ligand binding sites that are poorly represented in fragment libraries.
Rosetta Energy Function (ref2015)
A hybrid scoring function that combines physics-based and knowledge-based terms to evaluate the free energy of an RNA conformation. Key components include:
- fa_atr/fa_rep: Lennard-Jones van der Waals interactions
- hbond_sr_bb/sc: Short-range backbone and sidechain hydrogen bonding
- rna_torsion: Statistical torsion angle potentials derived from known structures
- stack_elec: Base stacking electrostatics The total score guides the Monte Carlo acceptance criterion, driving the simulation toward the native fold.
Leontis-Westhof Base Pair Classification
A geometric ontology used by FARFAR2 to annotate and score RNA interactions. It classifies base pairs by three interacting edges (Watson-Crick, Hoogsteen, Sugar) and the relative glycosidic bond orientation (cis or trans). This produces 12 geometric families, enabling the algorithm to precisely recognize and enforce specific tertiary contacts like the A-minor motif and ribose zipper during fragment assembly and scoring.
Knowledge-Based Potential
A statistical energy term derived by inverting the Boltzmann distribution of observed geometries in a non-redundant set of high-resolution RNA crystal structures. FARFAR2 uses these potentials to score the likelihood of observed torsion angles, base pair geometries, and inter-residue distances. A low score indicates a conformation that is statistically similar to those found in nature, effectively encoding the 'rules' of RNA folding without explicitly solving the physics.
A-Minor Motif Recognition
A ubiquitous RNA tertiary interaction where an unpaired adenine inserts its minor groove edge into the minor groove of a neighboring Watson-Crick helix. FARFAR2 explicitly models this motif through geometric constraints and base pair classification. Type I and Type II A-minor interactions are critical for stabilizing the compact folds of large RNAs like the ribosome and group I introns, and their accurate prediction is a hallmark of successful de novo modeling.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us