Commit 3782726d authored by Marc Duez's avatar Marc Duez

pdf.js : debug total reads

parent bbf50a9f
......@@ -259,7 +259,7 @@ PDF.prototype = {
this.doc.setFont('helvetica', 'normal');
this.checkPage(20)
if (this.m.reads_total) this.checkPage(30)
if (this.m.reads.total) this.checkPage(30)
//time point
var time = []
......@@ -270,19 +270,19 @@ PDF.prototype = {
this.next_row()
//info global
if (this.m.reads_total) {
this.row('total reads', this.m.reads_total, 'raw')
if (this.m.reads.total) {
this.row('total reads', this.m.reads.total, 'raw')
this.next_row()
}
this.row('total segmented', this.m.reads.segmented, 'raw');
if (this.m.reads_total) {
if (this.m.reads.total) {
this.next_sub_row()
var data = []
for (var i = 0; i < this.m.samples.number; i++) {
data[i] = this.m.reads.segmented[i] / this.m.reads_total[i]
data[i] = this.m.reads.segmented[i] / this.m.reads.total[i]
}
this.row('', data, '%')
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment