Commit 51157d97 authored by Thomas Schwarzl's avatar Thomas Schwarzl

added reporting example

parent 7c53db8f
.snakemake
from snakemake.utils import report
rule all:
input:
"extract.txt"
rule summarize:
input:
"A.fasta",
"B.fasta"
output:
"sum.txt"
shell:
"wc -c {input} > {output}"
rule extract:
input:
"sum.txt"
output:
"extract.txt"
shell:
"cut -f7 -d ' ' {input} > {output}"
rule clean:
shell:
"rm extract.txt sum.txt"
rule report:
input:
T1="sum.txt"
output:
html="report.html"
run:
report("""
========
title
========
Something {input.T1}
""", output.html, metadata="Thomas Schwarzl", **input)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment