swaruplab/operon/rna-structure-secondary-structure-prediction
Claude Code and agent skill by swaruplab/operon
- community
Checking that the SKILL.md file is still in the repository.
Predicts RNA secondary structures using minimum free energy folding and partition function analysis with ViennaRNA (RNAfold, RNAalifold, RNAcofold). Computes base-pair probabilities, centroid structures, and consensus structures from alignments. Use when predicting RNA folding, evaluating structural stability, or comparing structures across homologs.
Install
npx vskill@latest install swaruplab/operon/rna-structure-secondary-structure-predictionSKILL.md
The same SKILL.md was published earlier as swaruplab/operon/rna-structure-secondary-structure-prediction.
Version Compatibility
Reference examples tested with: Infernal 1.1+, matplotlib 3.8+, numpy 1.26+
Before using code patterns, verify installed versions match. If versions differ:
- Python:
pip show <package>thenhelp(module.function)to check signatures - CLI:
<tool> --versionthen<tool> --helpto confirm flags
If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
Secondary Structure Prediction
"Predict the secondary structure of my RNA sequence" -> Compute minimum free energy (MFE) folding, base-pair probabilities via partition function, and consensus structures from alignments using thermodynamic models.
- CLI:
RNAfoldfor single-sequence MFE/partition folding - CLI:
RNAalifoldfor consensus structure from alignment - CLI:
RNAcofoldfor RNA-RNA interaction structure
Predict RNA secondary structures using thermodynamic models. ViennaRNA provides MFE folding, partition function analysis, consensus structure prediction from alignments, and RNA-RNA interaction prediction.
RNAfold: Single Sequence Folding
MFE Structure
Key RNAfold Options
| Option | Description | |
|---|---|---|
-p | Compute partition function and base-pair probabilities | |
--MEA | Compute maximum expected accuracy structure | |
-d2 | Dangling end energies on both sides of helices (default) | |
-T 37 | Temperature in Celsius (default: 37) | |
--noLP | No lonely pairs (isolated base pairs) | |
--noPS | Suppress PostScript output files | |
-C | Read structure constraints from input | |
--shape | Incorporate SHAPE reactivity data |
Constrained Folding
RNAalifold: Consensus Structure from Alignment
Predicts a consensus structure from a multiple sequence alignment, combining thermodynamic stability with covariation evidence.
| Option | Description | |
|---|---|---|
--cfactor | Covariation weight (default: 1.0, lower = more thermodynamic) | |
--nfactor | Non-compatible penalty (default: 1.0) | |
--ribosum_scoring | Use RIBOSUM matrices for covariation | |
-p | Partition function for consensus |
RNAcofold: RNA-RNA Interaction
Predicts the hybridization structure of two RNA molecules.
LinearFold: Fast Folding for Long Sequences
For sequences longer than ~5,000 nt, LinearFold provides O(n) time complexity instead of O(n^3).
ViennaRNA Python API
Folding with Constraints (Python)
SHAPE-Constrained Folding (Python)
Structure Comparison
Structure Formats
| Format | Description | Example | |
|---|---|---|---|
| Dot-bracket | Parentheses for pairs, dots for unpaired | (((...))) | |
| CT (connect) | Tab-delimited: index, base, prev, next, pair, index | Standard for mfold | |
| BPSEQ | Three columns: position, nucleotide, pair partner (0=unpaired) | Used by comparative databases | |
| WUSS | Extended dot-bracket with pseudoknot notation | <<..AA..>>..aa |
Format Conversion
Visualization
Forna (web-based)
R2DT (standardized 2D layouts)
Matplotlib Dot Plot
Quality Thresholds
| Metric | Threshold | Rationale | |
|---|---|---|---|
| MFE z-score | < -2.0 | Sequence folds significantly better than shuffled controls | |
| Ensemble diversity | < 5.0 | Low diversity indicates a well-defined structure | |
| Base-pair probability | > 0.9 | High confidence for individual pairs | |
| Covariation score | > 0.0 | Positive covariation supports predicted pair |
Related Skills
- ncrna-search - Classify structured RNAs by family using Infernal/Rfam
- structure-probing - Use experimental SHAPE/DMS data to constrain predictions
- genome-annotation/ncrna-annotation - Genome-wide ncRNA annotation
- sequence-manipulation/sequence-properties - Sequence composition analysis
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingprotocols/rna-structure-secondary-structure-prediction/SKILL.md
Popularity
- Repository stars
- 99
- Repository forks
- 11
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/swaruplab/operon/rna-structure-secondary-structure-prediction)