Skip to content

Commit

Permalink
fix results_dir in targets
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Sep 22, 2020
1 parent 69a1343 commit 92229f2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions workflow/rules/alignment.smk
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ rule snippy_pairwise_assembly:
Peform a pairwise alignment of assemblies to the reference genome.
"""
input:
asm_fna = "results/download_assembly/{sample}.fna",
ref = expand("results/download_reference/{reference}.fna", reference=identify_reference_sample()),
asm_fna = results_dir + "/download_assembly/{sample}.fna",
ref = expand(results_dir + "/download_reference/{reference}.fna", reference=identify_reference_sample()),
output:
snippy_dir = directory("results/snippy_pairwise/{sample}/"),
snp_txt = "results/snippy_pairwise/{sample}/{sample}_snippy.txt",
snippy_aln = "results/snippy_pairwise/{sample}/{sample}_snippy.aligned.fa",
snippy_dir = directory(results_dir + "/snippy_pairwise/{sample}/"),
snp_txt = results_dir + "/snippy_pairwise/{sample}/{sample}_snippy.txt",
snippy_aln = results_dir + "/snippy_pairwise/{sample}/{sample}_snippy.aligned.fa",
params:
ctg_depth = config["snippy_ctg_depth"],
min_frac = config["snippy_min_frac"],
Expand Down Expand Up @@ -43,17 +43,17 @@ rule snippy_multi:
Peform a multiple alignment from pairwise output.
"""
input:
all_dir = expand("results/snippy_pairwise/{sample}/{sample}_snippy.aligned.fa", sample=identify_assembly_sample()),
all_dir_file = "results/snippy_multi/snippy_pairwise_assembly.txt",
ref = expand("results/download_reference/{reference}.fna", reference=identify_reference_sample()),
all_dir = expand(results_dir + "/snippy_pairwise/{sample}/{sample}_snippy.aligned.fa", sample=identify_assembly_sample()),
all_dir_file = results_dir + "/snippy_multi/snippy_pairwise_assembly.txt",
ref = expand(results_dir + "/download_reference/{reference}.fna", reference=identify_reference_sample()),
params:
mask_char = config["snippy_mask_char"],
output:
report("results/snippy_multi/{prefix}.txt",
report(results_dir + "/snippy_multi/{prefix}.txt",
caption=os.path.join(report_dir,"snippy_multi.rst"),
category="Alignment",
subcategory="Snippy"),
snp_aln = "results/snippy_multi/{prefix}.full.aln",
snp_aln = results_dir + "/snippy_multi/{prefix}.full.aln",
log:
os.path.join(logs_dir, "snippy_multi","{prefix}.log")
conda:
Expand Down

0 comments on commit 92229f2

Please sign in to comment.