return HttpResponse('<br />\n'.join(output))
+def summaryhtm_fc_cnm(request, fc_id, cnm):
+ """
+ returns a Summary.htm file if it exists.
+ """
+ fc_id = flowcellIdStrip(fc_id)
+ d = get_flowcell_result_dict(fc_id)
+
+ if d is None:
+ return HttpResponse('<b>Results for Flowcell %s not found.' % (fc_id))
+
+ if cnm not in d:
+ return HttpResponse('<b>Results for Flowcell %s; %s not found.' % (fc_id, cnm))
+
+ summary_filepath = d[cnm]['summary']
+
+ if summary_filepath is None:
+ return HttpResponse('<b>Summary.htm for Flowcell %s; %s not found.' % (fc_id, cnm))
+
+ f = open(summary_filepath, 'r')
+
+ return HttpResponse(f)
+
+
def result_fc_cnm_eland_lane(request, fc_id, cnm, lane):
"""
returns an eland_file upon calling.
# c_name == 'CN-M' (i.e. C1-33)
for c_name in d:
+
+ if d[c_name]['summary'] is not None:
+ output.append('<a href="/results/%s/%s/summary/">summary(%s)</a>' \
+ % (flowcell_id, c_name, c_name))
+
erd = d[c_name]['eland_results']
if int(lane) in erd:
#(r'^databrowse/(.*)', databrowse.site.root),
(r'^library/$', 'gaworkflow.frontend.fctracker.views.library'),
(r'^library/(?P<lib_id>\w+)/$', 'gaworkflow.frontend.fctracker.views.library_to_flowcells'),
+ (r'^results/(?P<fc_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/summary/','gaworkflow.frontend.fctracker.views.summaryhtm_fc_cnm'),
(r'^results/(?P<fc_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/eland_result/(?P<lane>[1-8])','gaworkflow.frontend.fctracker.views.result_fc_cnm_eland_lane'),
(r'^results/(?P<fc_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/bedfile/(?P<lane>[1-8])/ucsc','gaworkflow.frontend.fctracker.views.bedfile_fc_cnm_eland_lane_ucsc'),
(r'^results/(?P<fc_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/bedfile/(?P<lane>[1-8])','gaworkflow.frontend.fctracker.views.bedfile_fc_cnm_eland_lane'),