How cgps-discovery/ghru-assembly works
Main System Components
a) Input Layer:
• Samplesheet.csv as the primary input source
• Three possible input types (short reads, long reads, or both)
• Optional inputs (adapter file, medaka model)
b) Pipeline Control Layer:
• Main.nf as the central orchestrator
• Nextflow.config and base.config as configuration components
• Workflow selection logic (sr_assembly.nf, lr_assembly.nf, hybrid_assembly.nf)
c) Processing Modules Layer:
Modules into functional groups:
• Preprocessing modules (short_reads_preprocess.nf, long_reads_preprocess.nf)
• Assembly modules (short_read_assembly.nf, long_read_assembly.nf, hybrid_assemblers.nf)
• Quality Control modules (quast.nf, contamination.nf, assembly_depth.nf)
• Analysis modules (speciation.nf, qualifyr.nf)
d) Container Layer:
• Docker containers (speciator, kmc, bash_container)
Flow Representation
Three main workflow paths:
Short Reads Path
• Input → short_reads_preprocess → Shovill assembly → QC
Long Reads Path
• Input → long_reads_preprocess → Dragonflye assembly → QC
Hybrid Path
• Input → both preprocessors → Unicycler assembly → QC
Additional Details
Elements in separate panels or callouts:
• Resource requirements (10 cores, 16GB RAM, 50GB storage)
• Supported platforms (Linux/WSL)
• Pipeline version information
• Key configuration parameters
Notes for Implementation
• Keep the main flow clear and centered
• Use consistent spacing and alignment
• Version numbers for key components
• Error handling paths
• Parallel processing capabilities
• Optional components clearly