Proto is not affiliated with TBI Vienna. This toolkit is open source and builds on the implementation produced by this organization. Product names, logos, and trademarks are the property of their respective owners.
Background
ViennaRNA (Lorenz et al., 2011) predicts the secondary structure of a nucleic-acid sequence: the set of intramolecular base pairs that form within a single strand. Secondary structure sits between sequence and three-dimensional shape and governs how many functional RNAs behave, so predicting it from sequence alone is a core step in RNA analysis and design. Internally, ViennaRNA folds each sequence with the minimum-free-energy dynamic program at the core of RNAfold (cubic in the sequence length) under a nearest-neighbor thermodynamic model. RNA sequences use the Turner 2004 parameters. Selecting the DNA option instead loads the Mathews 2004 DNA parameters. The predicted structure is returned in dot-bracket notation together with its minimum free energy in kcal/mol, where a more negative value indicates a more stable predicted fold. Because it is a thermodynamic rather than a learned method, it is deterministic, runs on CPU, and predicts secondary structure only, not three-dimensional coordinates. The reference implementation is the ViennaRNA Package, maintained by TBI Vienna at ViennaRNA/ViennaRNA.Learning Resources
- ViennaRNA Package documentation and tutorials (TBI Vienna) - the official documentation, worked tutorials, and the RNAfold web server for trying predictions interactively.
Tools
ViennaRNA Secondary Structure Prediction (viennarna-prediction)
Folds each input sequence to its minimum-free-energy secondary structure, returning the structure in dot-bracket notation and the minimum free energy in kcal/mol for every sequence.API Reference
Input: ViennaRNAInput
Input: ViennaRNAInput
Config: ViennaRNAConfig
Config: ViennaRNAConfig
0, 1, 2, 3True is coerced to 1 and False to 0.None waits indefinitely.BaseToolOutput.approx_equal), and the seed participates in cache keys. When None, cacheable seed-sensitive tools skip cache until seeded.Output: ViennaRNAOutput
Output: ViennaRNAOutput
Applications
Use this to predict the base-pairing of mRNAs, non-coding RNAs, riboswitches, aptamers, or designed RNA constructs from sequence alone, for example to check whether a designed UTR or guide RNA folds as intended, or to rank candidate sequences by the stability of their predicted fold.Usage Tips
temperature(default37.0, degrees Celsius) sets the folding temperature. The energy model is temperature-dependent, so the predicted structure and free energy change with it. Keep the default for physiological predictions and change it to model other conditions.use_dna_params(defaultFalse) also changes how the input is read. WhenFalse, anyTin a sequence is converted toUand the sequence is folded as RNA with the Turner 2004 parameters. Set itTrueto fold the sequence as DNA with the Mathews 2004 DNA parameters and noT-to-Uconversion.- Set
circtoTruefor circular molecules. Plasmids, viroids, and circular RNAs fold differently from linear strands, and the default treats the sequence as linear. no_lonely_pairs(defaultFalse) forbids isolated base pairs. Enabling it removes length-one helices, which often yields more physically realistic structures.max_bp_span(default-1, unlimited) caps the base-pair span. Set a positive value to forbid long-range pairs, which is useful for very long sequences or local-structure analysis.
Toolkit Notes
These apply to every ViennaRNA tool in this toolkit (viennarna-prediction).
- Runs on CPU. ViennaRNA is a fast C package and does not use a GPU. Folding is near-instant for typical sequences, and runtime grows as the cube of sequence length, so very long inputs are slower.
- Predicts secondary structure only. The output is a base-pairing pattern and a free energy, not three-dimensional atomic coordinates; use a tertiary-structure method when 3D is needed.

TBI Vienna