annotate cpt_phageqc_annotation/phageqc_report_full.html @ 0:c3140b08d703 draft default tip

Uploaded
author cpt
date Fri, 17 Jun 2022 13:00:50 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
c3140b08d703 Uploaded
cpt
parents:
diff changeset
1 <!DOCTYPE html>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
2 <html lang="en">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
3 <head>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
4 <meta charset="utf-8">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
5 <meta http-equiv="X-UA-Compatible" content="IE=edge">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
6 <meta name="viewport" content="width=device-width, initial-scale=1">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
7 <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
c3140b08d703 Uploaded
cpt
parents:
diff changeset
8 <meta name="description" content="">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
9 <meta name="author" content="">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
10 <title>Phage QC on {{record_name}} - {{score}}</title>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
11 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
12 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
13
c3140b08d703 Uploaded
cpt
parents:
diff changeset
14 <style type="text/css">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
15 /*
c3140b08d703 Uploaded
cpt
parents:
diff changeset
16 * Base structure
c3140b08d703 Uploaded
cpt
parents:
diff changeset
17 */
c3140b08d703 Uploaded
cpt
parents:
diff changeset
18
c3140b08d703 Uploaded
cpt
parents:
diff changeset
19 /* Move down content because we have a fixed navbar that is 50px tall */
c3140b08d703 Uploaded
cpt
parents:
diff changeset
20 body {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
21 padding-top: 50px;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
22 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
23
c3140b08d703 Uploaded
cpt
parents:
diff changeset
24 h3:before {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
25 display: block;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
26 content: " ";
c3140b08d703 Uploaded
cpt
parents:
diff changeset
27 margin-top: -50px;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
28 height: 50px;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
29 visibility: hidden;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
30 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
31
c3140b08d703 Uploaded
cpt
parents:
diff changeset
32 /*
c3140b08d703 Uploaded
cpt
parents:
diff changeset
33 * Global add-ons
c3140b08d703 Uploaded
cpt
parents:
diff changeset
34 */
c3140b08d703 Uploaded
cpt
parents:
diff changeset
35
c3140b08d703 Uploaded
cpt
parents:
diff changeset
36 .sub-header {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
37 padding-bottom: 10px;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
38 border-bottom: 1px solid #eee;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
39 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
40
c3140b08d703 Uploaded
cpt
parents:
diff changeset
41 /*
c3140b08d703 Uploaded
cpt
parents:
diff changeset
42 * Top navigation
c3140b08d703 Uploaded
cpt
parents:
diff changeset
43 * Hide default border to remove 1px line.
c3140b08d703 Uploaded
cpt
parents:
diff changeset
44 */
c3140b08d703 Uploaded
cpt
parents:
diff changeset
45 .navbar-fixed-top {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
46 border: 0;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
47 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
48
c3140b08d703 Uploaded
cpt
parents:
diff changeset
49 /*
c3140b08d703 Uploaded
cpt
parents:
diff changeset
50 * Sidebar
c3140b08d703 Uploaded
cpt
parents:
diff changeset
51 */
c3140b08d703 Uploaded
cpt
parents:
diff changeset
52
c3140b08d703 Uploaded
cpt
parents:
diff changeset
53 /* Hide for mobile, show later */
c3140b08d703 Uploaded
cpt
parents:
diff changeset
54 .sidebar {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
55 display: none;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
56 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
57 @media (min-width: 768px) {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
58 .sidebar {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
59 position: fixed;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
60 top: 51px;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
61 bottom: 0;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
62 left: 0;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
63 z-index: 1000;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
64 display: block;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
65 padding: 20px;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
66 overflow-x: hidden;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
67 overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
c3140b08d703 Uploaded
cpt
parents:
diff changeset
68 background-color: #f5f5f5;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
69 border-right: 1px solid #eee;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
70 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
71 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
72
c3140b08d703 Uploaded
cpt
parents:
diff changeset
73 /* Sidebar navigation */
c3140b08d703 Uploaded
cpt
parents:
diff changeset
74 .nav-sidebar {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
75 margin-right: -21px; /* 20px padding + 1px border */
c3140b08d703 Uploaded
cpt
parents:
diff changeset
76 margin-bottom: 20px;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
77 margin-left: -20px;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
78 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
79 .nav-sidebar > li > a {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
80 padding-right: 20px;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
81 padding-left: 20px;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
82 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
83 .nav-sidebar > .active > a,
c3140b08d703 Uploaded
cpt
parents:
diff changeset
84 .nav-sidebar > .active > a:hover,
c3140b08d703 Uploaded
cpt
parents:
diff changeset
85 .nav-sidebar > .active > a:focus {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
86 color: #fff;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
87 background-color: #428bca;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
88 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
89
c3140b08d703 Uploaded
cpt
parents:
diff changeset
90
c3140b08d703 Uploaded
cpt
parents:
diff changeset
91 /*
c3140b08d703 Uploaded
cpt
parents:
diff changeset
92 * Main content
c3140b08d703 Uploaded
cpt
parents:
diff changeset
93 */
c3140b08d703 Uploaded
cpt
parents:
diff changeset
94
c3140b08d703 Uploaded
cpt
parents:
diff changeset
95 .main {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
96 padding: 20px;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
97 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
98 @media (min-width: 768px) {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
99 .main {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
100 padding-right: 40px;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
101 padding-left: 40px;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
102 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
103 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
104 .main .page-header {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
105 margin-top: 0;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
106 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
107
c3140b08d703 Uploaded
cpt
parents:
diff changeset
108
c3140b08d703 Uploaded
cpt
parents:
diff changeset
109 /*
c3140b08d703 Uploaded
cpt
parents:
diff changeset
110 * Placeholder dashboard ideas
c3140b08d703 Uploaded
cpt
parents:
diff changeset
111 */
c3140b08d703 Uploaded
cpt
parents:
diff changeset
112
c3140b08d703 Uploaded
cpt
parents:
diff changeset
113 .placeholders {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
114 margin-bottom: 30px;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
115 text-align: center;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
116 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
117 .placeholders h4 {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
118 margin-bottom: 0;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
119 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
120 .placeholder {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
121 margin-bottom: 20px;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
122 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
123 .placeholder img {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
124 display: inline-block;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
125 border-radius: 50%;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
126 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
127
c3140b08d703 Uploaded
cpt
parents:
diff changeset
128 td.moron {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
129 font-size: 150%;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
130 padding: 0px;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
131 color: gray;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
132 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
133 .strand_emph {
c3140b08d703 Uploaded
cpt
parents:
diff changeset
134 text-decoration: underline;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
135 color: black;
c3140b08d703 Uploaded
cpt
parents:
diff changeset
136 }
c3140b08d703 Uploaded
cpt
parents:
diff changeset
137
c3140b08d703 Uploaded
cpt
parents:
diff changeset
138 </style>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
139 <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
c3140b08d703 Uploaded
cpt
parents:
diff changeset
140 <!--[if lt IE 9]>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
141 <script src="//oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
142 <script src="//oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
143 <![endif]-->
c3140b08d703 Uploaded
cpt
parents:
diff changeset
144 </head>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
145 <body>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
146
c3140b08d703 Uploaded
cpt
parents:
diff changeset
147 <nav class="navbar navbar-inverse navbar-fixed-top">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
148 <div class="container-fluid">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
149 <div class="navbar-header">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
150 <a class="navbar-brand" href="#">Phage QC on {{record_name}}</a>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
151 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
152 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
153 </nav>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
154
c3140b08d703 Uploaded
cpt
parents:
diff changeset
155 <div class="container-fluid">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
156 <div class="row">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
157 <div class="col-sm-3 col-md-2 sidebar">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
158 <ul class="nav nav-sidebar">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
159 <li><a href="#main"><b>Overview</b></a></li>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
160 <li><a href="#bad_gene_starts"><b>Bad Gene Starts</b></a></li>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
161 <li><a href="#missing_rbs"><small>Missing RBS</small></a></li>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
162 <li><a href="#weird_starts"><small>Unusual Start Codons</small></a></li>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
163 <li><a href="#excessive_gaps"><small>Excessive Gaps</small></a></li>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
164 <li><a href="#excessive_overlap"><small>Excessive Overlaps</small></a></li>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
165 <!--<li><a href="#coding_density"><small>Coding Density</small></a></li>-->
c3140b08d703 Uploaded
cpt
parents:
diff changeset
166 <li><a href="#antisense"><b>Antisense Genes</b></a></li>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
167 <li><a href="#morons"><small>Possible Morons</small></a></li>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
168 <li><a href="#annotations"><b>Annotation Issues</b></a></li>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
169 <li><a href="#missing_product"><small>Missing Product Tags</small></a></li>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
170 </ul>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
171 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
172 <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" id="main">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
173 <div class="jumbotron">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
174 <div class="row">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
175 <div class="col-sm-7">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
176 <h1>Phage {{record_name}}</h1>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
177 <!--<h2>Score: {{score}}/100</h2>-->
c3140b08d703 Uploaded
cpt
parents:
diff changeset
178 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
179 <!--<div class="col-sm-5">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
180 <table class="table table-striped">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
181 <thead>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
182 <tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
183 <th>Section</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
184 <th>Score</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
185 </tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
186 </thead>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
187 <tbody>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
188 <tr><td>Missing RBS</td><td>{{ '%d' % missing_rbs_score }}%</td></tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
189 <tr><td>Excessive Gaps</td><td>{{ '%d' % excessive_gap_score }}%</td></tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
190 <tr><td>Excessive Overlap</td><td>{{ '%d' % excessive_overlap_score }}%</td></tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
191 <tr><td>Coding Density Score</td><td>{{ '%d' % coding_density }}%</td></tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
192 <tr><td>Possible Morons</td><td>{{ '%d' % (100 * morons_good / (morons_good + morons_bad))}}%</td></tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
193 <tr><td>Missing Product Tags</td><td>{{ '%d' % (100 * missing_tags_good / (missing_tags_good + missing_tags_bad))}}%</td></tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
194 </tbody>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
195 </table>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
196 </div>-->
c3140b08d703 Uploaded
cpt
parents:
diff changeset
197 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
198 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
199
c3140b08d703 Uploaded
cpt
parents:
diff changeset
200 <h2 class="sub-header" id="bad_gene_starts">Gene Starts</h2>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
201 <h3 id="missing_rbs">Genes missing RBS <small>{{missing_rbs_good}} / {{missing_rbs_good + missing_rbs_bad}}</small></h3>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
202 <p>The following genes have issues with their RBS.</p>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
203 {% if not rbss_annotated %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
204 <p>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
205 Since you have not annotated any possible RBSs, this does not count off from your overall score.
c3140b08d703 Uploaded
cpt
parents:
diff changeset
206 </p>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
207 {% endif %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
208 <div class="table-responsive">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
209 <table class="table table-striped">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
210 <thead>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
211 <tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
212 <th>Feature Type</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
213 <th>ID</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
214 <th>Location</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
215 <th>Error</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
216 <th>Upstream (-{{upstream_max}} .. -{{upstream_min}})</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
217 </tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
218 </thead>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
219 <tbody>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
220 {% for row in missing_rbs %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
221 <tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
222 <td>{{row.type}}</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
223 <td>{{row.id}}</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
224 <td>{{row.location.start}}..{{row.location.end}} [{{row.strand}}]</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
225 <td>{{row.__message}}</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
226 <td><span style="font-family:monospace">{{row.__upstream}}</span></td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
227 </tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
228 {% endfor %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
229 </tbody>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
230 </table>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
231 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
232
c3140b08d703 Uploaded
cpt
parents:
diff changeset
233 <h3 id="weird_starts">Start Codon Usage</h3>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
234 <p>This section covers genes with unusual start codons</p>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
235 <div class="table-responsive">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
236 <table class="table table-striped">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
237 <thead>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
238 <tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
239 <th>Start Codon</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
240 <th>Count</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
241 </tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
242 </thead>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
243 <tbody>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
244 {% for codon_key in weird_starts_overall_sorted_keys %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
245 <tr><td>{{ codon_key }}</td><td>{{ weird_starts_overall[codon_key] }}</td></tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
246 {% endfor %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
247 </tbody>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
248 </table>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
249 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
250
c3140b08d703 Uploaded
cpt
parents:
diff changeset
251 <div class="table-responsive">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
252 <table class="table table-striped">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
253 <thead>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
254 <tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
255 <th>Feature Type</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
256 <th>ID</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
257 <th>Location</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
258 <th>Error</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
259 </tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
260 </thead>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
261 <tbody>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
262 {% for row in weird_starts %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
263 <tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
264 <td>{{row.type}}</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
265 <td>{{row.id}}</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
266 <td>{{row.location.start}}..{{row.location.end}} [{{row.strand}}]</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
267 <td>{{row.__error}}</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
268 </tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
269 {% endfor %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
270 </tbody>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
271 </table>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
272 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
273
c3140b08d703 Uploaded
cpt
parents:
diff changeset
274 <h3 id="excessive_gaps">Intergenic Gaps</h3>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
275 <p>Phage genomes are under pressure to maintain high coding density. Large intergenic gaps may be a sign of incorrect gene starts or missing genes.</p>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
276 <div class="table-responsive">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
277 <table class="table table-striped">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
278 <thead>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
279 <tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
280 <th>Region</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
281 <th>Size</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
282 <th>Bounding Gene Transcription Direction</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
283 <th>Message</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
284 </tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
285 </thead>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
286 <tbody>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
287 {% for row in excessive_gap %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
288 <tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
289 <td>{{row[0]}} .. {{row[1]}}</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
290 <td>{{row[1] - row[0]}}</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
291 <td>{{row[2] | nice_strand}} {{row[3] | nice_strand}}</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
292 <td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
293 {% if row[4] == 0 %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
294 {% else %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
295 {{row[4]}} ORFs found in this region
c3140b08d703 Uploaded
cpt
parents:
diff changeset
296 {% endif %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
297 </td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
298 </tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
299 {% endfor %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
300 </tbody>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
301 </table>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
302 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
303
c3140b08d703 Uploaded
cpt
parents:
diff changeset
304 <h3 id="excessive_overlap">Overlapping Genes </h3>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
305 <p>Large gene overlaps may indicate an incorrect gene start or miscalled gene.</p>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
306 <div class="table-responsive">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
307 <table class="table table-striped">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
308 <thead>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
309 <tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
310 <th>Feature A</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
311 <th>Feature B</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
312 <th>Shared Region</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
313 <th>Overlap Length</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
314 </tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
315 </thead>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
316 <tbody>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
317 {% for row in excessive_overlap %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
318 <tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
319 <td>{{row[0].id}} ({{row[0].location}})</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
320 <td>{{row[1].id}} ({{row[1].location}})</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
321 <td>{{row[2]}}..{{row[3]}}</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
322 <td>{{row[3] - row[2]}} bp</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
323 </tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
324 {% endfor %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
325 </tbody>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
326 </table>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
327 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
328 <!--<h3 id="coding_density">Coding Density Issues <small>{{ coding_density }} / 100</small></h3>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
329 <div class="table-responsive">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
330 <p>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
331 You have a coding density of {{ coding_density_real }} which scores
c3140b08d703 Uploaded
cpt
parents:
diff changeset
332 {{ coding_density }} / 100. Most genomes should be in the 90% to
c3140b08d703 Uploaded
cpt
parents:
diff changeset
333 100% coding density range
c3140b08d703 Uploaded
cpt
parents:
diff changeset
334 </p>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
335 </div>-->
c3140b08d703 Uploaded
cpt
parents:
diff changeset
336
c3140b08d703 Uploaded
cpt
parents:
diff changeset
337 <h2 class="sub-header" id="antisense">Antisense Genes</h2>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
338 <h3 id="morons">Possible Morons <small>{{morons_good}} / {{morons_good + morons_bad}} (Doesn't count towards score)</small></h3>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
339 <div class="table-responsive">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
340 <table class="table table-striped">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
341 <thead>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
342 <tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
343 <th>Feature</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
344 <th>RBS</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
345 <th>Surrounding Features</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
346 </tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
347 </thead>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
348 <tbody>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
349 {% for row in morons %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
350 <tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
351 <td>{{row[0].id}}</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
352 <td>{{row[3]}}</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
353 <td class="moron">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
354 {% for x in row[1] %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
355 {{ x | nice_strand }}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
356 {% endfor %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
357 <span class="strand_emph">{{ row[0].strand | nice_strand }}</span>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
358 {% for x in row[2] %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
359 {{ x | nice_strand }}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
360 {% endfor %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
361 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
362 </td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
363 </tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
364 {% endfor %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
365 </tbody>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
366 </table>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
367 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
368
c3140b08d703 Uploaded
cpt
parents:
diff changeset
369
c3140b08d703 Uploaded
cpt
parents:
diff changeset
370 <h2 class="sub-header" id="annotations">Annotation Issues</h2>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
371 <h3 id="missing_product">Missing Product Tags <small>{{missing_tags_good}} / {{missing_tags_good + missing_tags_bad}}</small></h3>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
372 <div class="table-responsive">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
373 <table class="table table-striped">
c3140b08d703 Uploaded
cpt
parents:
diff changeset
374 <thead>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
375 <tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
376 <th>Feature</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
377 <th>Qualifiers</th>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
378 </tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
379 </thead>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
380 <tbody>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
381 {% for row in missing_tags %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
382 <tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
383 <td>{{row.id}}</td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
384 <td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
385 {% for key in row.qualifiers %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
386 {{ key }}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
387 <ul>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
388 {% for value in row.qualifiers[key] %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
389 <li>{{value}}</li>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
390 {% endfor %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
391 </ul>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
392 {% endfor %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
393 </td>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
394 </tr>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
395 {% endfor %}
c3140b08d703 Uploaded
cpt
parents:
diff changeset
396 </tbody>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
397 </table>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
398 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
399
c3140b08d703 Uploaded
cpt
parents:
diff changeset
400
c3140b08d703 Uploaded
cpt
parents:
diff changeset
401
c3140b08d703 Uploaded
cpt
parents:
diff changeset
402
c3140b08d703 Uploaded
cpt
parents:
diff changeset
403
c3140b08d703 Uploaded
cpt
parents:
diff changeset
404 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
405 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
406 </div>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
407
c3140b08d703 Uploaded
cpt
parents:
diff changeset
408
c3140b08d703 Uploaded
cpt
parents:
diff changeset
409 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
410 </body>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
411 </html>
c3140b08d703 Uploaded
cpt
parents:
diff changeset
412