Mercurial > repos > jankanis > blast2html
annotate NCBI Blast reference example_files/jquery_005.js @ 120:2729c2326235
Fix for Rikilt issue 13
Hit e-value and identity% should be taken from the hsp with the highest
bit score. Previously each of these values was calculated independently.
Also use arrays for cover calculation instead of python lists and
refactor the hit_info() code a bit.
author | Jan Kanis <jan.code@jankanis.nl> |
---|---|
date | Thu, 31 Jul 2014 16:14:36 +0200 |
parents | 344cd76f6fd2 |
children |
rev | line source |
---|---|
0
bad241dc701f
add example input blast xml and output html page
Jan Kanis <jan.code@jankanis.nl>
parents:
diff
changeset
|
1 (function(){var d=jQuery.ui.button.prototype._create;jQuery.ui.button.prototype.options.color="ui-ncbibutton-gray";jQuery.ui.button.validColors=["ui-ncbibutton-gray","ui-ncbibutton-copper","ui-ncbibutton-blue"];jQuery.ui.button.classColors=["jig-ncbibutton-gray","jig-ncbibutton-copper","jig-ncbibutton-blue"];var e=function(){d.apply(this,arguments);this._addClasses()};jQuery.widget("ui.ncbibutton",jQuery.ui.button,{_create:function(){e.apply(this,arguments)},_getColor:function(){for(var a=this.options.color, |
bad241dc701f
add example input blast xml and output html page
Jan Kanis <jan.code@jankanis.nl>
parents:
diff
changeset
|
2 f=this.element[0].className,c=jQuery.ui.button.classColors,b=0;b<c.length;b++)if(f.indexOf(c[b])!==-1){a=jQuery.ui.button.validColors[b];break}if(a.indexOf("ui-ncbibutton-")!==0)a="ui-ncbibutton-"+a;if(jQuery.inArray(a,jQuery.ui.button.validColors)===-1){typeof console!=="undefined"&&console.warn&&console.warn("The color you picked: "+this.options.color+" is not a valid color choice.\n Valid colors: "+jQuery.ui.button.validColors.join(", "));a=jQuery.ui.button.validColors[0]}return a},_addClasses:function(){this.buttonElement.addClass("ui-ncbibutton").addClass(this._getColor()).removeClass("ui-button ui-widget")}})})(); |