How rjpenic/rafo works
RAFO predicts RNA 3D structures from sequence and also provides dataset preparation, training, evaluation, inference, and structure-refinement workflows. The graph follows documented entry points and relationships visible in excerpts or the SOURCE INDEX; some internal wiring and unsampled capabilities are represented only at the subsystem level.
Main entry points: model.py RNA folding model · model_wrapper.py Lightning model wrapper · run.py Run CLI · pipelines.py Preparation pipelines
Components 26
Data preparation
- Preparation pipelines
rafo/data/preparation/pipelines.py - Preparation steps
rafo/data/preparation/steps.py - Quality filters
rafo/data/preparation/filters.py - Dataset paths
rafo/data/data_access.py - Data module
rafo/data/datamodule.py - Structure and sequence datasets
rafo/data/dataset.py
Model runtime
- RNA folding model
rafo/model/model.py - Sequence embedders
rafo/model/embedders.py - Evoformer blocks
rafo/model/evoformer.py - Recycling
rafo/model/recycling.py - Prediction heads
rafo/model/heads.py - Structure module
rafo/model/structure_module.py
Training and evaluation
- Model and loss presets
rafo/config.py - Lightning model wrapper
rafo/lightning/model_wrapper.py - Structure losses
rafo/utils/loss.py - Evaluation metrics
rafo/utils/metrics.py
Structure utilities
- Secondary-structure features
rafo/utils/sec_struct.py - Structure prediction tools
rafo/utils/external_tools.py - Atom construction
rafo/utils/spatial/struct_constructor.py
User tools
- Prepare data CLI
prepare_data.py - Run CLI
run.py - Structure refinement
scripts/refine_structs.py - Structure evaluation script
scripts/eval.py
Other components
- RNA researcher
- PDB / RNA 3D Hub
- Predicted structures
Connections 31
- RNA researcher → Prepare data CLI: prepares data
- Prepare data CLI → Preparation pipelines: selects pipeline
prepare_data.py - Preparation pipelines → Preparation steps: runs steps
rafo/data/preparation/pipelines.py - Preparation pipelines → Quality filters: configures filters
rafo/data/preparation/pipelines.py - Preparation pipelines → Dataset paths: uses paths
rafo/data/preparation/pipelines.py - Preparation steps → Dataset paths: reads and writes
rafo/data/preparation/steps.py - Preparation steps → PDB / RNA 3D Hub: downloads structures
rafo/data/preparation/steps.py - RNA researcher → Run CLI: runs workflow
- Run CLI → Model and loss presets: selects preset
run.py - Run CLI → Data module: configures data
run.py - Data module → Dataset paths: resolves paths
rafo/data/datamodule.py - Data module → Structure and sequence datasets: loads examples
rafo/data/datamodule.py - Structure and sequence datasets → Secondary-structure features: builds features
rafo/data/dataset.py - Lightning model wrapper → RNA folding model: invokes model
rafo/lightning/model_wrapper.py - Lightning model wrapper → Structure losses: computes loss
rafo/lightning/model_wrapper.py - Lightning model wrapper → Evaluation metrics: logs metrics
rafo/lightning/model_wrapper.py - RNA folding model → Sequence embedders: builds embeddings
rafo/model/model.py - RNA folding model → Evoformer blocks: updates representations
rafo/model/model.py - RNA folding model → Recycling: recycles features
rafo/model/model.py - RNA folding model → Prediction heads: produces predictions
rafo/model/model.py - RNA folding model → Structure module: predicts coordinates
rafo/model/model.py - Structure module → Atom construction: constructs atoms
rafo/model/structure_module.py - RNA researcher → Run CLI: requests predictions
- Run CLI → Lightning model wrapper: runs fit test predict
run.py - Lightning model wrapper → Predicted structures: saves structures
rafo/lightning/model_wrapper.py - RNA researcher → Structure evaluation script: evaluates structures
- Structure evaluation script → Predicted structures: scores predictions
- RNA researcher → Structure refinement: refines predictions
- Structure refinement → Predicted structures: writes refined structures
- Preparation steps → Structure prediction tools: calculates features
rafo/data/preparation/steps.py - Structure prediction tools → Predicted structures: refines structures