Skip to content

Commit

Permalink
making plastid optional
Browse files Browse the repository at this point in the history
  • Loading branch information
LiaOb21 committed Feb 22, 2024
1 parent 9d77c90 commit 569439b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion workflow/rules/oatk.smk
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ rule run_oatk:
"logs/oatk.log"
conda:
"../envs/oatk.yaml"
params:
optional_params=" ".join(
f"{k} {v}" for k, v in config["oatk"]["optional_params"].items() if v
)
shell:
"""
oatk -k {config[oatk][k]} -c {config[oatk][c]} -t {config[oatk][t]} -m {config[oatk][m]} -p {config[oatk][p]} {input} >> {log} 2>&1
oatk -k {config[oatk][k]} -c {config[oatk][c]} -t {config[oatk][t]} -m {config[oatk][m]} {params.optional_params} {input} >> {log} 2>&1
mv oatk.asm* results/oatk/ >> {log} 2>&1
"""

0 comments on commit 569439b

Please sign in to comment.