+
+def _make_eland_results(flowcell_id, lane, interesting_flowcells):
+
+ cur_fc = interesting_flowcells[flowcell_id]
+ results = []
+ for cycle in cur_fc.keys():
+ result_path = cur_fc[cycle]['eland_results'][lane]
+ result_link = make_result_link(flowcell_id, cycle, lane, result_path)
+ results.append({'flowcell_id': flowcell_id,
+ 'cycle': cycle,
+ 'lane': lane,
+ 'summary_url': make_summary_url(flowcell_id, cycle),
+ 'result_url': result_link[0],
+ 'result_label': result_link[1],
+ 'bed_url': result_link[2],
+ })
+ return results
+
+def make_summary_url(flowcell_id, cycle_name):
+ url = '/results/%s/%s/summary/' % (flowcell_id, cycle_name)
+ return url
+
+def make_result_link(flowcell_id, cycle_name, lane, eland_result_path):
+ result_type = get_eland_result_type(eland_result_path)
+ result_url = '/results/%s/%s/eland_result/%s' % (flowcell_id, cycle_name, lane)
+ result_label = 'eland %s' % (result_type,)
+ bed_url = None
+ if result_type == 'result':
+ bed_url_pattern = '/results/%s/%s/bedfile/%s'
+ bed_url = bed_url_pattern % (flowcell_id, cycle_name, lane)
+
+ return (result_url, result_label, bed_url)
+