Add "Count of multi-reads" back into the library page
[htsworkflow.git] / htsworkflow / frontend / templates / samples / library_detail.html
index dbab436671e60d0cfd4b007f85634d2830dedc07..918dc4f3a5da04fe3a06eafd1b8a7d0db3475c42 100644 (file)
@@ -88,7 +88,7 @@
   
       {# ls short for lane summary #}
       {% for ls in lane_summary_list %}
-      <tr about="{{ls.lane.get_absolute_url">
+      <tr about="{{ls.lane.get_absolute_url}}">
         <td>{{ ls.cycle_width }}</td>
         <td><a href="{{ls.flowcell.get_absolute_url}}">{{ ls.flowcell_id }}</a></td>
         <td><a href="{{ls.lane.get_absolute_url}}">{{ ls.lane_id }}</a></td>
     <tbody>
       {% for lane in lib.lane_set.all %}
       <tr rel="libns:has_lane" resource="{{lane.get_absolute_url}}">
-        <td><a href="{{lane.flowcell.get_absolute_url}}" rel="libns:flowcell">
-            <span property="libns:flowcell_id">{{ lane.flowcell.flowcell_id }}</span></a></td>
+        <td><a href="{{lane.flowcell.get_absolute_url}}" rel="libns:flowcell"
+            ><span property="libns:flowcell_id">{{ lane.flowcell.flowcell_id }}</span></a></td>
         <td><a href="{{lane.get_absolute_url}}"> 
             <span property="libns:lane_number"  datatype="xsd:decimal"
                >{{ lane.lane_number }}</span></a></td>
          {% endfor %}
     </tbody>
   </table>
+  <br/>
+  <hr/>
+  <h2>Count of multi-reads</h2>
+  {% for eland_lane in lane_summary_list %}
+    {% if eland_lane.summarized_reads %}
+    <h3>{{eland_lane.cycle_width}} {{ eland_lane.flowcell_id }} lane {{ eland_lane.lane_id }} 
+      {% if eland_lane.end %} end {{ eland_lane.end }}{% endif %}
+    </h3>
+    <ul about="{{eland_lane.lane.get_absolute_url}}">
+      {% for name, counts in eland_lane.summarized_reads.items %}
+      <li rel="libns:has_mappings">
+         <b property="libns:mapped_to">{{ name }}</b>: 
+         <span property="libns:reads" content="{{counts}}" datatype="xsd:integer">{{ counts|intcomma }}</span></li>
+      {% endfor %}
+    </ul>
+    {% endif %}
+  {% endfor %}
   {% endblock %}
   </div>
 </div>