Commit d5d78bf5 authored by Mikaël Salson's avatar Mikaël Salson

clone.js: Display seg information in info box

Information from seg is displayed (nt sequences extracted using start
and stop). Some info can be omitted if needed
parent 6d796962
......@@ -931,7 +931,22 @@ Clone.prototype = {
html += "<tr><td> V gene (or 5') </td><td colspan='" + time_length + "'>" + this.getGene("5") + "<div class='div-menu-selector' id='listVsegment' style='display: none'>" + this.createSegmentList("Vsegment") + "</div></td></tr>"
html += "<tr><td> (D gene) </td><td colspan='" + time_length + "'>" + this.getGene("4") + "<div class='div-menu-selector' id='listDsegment' style='display: none'>" + this.createSegmentList("Dsegment") + "</div></td></tr>"
html += "<tr><td> J gene (or 3') </td><td colspan='" + time_length + "'>" + this.getGene("3") + "<div class='div-menu-selector' id='listJsegment' style='display: none'>" + this.createSegmentList("Jsegment") + "</div></td></tr>"
// Other seg info
var exclude_seg_info = ['affectSigns', 'affectValues']
for (var key in this.seg) {
if (exclude_seg_info.indexOf(key) == -1 && this.seg[key] instanceof Object) {
var nt_seq = this.getSegNtSequence(key);
if (nt_seq != '') {
html += "<tr><td> "+key+" </td><td colspan='" + time_length + "'>" + this.getSegNtSequence(key) + "</td></tr>"
}
}
}
if (typeof this.seg['junction'] != 'undefined'
&& this.seg.junction.productive == true) {
html += "<tr><td> Junction (AA seq) </td><td colspan='" + time_length + "'>" + this.getSegAASequence('junction') + "</td></tr>"
}
//other info (clntab)
html += "<tr><td class='header' colspan='" + (time_length + 1) + "'> &nbsp; </td></tr>"
......
......@@ -51,6 +51,13 @@ to access the public server at http://rbx.vidjil.org/.
disappear until the user clicks on it.
In the =console.log=, the field =priority= takes one of those priorities.
** Classes
*** Clone
**** Info box
In the info box all the fields starting with a _ are put. Also all the
fields under the =seg= field are displayed as soon as they have a =start= and
=stop=. Some of them can be explicitly not displayed by filling the
=exclude_seg_info= array in =getHtmlInfo=.
* Server
** Notifications
*** Priority
......
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