Skip to content

Commit dfd4bd1

Browse files
author
Mark Fiers
committed
jinja template for hagfish report
1 parent 2ca9539 commit dfd4bd1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

report_template.jinja2

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{% macro statblock(num, pro, xnum, xpro) %}
2+
Coverage c | No - incl. | % incl. | No - excl. | % excl.
3+
c = 0 | {{ "%10d"|format(num[0]) }} | {{ "%8.2f"|format(pro[0]) }}% | {{ "%10d"|format(xnum[0]) }} | {{ "%8.2f"|format(xpro[0]) }}%
4+
1 <= c < 10 | {{ "%10d"|format(num[1]) }} | {{ "%8.2f"|format(pro[1]) }}% | {{ "%10d"|format(xnum[1]) }} | {{ "%8.2f"|format(xpro[1]) }}%
5+
10 <= c < 20 | {{ "%10d"|format(num[2]) }} | {{ "%8.2f"|format(pro[2]) }}% | {{ "%10d"|format(xnum[2]) }} | {{ "%8.2f"|format(xpro[2]) }}%
6+
20 <= c < 30 | {{ "%10d"|format(num[3]) }} | {{ "%8.2f"|format(pro[3]) }}% | {{ "%10d"|format(xnum[3]) }} | {{ "%8.2f"|format(xpro[3]) }}%
7+
30 <= c < 40 | {{ "%10d"|format(num[4]) }} | {{ "%8.2f"|format(pro[4]) }}% | {{ "%10d"|format(xnum[4]) }} | {{ "%8.2f"|format(xpro[4]) }}%
8+
40 <= c < 50 | {{ "%10d"|format(num[5]) }} | {{ "%8.2f"|format(pro[5]) }}% | {{ "%10d"|format(xnum[5]) }} | {{ "%8.2f"|format(xpro[5]) }}%
9+
50 <= c < 100 | {{ "%10d"|format(num[6]) }} | {{ "%8.2f"|format(pro[6]) }}% | {{ "%10d"|format(xnum[6]) }} | {{ "%8.2f"|format(xpro[6]) }}%
10+
100 <= c | {{ "%10d"|format(num[7]) }} | {{ "%8.2f"|format(pro[7]) }}% | {{ "%10d"|format(xnum[7]) }} | {{ "%8.2f"|format(xpro[7]) }}%
11+
{%- endmacro %}
12+
13+
# Hagfish report for {{ seqId }}
14+
15+
Sequence length: {{ seqLen }}
16+
17+
## Correctly sized fragments
18+
{{ statblock(rep_ok_hist, rep_ok_proc, rep_ok_hist_ends, rep_ok_proc_ends) }}
19+
20+
## Long distance fragments
21+
{{ statblock(rep_high_hist, rep_high_proc, rep_high_hist_ends, rep_high_proc_ends) }}
22+
23+
## Short distance fragments
24+
{{ statblock(rep_low_hist, rep_low_proc, rep_low_hist_ends, rep_low_proc_ends) }}

0 commit comments

Comments
 (0)