@models.permalink
def get_absolute_url(self):
+ flowcell_id, status = parse_flowcell_id(self.flowcell.flowcell_id)
return ('htsworkflow.frontend.experiments.views.flowcell_lane_detail',
- [str(self.flowcell.flowcell_id), str(self.lane_number)])
+ [str(flowcell_id), str(self.lane_number)])
### -----------------------
fc.update_data_runs()
+ dataruns = []
+ for run in fc.datarun_set.all():
+ dataruns.append((run, lane.lane_number, run.lane_files()[lane.lane_number]))
+
context = RequestContext(request,
{'lib': lane.library,
'lane': lane,
- 'flowcell': fc})
+ 'flowcell': fc,
+ 'filtered_dataruns': dataruns})
return render_to_response('experiments/flowcell_lane_detail.html',
context)
</thead>
<tbody>
{% for lane_id, lane_file_set in run.lane_files.items %}
+ {% if lane_file_set.ivc_all %}
<tr>
<td>{{ lane_id }}</td>
<td>
</a>
</td>
</tr>
+ {% endif %}
{% endfor %}
</tbody>
</table>
<td>IVC Percent Base Called</td>
</thead>
<tbody>
- {% for lane_id, lane_file_set in run.lane_files.items %}
- {% if lane_id == lane.lane_number %}
+ {% for run, lane_number, lane_file_set in filtered_dataruns %}
+ {% if lane_file_set.ivc_all %}
<tr>
- <td>{{lane_id}}</td>
+ <td>{{lane_number}}</td>
<td>
<a href="{{ lane_file_set.ivc_all.get_absolute_url }}">
<img height="84" width="126" src="{{ lane_file_set.ivc_all.get_absolute_url }}"/></a>