Fix a template typo
[htsworkflow.git] / htsworkflow / frontend / templates / samples / library_detail.html
1 {% extends "base_site.html" %}
2 {% load adminmedia humanize i18n %}
3 {% block extrahead %}
4     <!-- App Stuff -->
5     <link type="text/css" rel="stylesheet" href="/static/css/app.css" />
6     <script type="text/javascript" src="/static/js/jquery.min.js"></script>
7     
8     {% block additional_javascript %}
9     {% endblock %}
10 {% endblock %}
11
12 {% block content %}
13   {% include "sample_header.html" %}
14   <hr/>
15   <div class="library_statistics">
16   <h2>Raw Result Files</h2>
17   <table>
18   <thead>
19     <tr>
20       <td>Run Start Date</td>
21       <td>Cycle</td>
22       <td>Flowcell</td>
23       <td>Lane</td>
24       <td>Summary</td>
25       <td>Eland</td>
26       <td>Bed</td>
27       <td>Archived</td>
28     </tr>
29   </thead>
30   <tbody>
31     {% for result in eland_results %}
32     <tr about="{{result.flowcell.get_absolute_url}}">
33       <td property="libns:date" content="{{result.run_date|date:'Y-m-d\TH:i:s'}}" datatype="xsd:dateTime">{{ result.run_date|date}}</td>
34       <td>{{ result.cycle }}</td>
35       <td><a href="{{result.flowcell.get_absolute_url}}"><span property="libns:flowcell_id">{{ result.flowcell_id }}</span></a></td>
36       <td><a href="{{result.lane.get_absolute_url}}" rel="libns:has_lane"><span property="libns:lane_number" datatype="xsd:decimal">{{ result.lane.lane_number }}</span></a></td>
37       <td><a href="{{ result.summary_url }}">Summary</a></td>
38       <td><a href="{{ result.result_url }}">{{ result.result_label }}</a></td>
39       <td>
40       {% if result.bed_url %}
41         <a href="{{ result.bed_url }}">Bed</a>
42       {% endif %}
43       </td>
44       <td>
45         {% if result.storage_ids %}
46           {{ result.storage_ids|safe }}
47         {% endif %}
48       </td>
49     </tr>
50     {% endfor %}
51   </tbody>
52   </table>
53   
54   <h2>Lane Summary Statistics</h2>
55   {% block summary_stats %}
56   <table>
57     <thead>
58       <tr>
59         <td colspan="7"></td>
60         <td colspan="2">No Match</td>
61         <td colspan="2">QC Failed</td>
62         <td colspan="4">Unique</td>
63         <td colspan="4">Repeat</td>
64       </tr>
65       <tr>
66       <td>Cycles</td>
67       <td>Flowcell</td>
68       <td>Lane</td>
69       <td>End</td>
70       <td>Cluster / Tile</td>
71       <td>pM</td>
72       <td>Raw Reads</td>
73       <td>total</td>
74       <td>%</td>
75       <td>total</td>
76       <td>%</td>
77       <td>0 mismatch</td>
78       <td>1 mismatch</td>
79       <td>2 mismatch</td>
80       <td>Total</td>
81       <td>0 mismatch</td>
82       <td>1 mismatch</td>
83       <td>2 mismatch</td>
84       <td>Total</td>
85       </tr>
86     </thead>
87     <tbody>
88   
89       {# ls short for lane summary #}
90       {% for ls in lane_summary_list %}
91       <tr about="{{ls.lane.get_absolute_url}}">
92         <td>{{ ls.cycle_width }}</td>
93         <td><a href="{{ls.flowcell.get_absolute_url}}">{{ ls.flowcell_id }}</a></td>
94         <td><a href="{{ls.lane.get_absolute_url}}">{{ ls.lane_id }}</a></td>
95         <td>{% if ls.end %}{{ ls.end }}{% endif %}</td>
96         <td>{{ ls.clusters.0|intcomma }}</td>
97         <td>{{ ls.successful_pm }}</td>
98         <td>{{ ls.reads|intcomma }}</td>
99         <td>{{ ls.no_match|intcomma }}</td>
100         <td>{{ ls.no_match_percent|stringformat:".2f" }}</td>
101         <td>{{ ls.qc_failed|intcomma }}</td>
102         <td>{{ ls.qc_failed_percent|stringformat:".2f" }}</td>
103         <td>{{ ls.match_codes.U0|intcomma }}</td>
104         <td>{{ ls.match_codes.U1|intcomma }}</td>
105         <td>{{ ls.match_codes.U2|intcomma }}</td>
106         <td {% if ls.unique_reads %}property="libns:total_unique_locations" content="{{ls.unique_reads}}" datatype="xsd:decimal"{% endif %}>{{ ls.unique_reads|intcomma }}</td>
107         <td>{{ ls.match_codes.R0|intcomma }}</td>
108         <td>{{ ls.match_codes.R1|intcomma }}</td>
109         <td>{{ ls.match_codes.R2|intcomma }}</td>
110         <td>{{ ls.repeat_reads|intcomma }}</td>
111       </tr>
112       {% endfor %}
113     </tbody>
114   </table>
115
116   <h2>Flowcell Notes</h2>
117   <table>
118     <thead>
119       <tr>
120         <td>Flowcell ID</td>
121         <td>Lane</td>
122         <td>Comment</td>
123       </tr>
124     </thead>
125     <tbody>
126       {% for lane in lib.lane_set.all %}
127       <tr rel="libns:has_lane" resource="{{lane.get_absolute_url}}">
128         <td><a href="{{lane.flowcell.get_absolute_url}}" rel="libns:flowcell"
129             >{{ lane.flowcell.flowcell_id }}</a></td>
130         <td><a href="{{lane.get_absolute_url}}"> 
131             <span property="libns:lane_number"  datatype="xsd:decimal"
132                >{{ lane.lane_number }}</span></a></td>
133         <td>{{ lane.comment }}</td>
134       </tr>
135           {% endfor %}
136     </tbody>
137   </table>
138   {% endblock %}
139   </div>
140 </div>
141 {% endblock %}