Commit 4223e56f authored by Joao Meidanis's avatar Joao Meidanis

fixing syntax errors introduced while fixing quality errors

parent 4317cae2
Pipeline #69251 failed with stages
in 15 seconds
......@@ -1344,7 +1344,7 @@ Segment.prototype = {
lr.r2 = Math.pow((n*sum_xy - sum_x*sum_y),2)/((n*sum_xx-sum_x*sum_x)*(n*sum_yy-sum_y*sum_y));
return lr;
};
}
var html = "<h1>MRD estimation by Spike-in Analysis</h1>";
html += "<h2>version " + version + "</h2>";
......@@ -1365,9 +1365,11 @@ Segment.prototype = {
var fupClone = {};
var fupClust = {};
var spikeReads = {};
var cloneID; // auxiliary variable
var label; // auxiliary variable
for (var i = 0; i < clones.length; i++) {
var cloneID = clones[i].id;
cloneID = clones[i].id;
//console.log(clones[i].toString());
var a = clones[i].reads;
reads[cloneID] = a[0];
......@@ -1376,7 +1378,7 @@ Segment.prototype = {
totalFup += a[1];
if ('seg' in clones[i]) {
if ('3' in clones[i].seg && '5' in clones[i].seg) {
var clustID = clones[i].seg.['3'].name + '+' + clones[i].seg.['5'].name;
var clustID = clones[i].seg['3'].name + '+' + clones[i].seg['5'].name;
clustOf[cloneID] = clustID;
if (clustID in clustReads) {
clustReads[clustID] += a[0];
......@@ -1521,7 +1523,7 @@ Segment.prototype = {
} else {
//### fit curve
var lr = linearRegression(y, x);
lr = linearRegression(y, x);
f.universal = lr.slope;
r2.universal = lr.r2;
html += 'Universal coefficient estimation: ';
......
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