Skip to content

Commit e028175

Browse files
committed
fix: need separate dirs for results because intermediate files do have non-unique names
1 parent 45e992c commit e028175

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

workflow/rules/common.smk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ def get_final_input(wildcards):
7171
)
7272
if not config["rgi"]["skip"]:
7373
inputs += expand(
74-
"results/qc/rgi/{sample}.{ext}", sample=samples.index, ext=["txt", "json"]
74+
"results/qc/rgi/{sample}/result.{ext}",
75+
sample=samples.index,
76+
ext=["txt", "json"],
7577
)
7678
return inputs
7779

workflow/rules/qc.smk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ rule rgi_detection:
130130
input:
131131
fasta=rules.get_fasta.output.fasta,
132132
output:
133-
multiext("results/qc/rgi/{sample}", ".txt", ".json"),
133+
multiext("results/qc/rgi/{sample}/result", ".txt", ".json"),
134134
log:
135-
"results/qc/rgi/{sample}.log",
135+
"results/qc/rgi/{sample}/result.log",
136136
threads: max(workflow.cores * 0.25, 1)
137137
params:
138138
input_type="contig",

0 commit comments

Comments
 (0)