Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Thomas Schwarzl
snakemake-tutorial
Commits
51157d97
Commit
51157d97
authored
Jan 21, 2016
by
Thomas Schwarzl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added reporting example
parent
7c53db8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
.gitignore
.gitignore
+2
-0
02-report/Snakefile
02-report/Snakefile
+41
-0
No files found.
.gitignore
0 → 100644
View file @
51157d97
.snakemake
02-report/Snakefile
0 → 100644
View file @
51157d97
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)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment