-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwarning_template.html
More file actions
75 lines (75 loc) · 2.07 KB
/
warning_template.html
File metadata and controls
75 lines (75 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ title or "Trim Warning" }}</title>
<style>
body {
margin: 0;
padding: 24px;
background: linear-gradient(180deg, #f4f6f8 0%, #e9edf1 100%);
color: #1f2430;
font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}
.card {
max-width: 960px;
border: 1px solid #d9dfe7;
border-radius: 16px;
background: #f6f8fb;
padding: 20px;
}
.banner {
margin: 0 0 16px;
padding: 12px 14px;
border: 1px solid #f1c27d;
border-radius: 12px;
background: #fff3d6;
color: #6f4e10;
font-weight: 600;
}
h1 {
margin: 0 0 12px;
font-size: 1.8rem;
}
p, li {
color: #1f2430;
line-height: 1.5;
}
ul {
margin: 0;
padding-left: 20px;
}
code {
font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
</style>
</head>
<body>
<div class="card">
{% if banner_message %}
<div class="banner">{{ banner_message }}</div>
{% endif %}
<h1>{{ title or "Trim Warning" }}</h1>
{% if intro_message %}
<p>{{ intro_message }}</p>
{% else %}
<p>Read trimming removed all bases from one or more reads, so assembly was skipped.</p>
<p>Current trimming rule requires a run of {{ min_consecutive_high_quality_bases }} consecutive bases with <code>Q>={{ forward_min_phred_score_per_base }}</code> for forward and <code>Q>={{ reverse_min_phred_score_per_base }}</code> for reverse.</p>
{% if empty_reads %}
<p>Affected reads:</p>
<ul>
{% for detail in empty_reads %}
<li>{{ detail }}</li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
{% if footer_message %}
<p>{{ footer_message }}</p>
{% elif not intro_message %}
<p>Check the QA report or lower <code>--min-phred-score-per-base</code> and/or <code>--min-consecutive-high-quality-bases</code>.</p>
{% endif %}
</div>
</body>
</html>