I am all for wrappers, but currently we use them at one place, and we need to copy the wrappers directory to a relative location to the snakemake file. I think this is not very feasible, and we need to find a better way to handle wrappers.
This is how I'm running things at the moment:
diff --git a/workflows/assembly-based-metagenomics-workflow/merenlab-metagenomics-pipeline.snakefile b/workflows/assembly-based-metagenomics-workflow/merenlab-metagenomics-pipeline.snakefile
index 38b3b6c..fcd96d2 100644
--- a/workflows/assembly-based-metagenomics-workflow/merenlab-metagenomics-pipeline.snakefile
+++ b/workflows/assembly-based-metagenomics-workflow/merenlab-metagenomics-pipeline.snakefile
@@ -450,10 +450,7 @@ rule reformat_fasta:
params: prefix = "{group}"
threads: T('reformat_fasta')
resources: nodes = T('reformat_fasta'),
- wrapper:
- # Notice that path to wrapper is relative to the workdir (if you
- # want an absolute path, use 'file://' instead of 'file:')
- "file:wrappers/reformat-fasta"
+ shell: "anvi-script-reformat-fasta {input} -o {output.contigs} -r {output.report} --simplify-names --prefix {params.prefix} >> {log} 2>&1"
if run_remove_human_dna_using_centrifuge:
I am all for wrappers, but currently we use them at one place, and we need to copy the wrappers directory to a relative location to the snakemake file. I think this is not very feasible, and we need to find a better way to handle wrappers.
This is how I'm running things at the moment: