How songlab-cal/gpn works
Main Components
a) Core Components:
• Model Architecture Layer
• GPN-SS (Single Sequence) Module
• GPN-MSA (Multiple Sequence Alignment) Module
• Encoder Options (ConvNet, RoFormer, ByteNet)
• Data Processing Pipeline
• Training Infrastructure
• Inference Pipeline
• Variant Effect Prediction System
b) Supporting Components:
• Dataset Generation Workflow
• Embedding Extraction System
• Analysis Tools
• Integration Points
┌─────────────────────────────────────────────────┐
• Input Layer │
• (DNA Sequences, Variants, Multiple Alignments) │
• ┘
• ↓
┌─────────────────────────────────────────────────┐
• Processing Layer │
• ┌─────────────┐ ┌─────────────┐ │
• GPN-SS │ │ GPN-MSA │ │
• ┘ └─────────────┘ │
• ┘
• ↓
┌─────────────────────────────────────────────────┐
• Output Layer │
• (Embeddings, Variant Effects, Predictions) │
• ┘
Component Details
• Blue: Core model components
• Green: Data processing components
• Orange: Analysis tools
• Purple: Integration points
• Gray: Supporting infrastructure
Key Relationships to Highlight
a) Data Flow:
• How data moves from raw input through the processing pipeline
• Where transformations occur
• Points where different components interact
b) Processing Paths:
• Distinguish between GPN-SS and GPN-MSA workflows
• Parallel processing capabilities
• Batch processing routes
Technical Details
• PyTorch integration points
• GPU utilization paths
• Batch processing specifications
• Model architecture options
• Data format transformations
Implementation Notes
• The modular nature of the system (shown by the file structure in gpn/)
• The workflow automation (evidenced by Snakemake usage)
• The analysis capabilities (shown in the analysis/ directory)
• The example implementations (as seen in examples/)