Commit ddf250aa authored by Marc Duez's avatar Marc Duez

model.js/clone.js : toCSV -> add tag

parent 9b39557e
......@@ -291,6 +291,10 @@ Clone.prototype = {
}
},
getTagName: function () {
return tagName[this.getTag()]
},
/* compute clone color
*
......@@ -435,7 +439,7 @@ Clone.prototype = {
},
toCSV: function () {
var csv = this.getName() + "," + this.id + "," + this.getSystem() + ","
var csv = this.getName() + "," + this.id + "," + this.getSystem() + "," + this.getTagName() + ","
+ this.getV() + "," + this.getD() + "," + this.getJ() + "," + this.getSequence()
for (var i=0; i<this.m.samples.order.length; i++) csv += "," + this.getReads(this.m.samples.order[i])
......
......@@ -1556,7 +1556,7 @@ Model.prototype = {
//convert clones to csv with the current clustering/filtering
toCSV: function () {
//header
var csv = "name,id,system,v,d,j,sequence"
var csv = "name,id,system,tag,v,d,j,sequence"
for (var i=0; i<this.samples.order.length; i++) csv += ",reads_"+i
for (var i=0; i<this.samples.order.length; i++) csv += ",size_"+i
csv += "\n"
......
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