Skip to content

Commit

Permalink
Don't use prophyle dir as output
Browse files Browse the repository at this point in the history
fixes #24
  • Loading branch information
karel-brinda committed Aug 9, 2021
1 parent 8fd52c8 commit d9b4084
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ def fn_post_compr_summary(_batch):
return fn_post_compr(_batch) + ".summary"


def fn_prophyle_kmer_stats(_batch):
return f"results/post/{_batch}/index.fa.kmers.tsv"


# def fn_prophyle_tree(_batch):
# return f"results/post/{_batch}/tree.nw"

Expand Down
9 changes: 5 additions & 4 deletions workflow/rules/post.smk
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ checkpoint prophyle_index:
w_batch_asms,
nw=fn_tree_sorted(_batch="{batch}"),
output:
d1=directory(dir_prophyle(_batch="{batch}")),
d2=directory(dir_prophyle_propagation(_batch="{batch}")),
#d2=directory(dir_prophyle_propagation(_batch="{batch}")),
#nw=fn_prophyle_tree(_batch="{batch}"),
s=fn_prophyle_kmer_stats(_batch="{batch}"),
params:
k=31,
pro_dir=directory(dir_prophyle(_batch="{batch}")),
asm_dir=fn_asm_seq_dir("{batch}"),
shell:
"""
prophyle index -T -A -S\\
-k {params.k} -g {params.asm_dir}\\
{input.nw} {output.d1}
{input.nw} {params.pro_dir}
"""


Expand Down Expand Up @@ -61,7 +62,7 @@ rule post_list:
input:
list=fn_nodes_sorted(_batch="{batch}"),
fa=w_batch_posts,
dpp=dir_prophyle_propagation(_batch="{batch}"),
s=fn_prophyle_kmer_stats(_batch="{batch}"),
output:
list=fn_post_list(_batch="{batch}"),
run:
Expand Down

0 comments on commit d9b4084

Please sign in to comment.