Commit 79fb0266 authored by Aurélien Béliard's avatar Aurélien Béliard Committed by Mathieu Giraud
Browse files

js/model.js, js/clone.js: .cloneNotationType, short notations of clone names

See #1765
parent f509c115
......@@ -120,7 +120,20 @@ Clone.prototype = {
z = s.match(this.REGEX_N);
if (z)
{
short_name_items.push(Math.abs(z[1]) + '/' + nullIfZero(z[2].length) + '/' + Math.abs(z[3]))
if (this.m.cloneNotationType == 'nucleotide_number'){
short_name_items.push(Math.abs(z[1]) + '/' + nullIfZero(z[2].length) + '/' + Math.abs(z[3]));
}
else if(this.m.cloneNotationType == 'short_sequence'){
if (z[2].length <= 6){
short_name_items.push(s);
} else{
short_name_items.push(Math.abs(z[1]) + '/' + nullIfZero(z[2].length) + '/' + Math.abs(z[3]));
}
}
else{
short_name_items.push(s);
}
continue
}
......
......@@ -165,7 +165,8 @@ Model.prototype = {
this.dataFileName = '';
this.analysisFileName = '';
this.db_key = "" //for file who came from the database
this.cloneNotationType="nucleotide_number";
this.norm = false;
this.normalization = {
"method" : "constant",
......
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