Use htsworkflow ontology to validate various RDF using components.
[htsworkflow.git] / htsworkflow / frontend / templates / experiments / flowcell_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="flowcell_detail">
14   {% include "experiments/flowcell_header.html" %}
15   <div class="htswdetail">
16     <h2>Lanes</h2>
17     <table>
18       <thead>
19        <tr>
20          <td>Lane</td>
21          <td>Library ID</td>
22          <td>Library Name</td>
23          <td>Species</td>
24          <td>Comment</td>
25        </tr>
26       </thead>
27       <tbody>
28       {% for lane in lanes %}
29         <tr rel="libns:has_lane">
30           <div typeof="libns:IlluminaLane" about="{{lane.get_absolute_url}}">
31           <td>
32             <a href="{{lane.get_absolute_url}}">
33               <span property="libns:lane_number" datatype="xsd:decimal"
34                     >{{lane.lane_number}}</span>
35             </a>
36           </td>
37           <div rel="libns:library">
38           <div typeof="libns:Library" about="{{lane.library.get_absolute_url}}">
39           <td>
40             <a href="{{lane.library.get_absolute_url}}">
41               <span property="libns:library_id"
42                     >{{lane.library.id}}</span></a>
43               {% if user.is_staff %}
44               <a href="{{lane.library.get_admin_url}}">
45                   <img class="icon_button"
46                        src="/media/img/admin/icon_changelink.gif"/>
47               </a>{% endif %}
48           </td>
49           <td><a href="{{lane.library.get_absolute_url}}">
50               <span property="libns:name">{{lane.library.library_name}}</span>
51           </a></td>
52           <td rel="libns:species">
53             <a href="{{lane.library.library_species.get_absolute_url}}"
54                typeof="libns:Species">
55               <span property="libns:species_name">{{ lane.library.library_species.scientific_name }}</span></a></td>
56           </div> <!-- end library class -->
57           </div> <!-- end library relation -->
58           <td><span property="libns:comment">{{lane.comment}}</span></td>
59           </div> <!-- end lane -->
60         </tr>
61       {% endfor %}
62       </tbody>
63     </table>
64     </div>
65     <div class="htsw_flowcell_ivc">
66     {% for run in flowcell.datarun_set.all %}
67        <h2>Run {{ run.runfolder_name }}</h2>
68        <table>
69          <thead>
70            <tr>
71              <td>Lane</td>
72              <td>IVC All</td>
73              <td>IVC Call</td>
74              <td>IVC Percent Base</td>
75              <td>IVC Percent Base All</td>
76              <td>IVC Percent Base Called</td>
77          </thead>
78          <tbody>
79             {% for lane_id, lane_file_set in run.lane_files.items %}
80             {% if lane_file_set.ivc_all %}
81             <tr>
82               <td>{{ lane_id }}</td>
83               <td>
84                 <a href="{{ lane_file_set.ivc_all.get_absolute_url }}">
85                 <img height="84" width="126" src="{{ lane_file_set.ivc_all.get_absolute_url }}"/></a>
86               </td>
87               <td>
88                 <a href="{{ lane_file_set.ivc_call.get_absolute_url }}">
89                 <img height="84" width="126" src="{{ lane_file_set.ivc_call.get_absolute_url }}"/>
90                 </a>
91               </td>
92               <td>
93                 <a href="{{ lane_file_set.ivc_percent_base.get_absolute_url }}">
94                 <img height="84" width="126" src="{{ lane_file_set.ivc_percent_base.get_absolute_url }}"/>
95                 </a>
96               </td>
97               <td>
98                 <a href="{{ lane_file_set.ivc_percent_all.get_absolute_url }}">
99                 <img height="84" width="126" src="{{ lane_file_set.ivc_percent_all.get_absolute_url }}"/>
100                 </a>
101               </td>
102               <td>
103                 <a href="{{ lane_file_set.ivc_percent_call.get_absolute_url }}">
104                 <img height="84" width="126" src="{{ lane_file_set.ivc_percent_call.get_absolute_url }}"/>
105                 </a>
106               </td>
107             </tr>
108             {% endif %}
109             {% endfor %}
110          </tbody>
111        </table>
112     {% endfor %}
113     </div>
114 </div>
115 {% endblock %}