How denishanch/efsa_pipeline works
EFSA Pipeline is a Nextflow DSL2 genomics workflow. Users provide read/genome files and a JSON configuration; validation normalizes and checks inputs, then enabled short-read, long-read, and reference-versus-modified analyses run, producing quality, mapping, variant, and structural-variant outputs. The graph includes the documented branches and the sampled validation internals. Validation source excerpts are partial; links for unsampled analysis stages rely on the README’s workflow description rather than inspected implementation.
Main entry points: main.py Validation runner · analysis.nf Analysis orchestration · short_read.nf Short-read workflow · long_read.nf Long-read workflow
Components 22
Pipeline entry
- Nextflow entry
main.nf - Analysis orchestration
workflows/analysis.nf - SV table aggregation
modules/utils/create_sv_output.py
Input validation
- Validation runner
modules/validation/main.py - Config manager
modules/validation/validation-pkg/validation_pkg/config_manager.py - Genome validators
modules/validation/validation-pkg/validation_pkg/validators - Read validators
modules/validation/validation-pkg/validation_pkg/validators - Inter-file checks
modules/validation/validation-pkg/validation_pkg/validators/interfile_genome.py - Validation utilities
modules/validation/validation-pkg/validation_pkg/utils - Nextflow parameters
modules/validation/utils/nextflow_params_handler.py - Reference defragmentation
modules/validation/utils/ref_defragment.py
Short-read analysis
- Short-read workflow
workflows/short_read.nf - Read QC and trimming
modules/qc.nf - Read mapping
modules/mapping.nf - Variant calling
modules/variant_calling.nf - SV calling
modules/sv_calling.nf
Long-read analysis
- Long-read workflow
workflows/long_read.nf - Assembly analysis
modules/assembly.nf
Genome comparison
- Reference comparison
workflows/fasta_ref_x_mod.nf
Other components
- Pipeline user
- Input files and config
data/inputs - Pipeline outputs
Connections 26
- Pipeline user → Input files and config: provides
README.md - Input files and config → Nextflow entry: starts run
README.md - Nextflow entry → Validation runner: validates first
README.md - Validation runner → Config manager: loads configuration
modules/validation/main.py - Validation runner → Genome validators: validates genomes
modules/validation/main.py - Validation runner → Read validators: validates reads
- Validation runner → Inter-file checks: checks consistency
- Validation runner → Reference defragmentation: prepares reference
modules/validation/main.py - Config manager → Validation utilities: uses helpers
modules/validation/validation-pkg/validation_pkg/config_manager.py - Genome validators → Validation utilities: uses helpers
modules/validation/validation-pkg/validation_pkg/validators/genome_validator.py - Read validators → Validation utilities: uses helpers
modules/validation/validation-pkg/validation_pkg/validators/read_validator.py - Validation runner → Nextflow parameters: writes parameters
modules/validation/main.py - Validation runner → Analysis orchestration: enables branches
README.md - Analysis orchestration → Short-read workflow: runs if enabled
README.md - Analysis orchestration → Long-read workflow: runs if enabled
README.md - Analysis orchestration → Reference comparison: runs if enabled
README.md - Short-read workflow → Read QC and trimming: quality controls
- Short-read workflow → Read mapping: maps reads
- Short-read workflow → Variant calling: calls variants
- Short-read workflow → SV calling: calls SVs
- Long-read workflow → Read mapping: maps reads
- Long-read workflow → SV calling: calls SVs
- Long-read workflow → Assembly analysis: analyzes assembly
- Reference comparison → SV calling: analyzes variants
- Analysis orchestration → SV table aggregation: aggregates tables
README.md - SV table aggregation → Pipeline outputs: writes tables
README.md