-
Notifications
You must be signed in to change notification settings - Fork 0
/
report_template.html
262 lines (234 loc) · 7.36 KB
/
report_template.html
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!DOCTYPE html>
<html>
<head>
<title>生物信息学分析报告</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> -->
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://cdn.staticfile.org/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// 为所有导航链接添加点击事件处理器
$('.nav-item').on('click', function(event) {
// 从当前选中的导航链接中删除'active'类
$('.nav-item.active').removeClass('active');
// 将'active'类添加到当前单击的导航链接中
$(this).addClass('active');
});
});
</script>
<style>
h2{
margin-bottom: 30px;
margin-top: 30px;
}
p{
font-size:larger;
text-indent: 2em;
line-height: 2;
}
.pdf-container {
display: block; /* PDF作为块级元素显示 */
margin: 20px auto; /* PDF上下外边距为20像素,左右居中 */
box-shadow: 10px 10px 20px gray; /* PDF阴影为10像素的偏移,20像素的模糊,灰色 */
transition: transform 0.5s; /* PDF变换的过渡时间为0.5秒 */
}
h1 {
color: blue; /* 标题颜色为蓝色 */
text-align: center; /* 标题居中对齐 */
}
table {
border-collapse: collapse; /* 表格边框合并 */
width: 80%; /* 表格宽度为80% */
margin: 0 auto; /* 表格居中显示 */
text-align: center;
font-size: large;
}
th, td {
border: 1px solid black; /* 单元格边框为黑色 */
padding: 10px; /* 单元格内边距为10像素 */
}
th {
background-color: lightblue; /* 表头背景色为浅蓝色 */
}
tr:nth-child(even) {
background-color: lightgray; /* 偶数行背景色为浅灰色 */
}
.centered-text {
text-align: center;
font-size: 1.5em; /* 可以根据需要调整字体大小 */
}
/* 将菜单栏设置为固定位置 */
.navbar-fixed-top {
position: fixed;
top: 0;
width: 100%;
}
/* 在固定菜单栏后,为页面内容添加一些底部间距 */
body {
padding-top: 70px;
}
</style>
<style>
/* 定义固定高度和滚动的容器 */
.pre-scrollable {
max-height: 500px;
overflow: auto;
}
</style>
<style>
.ref {
font-family: Arial, sans-serif;
font-size: 14px;
line-height: 0.5;
}
.nav-item:hover {
background-color: #222; /* 设置鼠标悬停时的背景颜色 */
color: #fff; /* 设置文本颜色,与背景颜色形成对比 */
}
.nav-item.active {
background-color: #222;
color: #fff; /* 设置文本颜色,与背景颜色形成对比 */
font-weight: bold; /* 加粗字体 */
border-bottom: 2px solid;
}
.pdf-container {
position: relative;
width: 100%;
height: 0;
padding-bottom: 56.25%; /* 设置容器高度为宽度的百分比,保持宽高比为16:9 */
overflow: hidden;
}
.pdf-container embed {
position: absolute;
width: 100%;
height: 100%;
object-fit: contain; /* 保持PDF文件宽高比,同时适应容器 */
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">生物信息学分析报告</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#qc_fastqc_output">质控分析报告</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#assemble_trinity_output">组装报告</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#expression_rsem_output">表达评估报告</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#DEG_identification_output">差异表达基因鉴别报告</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#transcript_indentification_output">转录本鉴别报告</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#Feature_annotation_analysis">功能注释报告</a>
</li>
</ul>
</div>
</nav>
<div id="qc_fastqc_output" class="container-fluid">
<h2>QC Output</h2>
<p>
{{qc_describe}}
</p>
{{ fastqc_res }}
<br>
{{ qc_reference }}
<br>
</div>
<div id="assemble_trinity_output" class="container-fluid">
<h2>Assembly Output</h2>
<p>
{{at_describe}}
</p>
<br>
{{ at_reference }}
<br>
</div>
<div id="expression_rsem_output" class="container-fluid">
<h2>Expression Output</h2>
<p>
{{ eer_describe }}
</p>
<br>
{{ eer_reference }}
<br>
<!-- <div class="pre-scrollable">
<p><strong>Genes.expected_count.matrix:</strong></p>
<pre>{{ rsem_matrix }}</pre>
</div> -->
</div>
<div id="DEG_identification_output" class="container-fluid">
<h2>DEG Identification Output</h2>
<p>
{{degi_describe}}
</p>
<br>
{{degi_reference}}
<br>
{{degi_photo}}
<br>
<!-- <div id="pdf-carousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
{{degi_photo}}
</div>
<a class="carousel-control-prev" href="#pdf-carousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#pdf-carousel" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div> -->
</div>
<div id="transcript_indentification_output" class="container-fluid">
<h2>Transcript Indentification Output</h2>
<p>
{{ti_describe}}
</p>
<br>
{{ti_reference}}
</div>
<div id="Feature_annotation_analysis" class="container-fluid">
<h2>Feature Annotation Analysis</h2>
<p>
{{ faa_describe }}
</p>
<br>
{{faa_reference}}
<br>
{{ faa_photo }}
<br>
<!-- <div id="pdf-carousel-2" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
{{faa_photo}}
</div>
<a class="carousel-control-prev" href="#pdf-carousel-2" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#pdf-carousel-2" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div> -->
</div>
</div>
</body>
</html>