Skip to content

Commit

Permalink
fix: trigger and end dRep with breadcrumb
Browse files Browse the repository at this point in the history
  • Loading branch information
rroutsong committed Mar 1, 2024
1 parent a210cda commit 8370422
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ rule all:
expand(join(workpath, config['project']['id'], "metawrap_binning", "{name}", "figures", "binning_results.png"), name=samples),
# bin refinement
# ~~~~~~~~~~~~~~~
expand(join(top_refine_dir, "{name}", "dereplicated_bins"), name=samples),
expand(join(top_refine_dir, "{name}", "{name}_dREP_COMPLETE"), name=samples),
join(top_refine_dir, "RefinedBins_summmary.txt"),
join(top_refine_dir, "cumulative_stats_maxbin.txt"),
join(top_refine_dir, "cumulative_stats_metabat2.txt"),
Expand Down
2 changes: 2 additions & 0 deletions workflow/rules/DNA.smk
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ rule derep_bins:
bin_breadcrumb = join(top_binning_dir, "{name}", "{name}_BINNING_COMPLETE"),
output:
dereplicated_bins = directory(join(top_refine_dir, "{name}", "dereplicated_bins")),
deprep_bc = join(top_refine_dir, "{name}", "{name}_dREP_COMPLETE"),
singularity: metawrap_container,
threads: int(cluster["derep_bins"].get("threads", default_threads)),
params:
Expand Down Expand Up @@ -532,4 +533,5 @@ rule derep_bins:
-nc {params.min_overlap} \
-cm {params.coverage_method} \
{output.dereplicated_bins}
touch {output.deprep_bc}
"""

0 comments on commit 8370422

Please sign in to comment.