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

Improve methods message.

parent 131e2618
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ shell(mapping_command(snakemake.params.aligner))
if hasattr(snakemake.output, "methods"):
shell(f"cp {snakemake.input.methods} {snakemake.output.methods}")
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}"
methods = f"# {snakemake.rule}\nThe {snakemake.params.read_name} reads were mapped on the {snakemake.params.genome_name} using {snakemake.params.aligner} (version ${{{{v}}}}) with options {snakemake.params.settings}."
shell(f"""
v=$({snakemake.params.aligner} --version | head -1 | awk '{{{{print $3}}}}')
echo "{methods}" >> {snakemake.output.methods}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment