#!/usr/bin/env python3
"""Re-run the whole analysis from the raw sources: python run_all.py

Steps: build curated tables -> verify them against the source transcriptions -> statistics -> figures.
Requires Python >= 3.10 with numpy, scipy and matplotlib (versions used: environment/environment.txt).
Runtime is about 20 seconds with the default 1,000,000 Monte Carlo replicates (MENDEL_MC_REPS to change).
"""
import pathlib, runpy

ROOT = pathlib.Path(__file__).resolve().parent
for script in ("01_build_curated_data.py", "02_verify_sources.py", "03_analysis.py", "04_figures.py"):
    print(f"--- {script}")
    runpy.run_path(str(ROOT / "code" / script), run_name="__main__")
