From 83d11649b502b1a8039f1a71dd92ce2e76a38189 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Tue, 5 May 2009 19:21:30 +0000 Subject: [PATCH] Update the django app to report "raw reads" for a sequence lane. I still need to figure out how to allow downloading of the "result" files. --- htsworkflow/frontend/samples/views.py | 12 +++++++++--- .../frontend/templates/samples/library_detail.html | 10 ++++++---- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/htsworkflow/frontend/samples/views.py b/htsworkflow/frontend/samples/views.py index 478c547..86c1511 100644 --- a/htsworkflow/frontend/samples/views.py +++ b/htsworkflow/frontend/samples/views.py @@ -142,9 +142,12 @@ def result_fc_cnm_eland_lane(request, fc_id, cnm, lane): filepath = erd[lane] - f = opener.autoopen(filepath, 'r') + #f = opener.autoopen(filepath, 'r') + # return HttpResponse(f, mimetype="application/x-elandresult") + + f = open(filepath, 'r') + return HttpResponse(f, mimetype='application/x-bzip2') - return HttpResponse(f, mimetype="application/x-elandresult") def bedfile_fc_cnm_eland_lane_ucsc(request, fc_id, cnm, lane): @@ -219,7 +222,10 @@ def _summary_stats(flowcell_id, lane_id): eland_summary.flowcell_id = flowcell_id eland_summary.clusters = gerald_summary[end][lane_id].cluster eland_summary.cycle_width = cycle_width - eland_summary.summarized_reads = runfolder.summarize_mapped_reads(eland_summary.genome_map, eland_summary.mapped_reads) + if hasattr(eland_summary, 'genome_map'): + eland_summary.summarized_reads = runfolder.summarize_mapped_reads( + eland_summary.genome_map, + eland_summary.mapped_reads) # grab some more information out of the flowcell db flowcell = FlowCell.objects.get(flowcell_id=fc_id) diff --git a/htsworkflow/frontend/templates/samples/library_detail.html b/htsworkflow/frontend/templates/samples/library_detail.html index fbaf1a0..4c5c2b8 100644 --- a/htsworkflow/frontend/templates/samples/library_detail.html +++ b/htsworkflow/frontend/templates/samples/library_detail.html @@ -125,14 +125,16 @@

Count of multi-reads

{% for lane in lane_summary_list %} -

- {{lane.cycle_width}} {{ lane.flowcell_id }} lane {{ lane.lane_id }} - {% if lane.end %} end {{ lane.end }}{% endif %} -

+ {% if lane.summarized_reads %} +

+ {{lane.cycle_width}} {{ lane.flowcell_id }} lane {{ lane.lane_id }} + {% if lane.end %} end {{ lane.end }}{% endif %} +

+ {% endif %} {% endfor %} {% endblock %} -- 2.30.2