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.
This commit is contained in:
@@ -17,8 +17,11 @@ 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_model_name: "dna_r10.4.1_e8.2_400bps_fast@v5.2.0" # v2 alignment baseline
|
||||||
fast_benchmarks_file: "" # add path if available
|
fast_benchmarks_file: "" # add path if available
|
||||||
fast_min_q: 8 # "" or 0 to disable
|
fast_min_q: 8 # "" or 0 to disable
|
||||||
minimap_extra: "-N 10" # minimap2 secondary alignments kept for label-QC visibility (rocm branch)
|
minimap_extra: "-N 10" # secondary alignments kept for label-QC visibility
|
||||||
dorado_mm2_opts: "-x map-ont -N 10" # mm2 options for dorado's native aligner (--reference; overrides the lr:hq default)
|
# 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
|
# dataset wiring
|
||||||
pod5_dataset: "nomiss_96BC_P2I_SUP_2026"
|
pod5_dataset: "nomiss_96BC_P2I_SUP_2026"
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ if GPU_STACK == "cuda":
|
|||||||
benchmarking=get_benchmarking_file,
|
benchmarking=get_benchmarking_file,
|
||||||
min_q=get_qscore,
|
min_q=get_qscore,
|
||||||
kit_flag=get_kit_flag,
|
kit_flag=get_kit_flag,
|
||||||
mm2_opts=config["dorado_mm2_opts"],
|
mm2_opts=f"-x {config['align_preset']} {config['minimap_extra']}",
|
||||||
shell:
|
shell:
|
||||||
"""
|
"""
|
||||||
dorado basecaller --models-directory {config[dorado_model_dir]} --emit-cram {params.benchmarking} {params.min_q} {params.kit_flag} --reference {input.ref} --mm2-opts "{params.mm2_opts}" {params.dorado_model} {input.pod5} > {output}
|
dorado basecaller --models-directory {config[dorado_model_dir]} --emit-cram {params.benchmarking} {params.min_q} {params.kit_flag} --reference {input.ref} --mm2-opts "{params.mm2_opts}" {params.dorado_model} {input.pod5} > {output}
|
||||||
@@ -194,7 +194,7 @@ elif GPU_STACK == "rocm":
|
|||||||
"../envs/minimap.yaml"
|
"../envs/minimap.yaml"
|
||||||
shell:
|
shell:
|
||||||
"""
|
"""
|
||||||
minimap2 -ax map-ont {params.minimap_extra} -t {threads} {input.ref} {input.fastq} > {output}
|
minimap2 -a -x {config[align_preset]} {params.minimap_extra} -t {threads} {input.ref} {input.fastq} > {output}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
rule convert_sam_to_bam:
|
rule convert_sam_to_bam:
|
||||||
|
|||||||
@@ -80,5 +80,5 @@ rule create_minimap_index:
|
|||||||
"../envs/minimap.yaml"
|
"../envs/minimap.yaml"
|
||||||
shell:
|
shell:
|
||||||
"""
|
"""
|
||||||
minimap2 -x map-ont -t {threads} -d {output} {input}
|
minimap2 -x {config[align_preset]} -t {threads} -d {output} {input}
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user