Skip to content

we need a smart solution for wrappers #6

Description

@meren

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions