Files
eDNA_Stream_E01/workflow/config/main.yaml
T
Tom Kasper 523667afac Use the lr:hq aligner preset everywhere (R10.4.1 / V14 chemistry)
Single config knob align_preset (default lr:hq) now drives all three
aligner invocations: dorado's native --mm2-opts, the minimap2 .mmi index
build (index options are stored in the .mmi and would otherwise override
the mapping preset) and the rocm fallback chain. Replaces the map-ont
default that kept reappearing from the design doc's labelling section.
2026-10-16 20:11:00 +01:00

81 lines
3.4 KiB
YAML

# Hardware: 'cuda' (host dorado) is the runner-system path. This box has no
# usable GPU, so development/dry-runs stay on the torch-cpu env; the runner
# executes the GPU trainings with:
# snakemake ... --config torch_env=../envs/torch_cuda.yaml
gpu_stack: "cuda" # 'cuda' or 'rocm'
torch_env: "../envs/torch_cpu.yaml" # swap to ../envs/torch_cuda.yaml on the runner
tmp_dir: "/tmp"
seed: 0
# basecalling / labelling (host dorado >= 2.0; conda env only adds minimap2/samtools)
dorado_model_dir: "../dorado_models"
hac_model_name: "dna_r10.4.1_e8.2_400bps_hac@v6.0.0" # probe labels / stores
hac_benchmarks_file: "../reference/dorado_batchsize_files/rtx4060ti_16gb_hac6.benchmarks" # empty to disable
hac_min_q: 9 # "" or 0 to disable
fast_model_name: "dna_r10.4.1_e8.2_400bps_fast@v5.2.0" # v2 alignment baseline
fast_benchmarks_file: "" # add path if available
fast_min_q: 8 # "" or 0 to disable
minimap_extra: "-N 10" # secondary alignments kept for label-QC visibility
# Alignment preset — single knob for every aligner invocation (dorado --mm2-opts,
# the minimap2 index build and the rocm fallback chain). R10.4.1 / V14 chemistry
# data: lr:hq per ONT's recommendation (map-ont is the pre-V14 default).
align_preset: "lr:hq"
# dataset wiring
pod5_dataset: "nomiss_96BC_P2I_SUP_2026"
pod5_dataset_size: 293 # pod5 chunks in the ONT open-data set
pod5_stride: 12 # pod5-level downsampling (1-in-x chunks)
trap_dataset_size: 1717
trap_pod5_stride: 72
barcoding_kit:
nomiss: "SQK-RBK114-96" # classification during basecaller -> per-read barcode tags
trap: "" # public single-sample E. coli run, no barcoding
# signal-store building (custom_models ExtractConfig)
store_excludes:
nomiss:
refs: ["dcs"] # ONT DCS spike-in contig (would rack up no-class reads)
genera: ["escherichia"] # in-corpus trap-genus reads (E. coli) -> TP1 positives only, never training data
trap:
refs: ["dcs"]
genera: []
max_windows_per_read: 4 # windows-ablation (A') store; headline store keeps 1
# probe / compute
budget_tolerance: 0.1
bootstrap_n: 10000
gate_chance_tol: 1.5
min_test_windows: 300 # v2 near-clade safety rule
# E1 v2 run matrix (E1_v2_eleven_taxa_redesign.md §4.1)
ladder:
arches: ["cnn", "linatt"]
budgets: [1000000, 5000000, 20000000]
strides: [4, 8]
control: # v2: shuffled-label control = 1M cnn, s4, g11
arch: "cnn"
budget: 1000000
stride: 4
# Stage B: leave empty until the Stage-A winner is picked from the ladder
# reports, then rerun the workflow with e.g.
# snakemake ... --config stage_b_arch=cnn stage_b_budget=5000000 stage_b_stride=4 \
# windows_ablation=True holdout_runs=True core_clade=True
stage_b_arch: ""
stage_b_budget: ""
stage_b_stride: ""
windows_ablation: false
windows_ablation_secondary_budget: "" # optional extra ablation row
holdout_runs: false # barcode-level holdout robustness variant
core_clade: false # 8-genera Pseudomonadota-only training (family-block diagnosis)
bacillus_group: false # optional 3-genera Bacillota-only training
# genus lists as they appear in labels (lowercase, from the panel FASTA headers);
# the 6-way Enterobacteriaceae block inside the core clade is the monopoliser probe
core_clade_genera: [cronobacter, citrobacter, enterobacter, klebsiella, pseudomonas, salmonella, shigella, vibrio]
bacillus_group_genera: [bacillus, listeria, staphylococcus]
# trap genera present as references in the panel (TP1); Paenibacillus/Aeromonas deferred
trap_genera: ["escherichia"]