How maanrachid/sof works
SOF is a command-line tool for finding suffix–prefix overlaps among DNA sequences. A user supplies newline-separated sequences and selects thread count, minimum match length, sorting, distribution, and output format. The main workflow reads and encodes the sequences, optionally sorts them, builds a compact prefix tree, searches for overlaps, and reports the requested results. The README also documents FASTA conversion and random-input generation. Some orchestration calls and the generator implementation were not sampled, so those relationships are shown only where documented.
Main entry points: Apsp.cpp SOF CLI and workflow · converter_fasta_to_plain.cpp FASTA converter · gen Random input generator · Ctree.cpp Parallel overlap search
Components 12
Input preparation
- FASTA converter
converter_fasta_to_plain.cpp - Random input generator
gen
Overlap engine
- SOF CLI and workflow
Apsp.cpp - Encoded sequences
Apsp.cpp - Sequence sorting
Apsp.cpp - Compact prefix tree
Ctree.cpp - Parallel overlap search
Ctree.cpp - Overlap results
Ctree.cpp
Runtime support
- Encoding and bit tools
Tools.cpp - Timing utilities
testutils.cpp
Other components
- CLI user
- Sequence file
Connections 13
- CLI user → SOF CLI and workflow: runs
README.txt - CLI user → Sequence file: provides
README.txt - Sequence file → SOF CLI and workflow: reads
Apsp.cpp - SOF CLI and workflow → Encoded sequences: encodes
Apsp.cpp - SOF CLI and workflow → Sequence sorting: optionally sorts
Apsp.cpp - SOF CLI and workflow → Compact prefix tree: constructs
Apsp.cpp - SOF CLI and workflow → Parallel overlap search: runs
README.txt - Parallel overlap search → Overlap results: reports
Ctree.cpp - CLI user → FASTA converter: runs
README.txt - FASTA converter → Sequence file: converts to
README.txt - CLI user → Random input generator: runs
README.txt - Random input generator → Sequence file: generates
README.txt - SOF CLI and workflow → Timing utilities: measures with
Apsp.cpp