def flowcell_detail(request, flowcell_id):
- fc = get_object_or_404(FlowCell, flowcell_id=flowcell_id)
+ fc = get_object_or_404(FlowCell, flowcell_id__startswith=flowcell_id)
fc.update_data_runs()
context = RequestContext(request,
context)
def flowcell_lane_detail(request, flowcell_id, lane_number):
- fc = get_object_or_404(FlowCell, flowcell_id=flowcell_id)
+ fc = get_object_or_404(FlowCell, flowcell_id__startswith=flowcell_id)
lane = get_object_or_404(fc.lane_set, lane_number=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)