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):
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)
<hr/>
<h2>Count of multi-reads</h2>
{% for lane in lane_summary_list %}
-<h3>
- {{lane.cycle_width}} {{ lane.flowcell_id }} lane {{ lane.lane_id }}
- {% if lane.end %} end {{ lane.end }}{% endif %}
-</h3>
+ {% if lane.summarized_reads %}
+ <h3>
+ {{lane.cycle_width}} {{ lane.flowcell_id }} lane {{ lane.lane_id }}
+ {% if lane.end %} end {{ lane.end }}{% endif %}
+ </h3>
<ul>
{% for name, counts in lane.summarized_reads.items %}
<li><b>{{ name }}</b>: {{ counts|intcomma }}</li>
{% endfor %}
</ul>
+ {% endif %}
{% endfor %}
{% endblock %}