Supprose IVC plot table rows if we don't have data for a lane
[htsworkflow.git] / htsworkflow / frontend / templates / experiments / flowcell_lane_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 <div id="lane_detail" class="htswdetail">
14   <h2>About this lane</h2>
15   <div rel="libns:flowcell" resource="{{flowcell.get_absolute_url}}">
16   <b>Flowcell</b>: 
17     <a href="{{flowcell.get_absolute_url}}">{{flowcell.flowcell_id}}</a><br/>
18   <b>Run Date</b>:
19     <span property="libns:date" content="{{flowcell.run_date|date:'Y-m-d\TH:i:s'}}" datatype="xsd:dateTime">{{ flowcell.run_date }}</span><br/>
20   <b>Type</b>: 
21     <span property="libns:flowcell_type">{{flowcell.flowcell_type}}</span><br/>
22   </div>
23   <b>Lane</b>: 
24     <span property="libns:lane_number" datatype="xsd:decimal">{{lane.lane_number}}</span><br/>
25   <b>Cycles</b>: 
26     <span property="libns:read_length">{{lane.flowcell.read_length}}</span><br/>
27   <b>pM</b>
28     <span property="libns:pM" datatype="xsd:decimal">{{ lane.pM }}</span><br/>
29   <b>Cluster Estimate</b>
30     <span property="libns:cluster_estimate" datatype="xsd:decimal"
31           content="{{lane.cluster_estimate}}">{{ lane.cluster_estimate|intcomma }}</span><br/>
32   <b>Lane Status</b>: 
33     <span property="libns:status">{{ lane.status }}</span><br/>
34   <b>Comment</b>: 
35     <span property="libns:comment">{{ lane.comment }}</span><br/>
36   <hr/>
37   {% include "sample_header.html" %}
38   <hr/>
39   <div class="htsw_flowcell_ivc">
40   {% for run in flowcell.datarun_set.all %}
41      <h2>Run {{ run.runfolder_name }}</h2>
42      <table>
43        <thead>
44          <tr>
45            <td>Lane</td>
46            <td>IVC All</td>
47            <td>IVC Call</td>
48            <td>IVC Percent Base</td>
49            <td>IVC Percent Base All</td>
50            <td>IVC Percent Base Called</td>
51        </thead>
52        <tbody>
53           {% for run, lane_number, lane_file_set in filtered_dataruns %}
54           {% if lane_file_set.ivc_all %}
55           <tr>
56             <td>{{lane_number}}</td>
57             <td>
58               <a href="{{ lane_file_set.ivc_all.get_absolute_url }}">
59               <img height="84" width="126" src="{{ lane_file_set.ivc_all.get_absolute_url }}"/></a>
60             </td>
61             <td>
62               <a href="{{ lane_file_set.ivc_call.get_absolute_url }}">
63               <img height="84" width="126" src="{{ lane_file_set.ivc_call.get_absolute_url }}"/>
64               </a>
65             </td>
66             <td>
67               <a href="{{ lane_file_set.ivc_percent_base.get_absolute_url }}">
68               <img height="84" width="126" src="{{ lane_file_set.ivc_percent_base.get_absolute_url }}"/>
69               </a>
70             </td>
71             <td>
72               <a href="{{ lane_file_set.ivc_percent_all.get_absolute_url }}">
73               <img height="84" width="126" src="{{ lane_file_set.ivc_percent_all.get_absolute_url }}"/>
74               </a>
75             </td>
76             <td>
77               <a href="{{ lane_file_set.ivc_percent_call.get_absolute_url }}">
78               <img height="84" width="126" src="{{ lane_file_set.ivc_percent_call.get_absolute_url }}"/>
79               </a>
80             </td>
81           </tr>
82           {% endif %}
83           {% endfor %} 
84        </tbody>
85      </table>
86   {% endfor %}
87   </div>
88 {% endblock %}