RNALALIFOLD(1)
๐ฆ RNALalifold(1) ๐ฆ
User Commands ๐
โจ NAME โจ
RNALalifold - manual page for RNALalifold 2.7.0 ๐ธ
โจ SYNOPSIS โจ
RNALalifold [options] <file1.aln>
โจ DESCRIPTION โจ
RNALalifold 2.7.0 ๐ is all about one thing: calculating locally stable secondary structures for a set of aligned RNAs ๐ง
Okay so it reads aligned RNA sequences from stdin or from a file.aln, then calculates locally stable RNA secondary structure with a maximal base pair span. For a sequence of length n and a base pair span of L, the algorithm only uses O(n+L*L) memory and O(n*L*L) CPU time. That's literally why it's practical to "scan" very large genomes for short RNA structures ๐ญ๐ฅ
-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โ Be verbose (default=off) ๐ข- It lowers the log level so even INFO messages get passed through.
-q,--quietโ Be quiet (default=off) ๐คซ- This one keeps the extra info and non-severe warnings from spamming stdout/stderr.
โจ I/O Options โจ
Command line options for input and output (pre-)processing ๐
-f,--input-format=C|S|F|Mโ Tell it the file format of the input multiple sequence alignment (MSA) ๐- If you set this, the input is treated as that particular format.
- If you don't, it tries to figure out the format automatically, as long as an input file was given.
- When the input MSA comes in interactive mode or from a terminal (TTY), the program defaults to assuming CLUSTALW format.
- Available formats: ClustalW (
C), Stockholm 1.0 (S), FASTA/Pearson (F), and MAF (M).
--csvโ Create comma separated output (csv) (default=off) ๐--aln[=prefix]โ Produce output alignments and secondary structure plots for each hit found ๐จ- For every hit, you get a colored, structure-annotated (sub)alignment and a secondary structure plot, both in PostScript format.
- The subalignment hit also gets added into a multi-Stockholm file called
RNALalifold_results.stk. - The PostScript files are named
aln_start_end.epsandss_start_end.eps, and they all land in the current directory. - The optional prefix changes the names to
prefix_aln_start_end.eps,prefix_ss_start_end.eps, andprefix.stk. - > Heads up: any special characters in the prefix get replaced by the filename delimiter, so there's no way to pass a whole directory path through this option yet. (See also
--filename-delim.)
--aln-stk[=prefix]โ Add hits to a multi-Stockholm formatted output file (default=RNALalifold_results) ๐๏ธ- The default file name is
RNALalifold_results.stk. Pass a prefix and it becomesprefix.stkinstead. - The file gets created in the current directory if it doesn't already exist. If it does exist, the output gets appended to it.
- > Same warning as above: special characters in the prefix get replaced by the filename delimiter, so no full directory paths yet. (See also
--filename-delim.)
- The default file name is
--misโ Output the "most informative sequence" instead of the simple consensus (default=off) ๐ง- For each column of the alignment, you get the set of nucleotides whose frequency is greater than average, written in IUPAC notation.
--split-contributionsโ Split the free energy contributions into separate parts (default=off) ๐ฐ- By default you only get the total energy contribution for each hit.
- With this option, that total gets split into the Nearest Neighbor model energy, the covariance pseudo energy, and, if it applies, a remaining pseudo energy from special constraints like probing signals such as SHAPE.
--noconvโ Don't automatically swapTforU(default=off) ๐ โโ๏ธ--auto-idโ Automatically generate an ID for each alignment (default=off) ๐ชช- The default vibe is that RNALalifold figures out an ID from the input alignment, as long as the input format allows it. Stockholm 1.0 formatted input usually comes with IDs like that.
- If you turn this flag on, RNALalifold ignores any IDs from the input and generates one for each alignment on its own.
--id-prefix=STRINGโ Prefix for automatically generated IDs (as used in output file names) (default=alignment) ๐ท๏ธ- Each alignment gets prefixed with the string you provide, so output files follow this naming scheme:
prefix_xxxx_ss.ps(secondary structure plot),prefix_xxxx_dp.ps(dot-plot),prefix_xxxx_aln.ps(annotated alignment), and so on. - In those names,
xxxxis the alignment number, starting with the second alignment in the input. - Pair this with
--continuous-idsif you want IDs to start from the first input alignment.
- Each alignment gets prefixed with the string you provide, so output files follow this naming scheme:
--id-delim=CHARโ Change the delimiter between the prefix and the increasing number for automatically generated IDs (as used in output file names) (default=_) โ๏ธ- The default
_is what sits between the prefix string and the counter. Swap it out here if you like.
- The default
--id-digits=INTโ Set how many digits the counter has in automatically generated alignment IDs (default=4) ๐ข- Numbers start at 1 and always get left-padded with zeros so they fill a set width.
- Pick the width you want, within the range
[1:18].
--id-start=LONGโ Set the first number in automatically generated alignment IDs (default=1) ๐- Alignment IDs usually start at 1, but you can choose your own starting number here.
- > Negative numbers are not allowed.
- Setting this implies continuous alignment IDs, which means it turns on the
--continuous-idsflag.
--filename-delim=CHARโ Change the delimiting character used in sanitized filenames (default=ID-delimiter) ๐งผ- This is the character that replaces invalid characters while filenames get sanitized.
- The default delimiter is ALWAYS the first character of the "ID delimiter" you pass through
--id-delim. - If the delimiter is a whitespace character or empty, invalid characters are just removed instead of being substituted.
- These characters count as illegal in filenames: backslash
\, slash/, question mark?, percent sign%, asterisk*, colon:, pipe symbol|, double quote", and triangular brackets<and>.
--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.
- > Log-level
5turns off all messages, even errors and other critical information.
--log-file[=filename]โ Print log messages to a file instead of stderr (default=RNALalifold.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. The Minimum free energy (MFE) and a structure representative are calculated in any case ๐งฎ
-L,--maxBPspan=INTโ Set the maximum allowed separation of a base pair to span (default=70) ๐- In other words, no pairs
(i,j)withj-i>spanwill be allowed.
- In other words, no pairs
--threshold=DOUBLEโ Set the energy threshold in kcal/mol per nucleotide (default=-0.1) ๐ก๏ธ- Secondary structure hits above this threshold get left out of the output.
-g,--gquadโ Incorporate G-Quadruplex formation into the structure prediction algorithm (default=off) ๐
โจ Structure Constraints โจ
Command line options to interact with the structure constraints feature of this program ๐ฆ
--shape=file1,file2โ Use SHAPE reactivity data to guide structure predictions ๐งช- You can specify multiple shapefiles for the individual sequences in the alignment as a comma separated list.
- You can also link a particular shape file to a specific sequence by putting the sequence number in front of the filename. For example,
5=seq5.shape,3=seq3.shapeassigns the reactivity values fromseq5.shapeto the fifth sequence in the alignment, and the values fromseq3.shapeto sequence 3. - If you don't specify any assignment, the reactivity values get assigned to the corresponding sequences in the order they're given.
--shapeMethod=D[mX][bY]โ Specify the method for converting SHAPE reactivity data into pseudo energy contributions (default=D) โก
Okay so the shape method bit is giving main character energy ๐
Right now there's only ONE data conversion method on the menu, and it's the one from Deigan et al 2009 ๐ฆ It's the default, and you can spot it by the capital D in the parameter, so --shapeMethod="D" is what you get if you don't touch anything ๐ You can also tweak the slope m and intercept b if the defaults aren't vibing with you. Otherwise they're m=1.8 and b=-0.6, same as in the paper I mentioned earlier ๐ To change them, like m=1.9 and b=-0.7, pass a string like --shapeMethod="Dm1.9b-0.7" โจ You can also set just one of them, like --shapeMethod="Dm1.9" or --shapeMethod="Db-0.7" ๐ธ
๐ Energy Parameters ๐
Energy parameter sets can be tweaked or loaded from your own input files, so you're in control ๐
-T,--temp=DOUBLEโ Rescale the energy parameters to a temperature of temp C. The 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 come with your distribution. Check the RNAlib documentation for the file format details. The placeholder file nameDNAlets you load DNA parameters without actually specifying any input file.-4,--noTetraโ Don't include the special tabulated stabilizing energies for tri-, tetra- and hexaloop hairpins ๐(default=off)Mostly for testing.--salt=DOUBLEโ Set the salt concentration in molar (M). The default is 1.021M.
๐ Model Details ๐
Tweak the energy model and pairing rules even more with these ๐
-d,--dangles=INTโ This decides how to treat "dangling end" energies for bases sitting next 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, that check gets skipped, and dangling energies are added for bases adjacent to a helix on both sides no matter what. This is the default for mfe and partition function folding (-p).-d0ignores dangling ends altogether (mostly for debugging ๐ ๏ธ). With-d3, mfe folding allows coaxial stacking of adjacent helices in multi-loops. Right now the implementation won't 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. The partition function uses the-d2setting, so dangling ends get treated differently between the two.
--noLPโ Produce structures without lonely pairs (helices of length 1) ๐ฆ(default=off)For partition function folding, this only disallows pairs that can only occur isolated. Other pairs may still occasionally show up as helices of length 1.--noGUโ Don't allow GU pairs ๐ โโ๏ธ(default=off)--noClosingGUโ Don't allow GU pairs at the end of helices ๐(default=off)--cfactor=DOUBLEโ Set the weight of the covariance term in the energy function.(default=`1.0')--nfactor=DOUBLEโ Set the penalty for non-compatible sequences in the covariance term of the energy function.(default=`1.0')-R,--ribosum_file=ribosumfileโ Use the specified Ribosum Matrix instead of the normal energy model ๐งฌ Matrices should be 6x6 matrices, and the order of the terms is'AU','CG','GC','GU','UA','UG'.-r,--ribosum_scoringโ Use the ribosum scoring matrix ๐ฅ(default=off)The matrix is picked based on the minimal and maximal pairwise identities of the sequences in the file.--nsp=STRINGโ Allow other pairs on top of the usual AU, GC, and GU pairs ๐ The argument is a comma separated list of additionally allowed pairs. If the first character is a-, thenABimplies thatABandBAare both allowed pairs, so--nsp="-GA"allows GA and AG pairs. Nonstandard pairs get 0 stacking energy.--energyModel=INTโ Set the energy model. This is a rarely used option for folding sequences from the artificial ABCD... alphabet, where A pairs with B, C with D, and so on. 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.
๐ Plotting ๐
Command line options for changing the default behaviour of structure layout and pairing probability plots ๐
--aln-EPS[=prefix]โ Produce colored, structure annotated subalignments for each hit ๐จ The default file name isaln_start_end.eps, where start and end are the first and last column of the subalignment relative to the input (1-based). You can change the filename toprefix_aln_start_end.epsby giving a prefix as the optional argument. Files get created in the current directory. Any special characters in the prefix get replaced by the filename delimiter, so there's no way to pass a whole directory path through this option yet ๐ (See also the--filename-delimparameter.)--aln-EPS-cols=INTโ Set the number of columns in colored EPS alignment output.(default=`60')A value less than 1 means the output won't be wrapped at all.--aln-EPS-ss[=prefix]โ Produce colored consensus secondary structure plots in PostScript format โจ The default file name isss_start_end.eps, where start and end are the first and last column of the subalignment relative to the input (1-based). You can change it toprefix_ss_start_end.epsby giving a prefix as the optional argument. Files get created in the current directory. Any special characters in the prefix get replaced by the filename delimiter, so no full directory paths through this option yet ๐ (See also the--filename-delimparameter.)--color-threshold=FLOATโ Set the threshold of maximum counter examples for coloring the consensus structure plot.(default=`2')Floating point numbers between 0 and 1 are treated as frequencies among all sequences in the alignment. Everything else gets truncated to an integer and used as an absolute number of counter examples.--color-min-sat=FLOATโ Set the minimum saturation for coloring the consensus structure plot.(default=`0.2')This is a floating point number that's>= 0and smaller than 1.
๐ REFERENCES ๐
If you use this program in your work, you might want to cite these bestie ๐ซถ
- 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
- I.L. Hofacker, B. Priwitzer, and P.F. Stadler (2004), "Prediction of Locally Stable RNA Secondary Structures for Genome-Wide Surveys", Bioinformatics: 20, pp 186-190
- Stephan H. Bernhart, Ivo L. Hofacker, Sebastian Will, Andreas R. Gruber, and Peter F. Stadler (2008), "RNAalifold: Improved consensus structure prediction for RNA alignments", BMC Bioinformatics: 9, pp 474
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
๐ AUTHOR ๐
Ivo L Hofacker, Ronny Lorenz ๐
๐ REPORTING BUGS ๐
If in doubt, our program is right and nature is at fault ๐ Comments should be sent to rna@tbi.univie.ac.at.
That's the whole page, bestie ๐ซถ This was the RNALalifold 2.7.0 edition from February 2026, so you're now officially up to date โจ Go be iconic ๐ ๐
๐ฆ 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