How ablab/spades works
SPAdes is a sequencing-data toolkit centered on de novo assembly. Users provide read libraries and select an assembly mode; the SPAdes pipeline configures and runs graph-based assembly stages and emits contigs, scaffolds, and assembly graphs. The repository also documents specialized assembly modes and standalone analysis utilities. The graph combines documented capabilities with relationships visible in the supplied excerpts and SOURCE INDEX; unsampled stage internals and the executable-to-pipeline handoff are not asserted.
Main entry points: pipeline.cpp SPAdes pipeline · graph.hpp Assembly graph · pipeline.py Python CLI · stage.hpp Stage manager
Components 20
Inputs and configuration
- Read libraries
src/common/library/library.hpp - Run options
src/projects/spades/pipeline/spades_pipeline/options_storage.py - Python CLI
src/projects/spades/pipeline/spades_pipeline/stages/pipeline.py - Assembly configuration
src/common/configs/config_struct.hpp
Assembly runtime
- SPAdes pipeline
src/projects/spades/pipeline.cpp - Stage manager
src/common/pipeline/stage.hpp - Graph pack
src/common/pipeline/graph_pack.hpp - Assembly graph
src/common/assembly_graph/core/graph.hpp - Graph ID storage
src/common/assembly_graph/core/id_storage.hpp - K-mer mapping
src/common/alignment/kmer_mapper.hpp - Long-read paths
src/common/alignment/long_read_storage.hpp - Graph simplification
src/common/stages/simplification.hpp - Assembly outputs
src/projects/spades/contig_output_stage.hpp
Specialized modes
- Assembly modes
src/projects/spades - HPC assembly
src/projects/hpcspades/pipeline.cpp - HMM search
ext/src/hmmer/src/p7_pipeline.c
Standalone tools
- Contig visualization
src/tools/contig_analysis/visualizer/main.py - Read coverage tools
src/tools/reads_utils/stat - SPlitteR
src/projects/splitter/main.cpp
Other components
- Sequencing user
Connections 18
- Sequencing user → Python CLI: supplies reads and options
- Python CLI → Run options: uses options
src/projects/spades/pipeline/spades_pipeline/stages/pipeline.py - Sequencing user → Read libraries: provides libraries
- SPAdes pipeline → Assembly configuration: reads settings
src/projects/spades/pipeline.cpp - SPAdes pipeline → Stage manager: registers stages
src/projects/spades/pipeline.cpp - Stage manager → Graph pack: passes graph pack
src/common/pipeline/stage.hpp - Graph pack → Assembly graph: holds graph state
- Assembly graph → Graph ID storage: uses ID storage
src/common/assembly_graph/core/graph.hpp - SPAdes pipeline → Graph simplification: registers simplification
src/projects/spades/pipeline.cpp - SPAdes pipeline → Assembly outputs: registers output stage
src/projects/spades/pipeline.cpp - SPAdes pipeline → Assembly modes: selects assembly modes
src/projects/spades/pipeline.cpp - SPAdes pipeline → HPC assembly: offers HPC variant
- Sequencing user → HMM search: runs HMM-guided assembly
- Sequencing user → Contig visualization: uses analysis tools
- Sequencing user → Read coverage tools: uses analysis tools
- Sequencing user → SPlitteR: uses SPlitteR
- Assembly graph → K-mer mapping: supports read mapping
- Assembly graph → Long-read paths: stores read paths