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:
@@ -146,7 +146,7 @@ if GPU_STACK == "cuda":
|
||||
benchmarking=get_benchmarking_file,
|
||||
min_q=get_qscore,
|
||||
kit_flag=get_kit_flag,
|
||||
mm2_opts=config["dorado_mm2_opts"],
|
||||
mm2_opts=f"-x {config['align_preset']} {config['minimap_extra']}",
|
||||
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}
|
||||
@@ -194,7 +194,7 @@ elif GPU_STACK == "rocm":
|
||||
"../envs/minimap.yaml"
|
||||
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:
|
||||
|
||||
@@ -80,5 +80,5 @@ rule create_minimap_index:
|
||||
"../envs/minimap.yaml"
|
||||
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