Skip to content

Commit

Permalink
added rule for bandage
Browse files Browse the repository at this point in the history
  • Loading branch information
LiaOb21 committed Apr 9, 2024
1 parent 66faa38 commit 55e85b7
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions workflow/rules/bandage.smk
Original file line number Diff line number Diff line change
@@ -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}
"""

0 comments on commit 55e85b7

Please sign in to comment.