How vidyakamath/hirschviz works
HirschViz is a DNA global-alignment algorithm visualizer and comparison tool. Its principal workflow accepts two sequences and an output directory, computes Hirschberg’s recursive split process, and produces a recursion-tree image and animations of the recursive alignment tables. A separate benchmark workflow compares Hirschberg with Needleman–Wunsch for scores, alignments, memory, and runtime; the README also documents plotted benchmark results. Source excerpts show the main entry points and algorithm implementations, but not every visualization detail, so the graph limits links to documented or indexed relationships.
Main entry points: run_benchmark.py Benchmark runner · hirschberg_viz.py Recursive visualization · score_functions.py DNA scoring functions · hirschviz.py Visualization CLI
Components 10
Hirschberg visualization
- Visualization CLI
hirschviz.py - Recursive visualization
src/hirschberg_viz.py - Image and animation files
Alignment algorithms
- Hirschberg alignment
src/hirschberg.py - Needleman–Wunsch
src/needleman_wunsch.py - DNA scoring functions
src/score_functions.py
Benchmarking
- Benchmark runner
run_benchmark.py - Benchmark CSV results
- Benchmark plots
src/plot.py
Other components
- Sequence user
Connections 11
- Sequence user → Visualization CLI: provides sequences
README.md - Visualization CLI → Recursive visualization: calls visualization
hirschviz.py - Recursive visualization → DNA scoring functions: loads DNA scores
src/hirschberg_viz.py - Recursive visualization → Image and animation files: writes animations
README.md - Hirschberg alignment → DNA scoring functions: loads DNA scores
src/hirschberg.py - Needleman–Wunsch → DNA scoring functions: loads DNA scores
src/needleman_wunsch.py - Sequence user → Benchmark runner: sets benchmark range
README.md - Benchmark runner → Hirschberg alignment: measures alignment
run_benchmark.py - Benchmark runner → Needleman–Wunsch: measures alignment
run_benchmark.py - Benchmark runner → Benchmark CSV results: writes measurements
run_benchmark.py - Benchmark CSV results → Benchmark plots: reads benchmark data
src/plot.py