RNAINVERSE(1)
β¨ RNAINVERSE(1) π¦ User Commands β¨
π NAME
bestie, okay so the whole name is RNAinverse, and this is the manual page for RNAinverse 2.7.0 πΈ
π SYNOPSIS
RNAinverse [OPTION]...
π DESCRIPTION
RNAinverse 2.7.0 π
Find RNA sequences with given secondary structure π§
okay so this program basically does the folding algorithm backwards π₯ it searches for sequences that fold into a structure you already picked. the target structures (in bracket notation) and the starting sequences get read alternately from stdin, so it's a whole back-and-forth vibe π«Ά
a few lowkey important things π
- characters in the start sequence that aren't
AUGC(or whatever alphabet you set with-a) become wild cards and get swapped for a random character π² - any lower case characters in the start sequence stay fixed during the search π
- if needed, the sequence gets elongated to the length of the structure π
- so a string of
Ns, or a blank line, both mean "random start sequence" π
for each search, the best sequence it finds and its Hamming distance to the start sequence get printed to stdout β¨ if the search was unsuccessful, a structure distance to the target gets tacked on at the end π the -Fp and -R options can change the output format, so check the commandline options below π
the program keeps reading new structures and sequences until it hits a line with just the single character @, or an end of file condition π
-h,--helpβ print help and exit πΈ--detailed-helpβ print help, including all details and hidden options, and exit π§--full-helpβ print help, including hidden options, and exit π-V,--versionβ print version and exit π·οΈ-v,--verboseβ in conjunction with a negative value supplied to-R, print the last subsequence and substructure for each unsuccessful search.
(default=off)
it also lowers the log level setting so even INFO messages get through π’
--log-level=levelβ set the log level threshold. (default=2)
by default only warnings (level 2) or errors (level 3) get printed. higher values mean fewer messages, and log-level 5 turns off all messages, even errors and other critical stuff π€«
--log-file[=filename]β print log messages to a file instead of stderr. (default=RNAinverse.log) π--log-timeβ include a time stamp in log messages.
(default=off) β°
--log-callβ include the file and line of the log calling function.
(default=off) π
π§ Algorithms
select additional algorithms which should be included in the calculations π
-F,--function=mpβ use minimum energy (-Fm), partition function folding (-Fp) or both (-Fmp).
(default=m)
in partition function mode, the probability of the target structure exp(-E(S)/kT)/Q gets maximized π this probability is written in brackets after the found sequence and Hamming distance. in most cases you'll want to use the -f option together with -Fp, see below π«Ά
-f,--final=FLOATβ in combination with-Fp, stop the search when a sequence is found withE(s)-Fsmaller than final, whereF=-kT*ln(Q)π-R,--repeat[=INT]β search repeatedly for the same structure. if an argument is supplied to this option it must follow the option flag immediately, e.g.:-R5π
(default=1)
if repeats is negative, the search keeps going until --repeats exact solutions are found, and no output is done for unsuccessful searches. be warned: the program will not terminate if the target structure can't be found π if no value is supplied with this option, the default value is used.
-a,--alphabet=ALPHABETβ find sequences using only nucleotides from a given alphabet. π€
β Energy Parameters
energy parameter sets can be adapted or loaded from user-provided input files π
-T,--temp=DOUBLEβ rescale energy parameters to a temperature of temp C. default is 37C.
(default=37.0) π‘οΈ
-P,--paramFile=paramfileβ read energy parameters from paramfile, instead of using the default parameter set.
different sets of energy parameters for RNA and DNA should accompany your distribution. see the RNAlib documentation for details on the file format. when you pass the placeholder file name DNA, DNA parameters get loaded without needing to actually specify any input file π§¬
-4,--noTetraβ do not include special tabulated stabilizing energies for tri-, tetra- and hexaloop hairpins.
(default=off)
mostly for testing π§ͺ
--salt=DOUBLEβ set salt concentration in molar (M). default is 1.021M π§
π Model Details
tweak the energy model and pairing rules even more using the following parameters π
-d,--dangles=INTβ how to treat "dangling end" energies for bases adjacent to helices in free ends and multi-loops
(default=2)
with -d1, only unpaired bases can participate in at most one dangling end. with -d2 this check is ignored, and dangling energies get added for the bases adjacent to a helix on both sides in any case. this is the default for mfe and partition function folding (-p). the option -d0 ignores dangling ends altogether (mostly for debugging) π with -d3, mfe folding will allow coaxial stacking of adjacent helices in multi-loops. at the moment the implementation will not allow coaxial stacking of the two enclosed pairs in a loop of degree 3, and it only works for mfe folding β οΈ
β οΈ heads up: with-d1and-d3, only the MFE computations use this setting, while partition function uses the-d2setting, so dangling ends get treated differently!
--noGUβ do not allow GU pairs.
(default=off) π«
--noClosingGUβ do not allow GU pairs at the end of helices.
(default=off) π«
--nsp=STRINGβ allow other pairs in addition to the usual AU, GC, and GU pairs.
its argument is a comma separated list of additionally allowed pairs. if the first character is a -, then AB will imply that AB and BA are allowed pairs. e.g. RNAfold -nsp -GA will allow GA and AG pairs. nonstandard pairs are given 0 stacking energy π§©
--energyModel=INTβ set energy model.
rarely used option to fold sequences from the artificial ABCD... alphabet, where A pairs B, C-D etc. use the energy parameters for GC (--energyModel 1) or AU (--energyModel 2) pairs π¬
--helical-rise=FLOATβ set the helical rise of the helix in units of Angstrom.
(default=2.8)
use with caution! this value gets re-set automatically to 3.4 if DNA parameters are loaded via -P DNA and no further value is provided β οΈ
--backbone-length=FLOATβ set the average backbone length for looped regions in units of Angstrom.
(default=6.0)
use with caution! this value gets re-set automatically to 6.76 if DNA parameters are loaded via -P DNA and no further value is provided β οΈ
π REFERENCES
if you use this program in your work, you might want to cite these π
- R. Lorenz, S.H. Bernhart, C. Hoener zu Siederdissen, H. Tafer, C. Flamm, P.F. Stadler and I.L. Hofacker (2011), "ViennaRNA Package 2.0", Algorithms for Molecular Biology: 6:26
- I.L. Hofacker, W. Fontana, P.F. Stadler, S. Bonhoeffer, M. Tacker, P. Schuster (1994), "Fast Folding and Comparison of RNA Secondary Structures", Monatshefte f. Chemie: 125, pp 167-188
- R. Lorenz, I.L. Hofacker, P.F. Stadler (2016), "RNA folding with hard and soft constraints", Algorithms for Molecular Biology 11:1 pp 1-13
- D.H. Turner, N. Sugimoto, S.M. Freier (1988), "RNA structure prediction", Ann Rev Biophys Biophys Chem: 17, pp 167-192
- M. Zuker, P. Stiegler (1981), "Optimal computer folding of large RNA sequences using thermodynamic and auxiliary information", Nucl Acid Res: 9, pp 133-148
- J.S. McCaskill (1990), "The equilibrium partition function and base pair binding probabilities for RNA secondary structures", Biopolymers: 29, pp 1105-1119
the energy parameters are taken from:
- D.H. Mathews, M.D. Disney, D. Matthew, J.L. Childs, S.J. Schroeder, J. Susan, M. Zuker, D.H. Turner (2004), "Incorporating chemical modification constraints into a dynamic programming algorithm for prediction of RNA secondary structure", Proc. Natl. Acad. Sci. USA: 101, pp 7287-7292
- D.H Turner, D.H. Mathews (2009), "NNDB: The nearest neighbor parameter database for predicting stability of nucleic acid secondary structure", Nucleic Acids Research: 38, pp 280-282
π EXAMPLES
to search 5 times for sequences forming a simple hairpin structure interrupted by one GA mismatch, call:
$ RNAinverse -R 5
and then enter the lines:
(((.(((....))).)))
NNNgNNNNNNNNNNaNNN
π AUTHOR
Ivo L Hofacker
π REPORTING BUGS
if in doubt, our program is right and nature is at fault π comments should be sent to rna@tbi.univie.ac.at π
π ok that's the whole thing, bestie! RNAinverse 2.7.0 Β· February 2026 Β· RNAINVERSE(1) π π
π¦ where this page comes from
- ubuntu resolute: vienna-rna 2.7.0+dfsg-2 Β· non-free
- ubuntu stonking: vienna-rna 2.7.0+dfsg-2 Β· non-free
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms