Use htsworkflow ontology to validate various RDF using components.
[htsworkflow.git] / htsworkflow / frontend / templates / experiments / flowcell_header.html
index 15ccdae05e5cd0eae02476fe8d36d193c5832c15..412d3ac6b16ae4a02d4243f983787677f0bf9173 100644 (file)
@@ -2,7 +2,32 @@
   <h2>About this Flowcell</h2>
   <b>Flowcell</b>:
     <a href="{{flowcell.get_absolute_url}}" property="libns:flowcell_id">{{flowcell.flowcell_id}}</a>{% if user.is_staff %}<a href="{{flowcell.get_admin_url}}"><img class="icon_button" src="/media/img/admin/icon_changelink.gif" alt="Edit"/></a>{% endif%}
-  <br property="rdf:type" content="libns:illumina_flowcell"/>
+  <br rel="rdf:type" resource="http://jumpgate.caltech.edu/wiki/LibraryOntology#IlluminaFlowcell"/>
+  <div rel="libns:sequenced_by">
+  <div typeof="libns:Sequencer"
+       about="{{flowcell.sequencer.get_absolute_url}}">
+  <b>Instrument</b>:
+    <span property="libns:sequencer_name">{{ flowcell.sequencer.name }}</span>
+    {% if flowcell.sequencer.instrument_name %}
+    (<span property="libns:sequencer_instrument">{{ flowcell.sequencer.instrument_name}}</span>)
+    {% endif %}
+    <br/>
+  <b>Instrument Model</b>:
+    <span property="libns:sequencer_model">{{flowcell.sequencer.model}}</span>
+    <br/>
+  </div>
+  </div>
+  {% for datarun in flowcell.datarun_set.all %}
+  <b>Image Analysis</b>:
+    <span property="libns:image_software">{{datarun.image_software}}</span>
+    <span property="libns:image_version">{{datarun.image_version}}</span><br/>
+  <b>Base Caller</b>:
+    <span property="libns:basecall_software">{{datarun.basecall_software}}</span>
+    <span property="libns:basecall_version">{{datarun.basecall_version}}</span><br/>
+  <b>Alignment</b>:
+    <span property="libns:alignment_software">{{datarun.alignment_software}}</span>
+    <span property="libns:alignment_version">{{datarun.alignment_version}}</span><br/>
+  {% endfor %}
   <b>Run Date</b>:
     <span property="libns:date" content="{{flowcell.run_date|date:'Y-m-d\TH:i:s'}}" datatype="xsd:dateTime">{{ flowcell.run_date }}</span><br/>
   <b>Type</b>:
@@ -10,7 +35,7 @@
   <b>Read Length</b>:
     <span property="libns:read_length" datatype="xsd:decimal">{{flowcell.read_length}}</span><br/>
   <b>Control Lane</b>:
-    <span property="libns:control_lane">{{flowcell.control_lane}}</span><br/>
+    <span property="libns:control_lane" datatype="xsd:decimal">{{flowcell.control_lane}}</span><br/>
 
   <b>Notes</b>:
     <pre property="libns:flowcell_notes">{{flowcell.notes}}</pre>