From 55e85b7f3c1724191cfa57228d28daa1a8ca97ed Mon Sep 17 00:00:00 2001 From: LiaOb21 Date: Tue, 9 Apr 2024 19:04:47 +0100 Subject: [PATCH] added rule for bandage --- workflow/rules/bandage.smk | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 workflow/rules/bandage.smk diff --git a/workflow/rules/bandage.smk b/workflow/rules/bandage.smk new file mode 100644 index 0000000..52c8275 --- /dev/null +++ b/workflow/rules/bandage.smk @@ -0,0 +1,37 @@ +rule bandage: + input: + "results/oatk/oatk.asm.mito.gfa" + output: + "results/bandage/mito.jpg" + threads: config["fastp"]["t"] + log: + "logs/bandage.log", + resources: + mem_mb=config['fastp']['mem_mb'], # access memory from config + conda: + "../envs/bandage.yaml" + shell: + """ + Bandage image {input} {output} + """ + + +rule bandage_pltd: + input: + mito_gfa = "results/oatk_pltd/oatk.asm.mito.gfa", + pltd_gfa = "results/oatk_pltd/oatk.asm.pltd.gfa" + output: + mito_out = "results/bandage_pltd/mito.jpg", + pltd_out = "results/bandage_pltd/pltd.jpg" + threads: config["fastp"]["t"] + log: + "logs/bandage.log", + resources: + mem_mb=config['fastp']['mem_mb'], # access memory from config + conda: + "../envs/bandage.yaml" + shell: + """ + Bandage image {input.mito_gfa} {output.mito_out} + Bandage image {input.pltd_gfa} {output.pltd_out} + """ \ No newline at end of file