Commit b4e31ab7 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

segmenter.js: isClone(), isGermline()

parent 7a446429
...@@ -540,6 +540,14 @@ Segment.prototype = { ...@@ -540,6 +540,14 @@ Segment.prototype = {
this.updateStats(); this.updateStats();
}, },
isClone: function (id) {
return ((typeof this.m.clone(id) != "undefined") && this.m.clone(id).isSelected())
},
isGermline: function (id) {
return (typeof this.germline[this.sequence[id].locus] != "undefined")
},
/** /**
* enable/disable align button if their is currently enough sequences selected * enable/disable align button if their is currently enough sequences selected
* */ * */
...@@ -1309,16 +1317,6 @@ genSeq.prototype= { ...@@ -1309,16 +1317,6 @@ genSeq.prototype= {
} }
return marge + result.innerHTML; return marge + result.innerHTML;
}, },
getType: function () {
if (typeof this.m.germline[this.locus][this.id] != "undefined"){
return "germline"
}
else{
return "not germline"
}
},
}; };
/** /**
......
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