X-Git-Url: http://woldlab.caltech.edu/gitweb/?a=blobdiff_plain;f=htsworkflow%2Ffrontend%2Fsamples%2Fviews.py;h=86c15117e8c2440d3ff7d088053a054f2047c8ff;hb=83d11649b502b1a8039f1a71dd92ce2e76a38189;hp=478c547030e57a8a303ad9f2c0db4627b38aadc4;hpb=c553e004ef9974a82b7d4fcd5e995d898e92ed67;p=htsworkflow.git 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)