Commit 57266701 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team
Browse files

index.html: rename to 'normalize to', continues rename to 'constant'

parent 4207a737
......@@ -335,9 +335,9 @@
<div id="dataMenu">
<span class="closeButton" onclick="$('#dataMenu').hide('fast')">X</span>
<div> data : <span id=data_name></span></div>
<div> data: <span id=data_name></span></div>
<div>
<span>expected size : </span>
<span>normalize to: </span>
<span><input type="number" step="0.0001" id="normalized_data"></span>
<button id="normalized_data_button">ok</button>
</div>
......
......@@ -228,7 +228,7 @@ Builder.prototype = {
var span1 = document.createElement('span');
span1.appendChild(document.createTextNode("expected size : "))
span1.appendChild(document.createTextNode("normalize to: "))
var span2 = document.createElement('span');
var input = document.createElement('input');
......
......@@ -118,14 +118,14 @@ Clone.prototype = {
return result
}, //end getSize
//special getSize for scatterplot (ignore rescale)
//special getSize for scatterplot (ignore constant)
getSize2: function (time) {
time = typeof time !== 'undefined' ? time : this.m.t;
if (this.m.reads.segmented[time] == 0 ) return 0
var result = this.getReads(time) / this.m.reads.segmented[time]
if (this.m.norm && this.m.normalization.method!="rescale") result = this.m.normalize(result, time)
if (this.m.norm && this.m.normalization.method!="constant") result = this.m.normalize(result, time)
return result
},
......
......@@ -798,7 +798,7 @@ Model.prototype = {
for (var i=0; i<this.samples.number; i++){
this.normalization.A[i] = this.data[data][i]
}
this.changeNormMethod("rescale")
this.changeNormMethod("constant")
},
update_normalization: function () {
......@@ -819,7 +819,7 @@ Model.prototype = {
this.max_size = 1
this.min_size = min_size
if (this.norm && this.normalization.method=="rescale"){
if (this.norm && this.normalization.method=="constant"){
for (var i=0; i<this.samples.order.length; i++){
var max = this.normalization.B/this.normalization.A[i]
if (max>this.max_size) this.max_size=max;
......@@ -1505,8 +1505,8 @@ Model.prototype = {
changeNormMethod : function (method){
this.normalization.method=method;
if (this.normalization.type=="data" && method !="rescale"){
this.normalization.method="rescale";
if (this.normalization.type=="data" && method !="constant"){
this.normalization.method="constant";
}
this.update()
......
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