9843e94d5f5183b1f6b853d011d0fe096500cf17
[htsworkflow.git] / htsworkflow / frontend / templates / samples / library_detail.html
1 {% load humanize %}
2 <style type="text/css">
3   /* <![CDATA[ */
4   table, td {
5     border-style: solid;
6   }
7   table {
8     border-width: 0 0 1px 1px;
9     border-spacing: 0;
10     border-collapse: collapse;
11   }
12   td {
13     margin: 0;
14     padding: 4px;
15     border-width: 1px 1px 0 0;
16   }
17   thead {
18     text-align: center;
19     }
20   tbody {
21     text-align: right;
22   }
23   /* ]]> */
24 </style>
25
26 <h2>About this library</h2>
27 <b>Library ID</b>: {{ lib.library_id }}<br/>
28 <b>Name</b>: {{ lib.library_name }}<br/>
29 <b>Species</b>: {{ lib.library_species.scientific_name }}<br/>
30 <b>Affiliations</b>:
31 <ul>
32   {% for individual in lib.affiliations.all %}
33     <li>{{ individual.name }} ( {{ individual.contact }} )</li>
34   {% endfor %}
35 </ul>
36
37 <h2>Raw Result Files</h2>
38 <table>
39 <thead>
40   <tr>
41     <td>Cycle</td>
42     <td>Flowcell</td>
43     <td>Lane</td>
44     <td>Summary</td>
45     <td>Eland</td>
46     <td>Bed</td>
47     <td>Archived</td>
48   </tr>
49 {% for result in eland_results %}
50 <tr>
51   <td>{{ result.cycle }}</td>
52   <td>{{ result.flowcell_id }}</td>
53   <td>{{ result.lane }}</td>
54   <td><a href="{{ result.summary_url }}">Summary</a></td>
55   <td><a href="{{ result.result_url }}">{{ result.result_label }}</a></td>
56   <td>
57   {% if result.bed_url %}
58     <a href="{{ result.bed_url }}">Bed</a>
59   {% endif %}
60   </td>
61   <td>
62     {% if result.storage_ids %}
63       {{ result.storage_ids }}
64     {% endif %}
65   </td>
66 </tr>
67 {% endfor %}
68 </table>
69
70 <h2>Lane Summary Statistics</h2>
71 {% block summary_stats %}
72 <table>
73   <thead>
74     <tr>
75       <td colspan="7"></td>
76       <td colspan="2">No Match</td>
77       <td colspan="2">QC Failed</td>
78       <td colspan="4">Unique</td>
79       <td colspan="4">Repeat</td>
80     </tr>
81     <tr>
82     <td>Cycles</td>
83     <td>Flowcell</td>
84     <td>Lane</td>
85     <td>End</td>
86     <td>Cluster / Tile</td>
87     <td>pM</td>
88     <td>Raw Reads</td>
89     <td>total</td>
90     <td>%</td>
91     <td>total</td>
92     <td>%</td>
93     <td>0 mismatch</td>
94     <td>1 mismatch</td>
95     <td>2 mismatch</td>
96     <td>Total</td>
97     <td>0 mismatch</td>
98     <td>1 mismatch</td>
99     <td>2 mismatch</td>
100     <td>Total</td>
101     </tr>
102   </thead>
103   <tbody>
104
105     {% for lane in lane_summary_list %}
106     <tr>
107       <td>{{ lane.cycle_width }}</td>
108       <td>{{ lane.flowcell_id }}</td>
109       <td>{{ lane.lane_id }}</td>
110       <td>{% if lane.end %}{{ lane.end }}{% endif %}</td>
111       <td>{{ lane.clusters.0|intcomma }}</td>
112       <td>{{ lane.successful_pm }}</td>
113       <td>{{ lane.reads|intcomma }}</td>
114       <td>{{ lane.no_match|intcomma }}</td>
115       <td>{{ lane.no_match_percent|stringformat:".2f" }}</td>
116       <td>{{ lane.qc_failed|intcomma }}</td>
117       <td>{{ lane.qc_failed_percent|stringformat:".2f" }}</td>
118       <td>{{ lane.match_codes.U0|intcomma }}</td>
119       <td>{{ lane.match_codes.U1|intcomma }}</td>
120       <td>{{ lane.match_codes.U2|intcomma }}</td>
121       <td>{{ lane.unique_reads|intcomma }}</td>
122       <td>{{ lane.match_codes.R0|intcomma }}</td>
123       <td>{{ lane.match_codes.R1|intcomma }}</td>
124       <td>{{ lane.match_codes.R2|intcomma }}</td>
125       <td>{{ lane.repeat_reads|intcomma }}</td>
126     </tr>
127     {% endfor %}
128   </tbody>
129 </table>
130 <br/>
131 <hr/>
132 <h2>Count of multi-reads</h2>
133 {% for lane in lane_summary_list %}
134   {% if lane.summarized_reads %}
135   <h3>
136     {{lane.cycle_width}} {{ lane.flowcell_id }} lane {{ lane.lane_id }} 
137     {% if lane.end %} end {{ lane.end }}{% endif %}
138   </h3>
139   <ul>
140     {% for name, counts in lane.summarized_reads.items %}
141     <li><b>{{ name }}</b>: {{ counts|intcomma }}</li>
142     {% endfor %}
143   </ul>
144   {% endif %}
145 {% endfor %}
146 {% endblock %}