Supprose IVC plot table rows if we don't have data for a lane
[htsworkflow.git] / htsworkflow / frontend / experiments / views.py
index e1204135424dca941ca1d7a0044337b719b0ca67..a1775d4cb489dd18926e0e1e56e655a3edb88c2a 100755 (executable)
@@ -145,10 +145,15 @@ def flowcell_lane_detail(request, flowcell_id, 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)