"""E1 (v2) squiggle-probe workflow — eDNA_Stream_E01. Invoke from `workflow/` (see the repo README). The rule modules are brought into a single namespace with plain `include:` (Snakemake modules would give each file its own globals and the ML rules would lose the shared helpers). Run matrix (E1_v2_eleven_taxa_redesign.md §4.1): Stage A: data (download pod5 -> basecall+align -> label parquet -> signal store, incl. the trap store), label-side QC (TP1), the 12-point arch/param ladder, the shuffled-label control, per-run test evaluation with the trap store (TP2), and the gate verdict. Stage B: after the Stage-A winner is picked (report.json of the ladder runs), rerun with --config stage_b...=... to add the windows ablation (store with max_windows_per_read=4 when requested), the robustness variants (holdout_runs / core_clade / bacillus_group) and the alignment baseline (dorado-fast + minimap2 + LCA) on the identical test read set of the winner. """ import os from dotenv import load_dotenv load_dotenv() configfile: "config/main.yaml" configfile: "config/dependencies.yaml" configfile: "../reference/species_list.yaml" include: "rules/preparation.smk" include: "rules/baseline_pipeline.smk" include: "rules/ml_pipeline.smk" rule all: default_target: True input: STAGE_A_TARGETS + STAGE_B_TARGETS