Commit 7f7eeefd authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

scatterPlot.js: GC content

parent 1fc339c7
......@@ -105,6 +105,7 @@ function ScatterPlot(id, model) {
["allele_j", "allele J"],
["Size", "abundance"],
["sequenceLength", "clone length"],
["GCContent", "GC content"],
["n", "N length"],
["lengthCDR3", "CDR3 length"]
];
......@@ -805,6 +806,13 @@ ScatterPlot.prototype = {
return undefined;
})
break;
case "GCContent" :
this.makeBarTab(function(cloneID) {
var value = m.clone(cloneID).getGCContent()
if (typeof value != "undefined" && value != 0) return value;
return undefined;
})
break;
case "n" :
this.makeBarTab(function(cloneID) {
var value = m.clone(cloneID).getNlength()
......@@ -842,6 +850,9 @@ ScatterPlot.prototype = {
case "sequenceLength" :
this.sortBarTab(function(cloneID) {return m.clone(cloneID).getSequenceLength()})
break;
case "GCContent" :
this.sortBarTab(function(cloneID) {return m.clone(cloneID).getGCContent()})
break;
case "n" :
this.sortBarTab(function(cloneID) {return m.clone(cloneID).getNlength()})
break;
......@@ -1975,6 +1986,15 @@ ScatterPlot.prototype = {
return undefined;
})
break;
case "GCContent" :
axis.custom(function(cloneID) {
var value = m.clone(cloneID)
.getGCContent()
if (typeof value != "undefined" && value != 0) return value;
return undefined;
})
break;
case "n" :
axis.custom(function(cloneID) {
var value = m.clone(cloneID)
......
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