Skip to content
Snippets Groups Projects
Commit 0c17b301 authored by Blaise Li's avatar Blaise Li
Browse files

Fixing access to params.

parent 1ee7e494
No related branches found
No related tags found
No related merge requests found
...@@ -53,8 +53,8 @@ shell(mapping_command(snakemake.params.aligner)) ...@@ -53,8 +53,8 @@ shell(mapping_command(snakemake.params.aligner))
if hasattr(snakemake.output, "methods"): if hasattr(snakemake.output, "methods"):
shell(f"cp {snakemake.input.methods} {snakemake.output.methods}") shell(f"cp {snakemake.input.methods} {snakemake.output.methods}")
methods = f"The {params.read_name} were mapped on the {params.genome_name} using {aligner} (version ${{{{v}}}}) with options {snakemake.params.settings}" methods = f"The {snakemake.params.read_name} were mapped on the {snakemake.params.genome_name} using {snakemake.params.aligner} (version ${{{{v}}}}) with options {snakemake.params.settings}"
shell(f""" shell(f"""
v=$({aligner} --version | head -1 | awk '{{print $3}}') v=$({snakemake.params.aligner} --version | head -1 | awk '{{print $3}}')
echo "{methods}" >> {snakemake.output.methods} echo "{methods}" >> {snakemake.output.methods}
""") """)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment