rnadistance
Quick Start
- Command:
RNAdistance [OPTION]... - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/RNAdistance - Full reference: See references/help.md for complete options
When To Use This Tool
- Quantify how different two RNA secondary structures are.
- Compare structures with base-pair distance or tree/string-edit representations.
- Switch to Shapiro's coarse-grained cost matrix with
-Swhen you care about abstract motifs. - Emit aligned backtracks to inspect which substructures match.
Common Patterns
# 1) Compute default distances between two structures from stdin
printf '(((...)))\n((.....))\n' | RNAdistance
# 2) Choose a specific distance representation
printf '(((...)))\n((.....))\n' | RNAdistance -D f -X p
# 3) Write an aligned backtrack to a file
printf '(((...)))\n((.....))\n' | RNAdistance -B=alignment.txt
Recommended Workflow
- Prepare RNA secondary structure inputs to compare
- Select distance representation with
-D(defaultf) and comparison directive with-X(defaultp) - Run
RNAdistancewith structures via stdin, optionally enabling-Sfor Shapiro's cost matrix or-Bfor backtrack output - Interpret distance values; use backtracking output to visualize structural matches
Guardrails
- Do not use base pair distance for structures of different lengths (not recommended per documentation)
- Provide RNA secondary structures via stdin before invoking
- Specify output filename with
-B=<filename>if alignment/backtrack output is needed