How genepi/nf-gwas works
Main Components Identification
The system should be represented as a pipeline with the following major components:
a) Input Processing Layer
• Input validation modules
• Data preprocessing components
• File format conversion utilities
b) Core Analysis Layer
• REGENIE analysis components (Step 1 and Step 2)
• Gene-based testing modules
• Single variant testing modules
• Interaction testing components
c) Post-processing Layer
• Results annotation
• Filtering mechanisms
• Liftover functionality
• Results merging
d) Reporting Layer
• Interactive visualization components
• Statistical reporting
• Web-based result navigation
Input Data → Preprocessing → Core Analysis → Post-processing → Reporting
Specific Components
a) Input Section:
• Input file types (VCF, BGEN, PLINK)
• Phenotype and covariate validation
• Quality control workflows
b) Processing Section:
• Chunking workflow
• Pruning workflow
• Quality control workflow
c) Analysis Section:
• REGENIE Step 1 (prediction model)
• REGENIE Step 2 (association testing)
• Gene-based testing
• Single variant testing
d) Post-processing Section:
• Results annotation
• Filtering
• Liftover
• Results merging
e) Reporting Section:
• Manhattan plot generation
• Statistical summaries
• Interactive web reports
Important Connections
• Parallel processing capabilities
• Data transformation points
• Where results are merged or split
Technical Details
• Nextflow workflow engine integration
• Container support (Docker/Singularity)
• Resource management connections
• File system interactions
Additional Elements
• Version information
• Configuration points
• Where logging occurs