genevalidator 1.6.3 → 1.6.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: baf7ab75411220ac2f8442f2ea7f0c7050c30363
4
- data.tar.gz: 83f9d93c8e804229c8a9c7c37f247e6b394cfce5
3
+ metadata.gz: 6ab0ac4bc3da6be1467b8e547f2ca6568d90deb0
4
+ data.tar.gz: c4a7e5c7909f918b9449644d3de65cc4974181a1
5
5
  SHA512:
6
- metadata.gz: f38c3b75a8e07c0fbf6804b0055392eb4eda38be90e967bbb85fd41033095b4f4516dca3bd063e48a1eb21ff8a673d96d55951cfb24131dc22c9bf8301d69b4d
7
- data.tar.gz: 3e11e3d2f72e867a4df33d2e6ce10b10893f7d25ae9e8d6800b5254f7cdfafa278fa4216c35d001ff5bf8b7b38228fb08e6d4c9bf2bdbbd17463a6ad39bc9625
6
+ metadata.gz: 2146dce5ce583432d03059466d8dc86a3a939a098b1ff5477d3aeb12291c8791091156584518062fb18191bfcba3e77a5c8bfdee4ba9dbe557797bfae990da09
7
+ data.tar.gz: 8bfddfb7d7c496e2d99775f56053f41f8180c0d7f074286383852750dcf4ebabfc11fa63cf56ba4044e6973d9639bd7ad064e7a371cca68437deaedf682e12da
@@ -25,4 +25,4 @@ return this.tween("attr."+n,u.local?r:e)},Yc.style=function(n,t,e){function r(){
25
25
  // plot.js
26
26
  var GV;GV||(GV={}),function(){"use strict";GV.toggleAllPlots=function(t){if(window.chrome&&"file:"===window.location.protocol)$("#browseralert").modal();else{var a=$(".plot_btn");a.length>30?$("#alert").modal():($("#spinner1").modal({backdrop:"static",keyboard:"false"}),"pressed"!==t.status?(t.status="pressed",$("#show_all_plots").html("Hide All Charts"),GV.showAllPlots()):(t.status="released",$("#show_all_plots").html("Show All Charts"),GV.removeAllPlots()),$("#spinner1").modal("hide"))}},GV.showAllPlots=function(){$(".plot_btn").each(function(){"pressed"!==this.status&&GV.addData(this,"all")})},GV.removeAllPlots=function(){$(".tablesorter-childRow").each(function(){$(this).remove()}),$(".plot_btn").each(function(){this.status="released"})},GV.addData=function(t,a){if(window.chrome&&"file:"===window.location.protocol)$("#browseralert").modal();else{var e=$(t).closest("tr"),r=e.attr("data-target"),n=$("#mainrow"+r);n.length&&"pressed"!==t.status?(GV.emptyChildRow(e,r,t),GV.addDataToChildRow(e,r,a)):0===n.length?(GV.createChildRow(e,r,t),GV.addDataToChildRow(e,r,a)):n.length&&GV.removeChildRow(e,n,t),$("table").trigger("update")}},GV.toggleOverviewBtn=function(){if(window.chrome&&"file:"===window.location.protocol)$("#overview").remove();else{var t="files/json/overview.json";$.getJSON(t,function(t){var a=$("<span>"+t.less+"</span><br>"),e=$("<span>"+t.evaluation+"</span><br>");$("#overview_btn").hasClass("active")?($("#overview_text").html(e),$("#overview_btn").text("Show Less"),GV.addPlot(t.data,"overview",t.type,t.title,t.footer,t.xtitle,t.ytitle)):($("#overview").find("svg").remove(),$("#overview_text").html(a),$("#overview_btn").text("Show More"))})}},GV.createChildRow=function(t,a,e){var r='<tr class="tablesorter-childRow" id="mainrow'+a+'"><td colspan="12" id="row'+a+'"><div id="'+a+'" class="expanded-child"></div></td></tr>';t.addClass("tablesorter-hasChildRow"),t.after(r),e.status="pressed"},GV.removeChildRow=function(t,a,e){t.removeClass("tablesorter-hasChildRow"),a.remove(),e.status="released"},GV.emptyChildRow=function(t,a,e){var r="#"+a,n="#"+a+"explanation";$(r).empty(),$(n).remove(),GV.resetStatusOfOtherButtons(t),e.status="pressed"},GV.resetStatusOfOtherButtons=function(t){t.find("td").each(function(){"pressed"==this.status&&(this.status="released")}),t.find(".plot_btn").each(function(){"pressed"==this.status&&(this.status="released")})},GV.addDataToChildRow=function(t,a,e){var r=t.attr("data-jsonFile");$.getJSON(r,function(t){if("all"===e)for(var r in t.validations)void 0!==t.validations[r].graphs&&GV.generatePlotCommands(t.validations[r].graphs,a);else GV.addExplanation(a,t.validations[e]),void 0!==t.validations[e].graphs&&GV.generatePlotCommands(t.validations[e].graphs,a)})},GV.generatePlotCommands=function(t,a){for(var e=0;e<t.length;e++){var r=t[e];GV.addPlot(r.data,a,r.type,r.title,r.footer,r.xtitle,r.ytitle,r.aux1,r.aux2)}},GV.addExplanation=function(t,a){var e="#row"+t,r="<p><b>Approach:</b> "+a.approach+"</p>",n="<p><b>Explanation:</b> "+a.explanation+"</p>",o="<p><b>Conclusion:</b> "+a.conclusion+"</p>",l=$('<div id="'+t+'explanation" class="alert alert-info explanation_alert" role="alert">'+r+n+o+"</div>");$(e).prepend(l)},GV.addPlot=function(t,a,e,r,n,o,l,s,i){var c;switch(c=""===n?[]:n.split(";"),e){case"scatter":GV.plot_scatter(t,a,r,n,o,l,s,i);break;case"bars":GV.plot_bars(t,a,r,c,o,l,s);break;case"simplebars":GV.plot_simple_bars(t,a,r,c,o,l);break;case"lines":null!==i&&(i=i.split(",")),GV.plot_lines(t,a,r,c,o,l,s,i);break;case"align":null!==i&&(i=i.split(",")),GV.plot_align(t,a,r,c,o,l,s,i)}},GV.color_beautification=function(t){switch(t){case"red":return d3.rgb(189,54,47);case"blue":return d3.rgb(58,135,173);case"green":return d3.rgb(70,136,71);case"yellow":return d3.rgb(255,255,51);case"orange":return d3.rgb(248,148,6);case"violet":return d3.rgb(153,0,153);case"gray":return d3.rgb(160,160,160);default:return t}},GV.plot_bars=function(t,a,e,r,n,o,l){var s={top:70,right:50,bottom:75,left:50},i=600-s.left-s.right,c=500-s.top-s.bottom,d=d3.select("#".concat(a)).append("svg").attr("width",i+s.left+s.right).attr("height",c+s.top+s.bottom).append("g").attr("transform","translate("+s.left+","+s.top+")");d.append("text").attr("x",i/2).attr("y",-45).attr("text-anchor","middle").style("font-size","16px").text(e);var p=100,u=[].concat.apply([],t),f=d3.max(u,function(t){return t.value})+3,h=d3.scale.linear().domain([0,f+f/10]).range([c,0]),x=d3.min(u,function(t){return t.key});void 0!==l&&(x=Math.min(x,l));var g=d3.max(u,function(t){return t.key});void 0!==l&&(g=Math.max(g,l));var m=d3.scale.linear().domain([x-p,g+p]).range([13,i]),v=d3.svg.axis().scale(m).orient("bottom").ticks(8),y=d3.svg.axis().scale(h).orient("left").tickFormat(d3.format("d")).ticks(8);d.append("g").attr("class","x axis").attr("transform","translate(0,"+c+")").call(v).append("text").attr("class","label").attr("x",(i-n.length)/2-50).attr("y",35).style("text-anchor","start").text(n),d.append("g").attr("class","y axis").call(y).append("text").attr("class","label").attr("transform","rotate(-90)").attr("x",-(c+o.length)/2-50).attr("y",-40).style("text-anchor","start").text(o),t.map(function(t){d.selectAll(".bar").data(t).enter().append("rect").attr("x",function(t){return m(t.key)}).attr("width",6).attr("y",function(t){return h(t.value)}).attr("height",function(t){return c-h(t.value)}).attr("fill",function(t){return t.main===!0?GV.color_beautification("red"):GV.color_beautification("blue")})}),void 0!==l&&(d.append("rect").attr("x",m(l)).attr("width",4).attr("y",h(f+f/10)).style("opacity",.6).attr("height",c-h(f+f/8)).attr("fill",GV.color_beautification("black")),d.append("text").attr("transform","rotate(-90)").attr("x",-f/10-35).attr("y",m(l)-5).text("query"));for(var b=0,w=0,G=0;G<r.length;G++){var V=r[G].split(",");w=w+8*V[0].length+15}for(var k=0;k<r.length;k++){var _=r[k].split(",");d.append("rect").attr("x",(i-w)/2+b).attr("y",-30).attr("width",10).attr("height",10).style("fill",GV.color_beautification(_[1].replace(/\s+/g,""))),d.append("text").attr("x",(i-w)/2+b+15).attr("y",-20).text(_[0]),b=b+8*_[0].length+15}},GV.plot_simple_bars=function(t,a,e,r,n,o){var l={top:70,right:50,bottom:75,left:50},s=600-l.left-l.right,i=500-l.top-l.bottom,c=d3.select("#".concat(a)).append("svg").attr("width",s+l.left+l.right).attr("height",i+l.top+l.bottom).append("g").attr("transform","translate("+l.left+","+l.top+")");c.append("text").attr("x",s/2).attr("y",-45).attr("text-anchor","middle").style("font-size","16px").text(e);var d=0,p=[].concat.apply([],t),u=d3.max(p,function(t){return t.value})+3,f=d3.scale.linear().domain([0,u]).range([i,0]),h=d3.min(p,function(t){return t.key}),x=d3.max(p,function(t){return t.key}),g=d3.scale.linear().domain([h-d,x+d]).range([13,s]),m=d3.svg.axis().scale(g).orient("bottom").ticks(8),v=d3.svg.axis().scale(f).orient("left").tickFormat(d3.format("d")).ticks(8);c.append("g").attr("class","x axis").attr("transform","translate(0,"+i+")").call(m).append("text").attr("class","label").attr("x",(s-n.length)/2-50).attr("y",35).style("text-anchor","start").text(n),c.append("g").attr("class","y axis").call(v).append("text").attr("class","label").attr("transform","rotate(-90)").attr("x",-(i+o.length)/2-50).attr("y",-40).style("text-anchor","start").text(o),t.map(function(t){c.selectAll(".bar").data(t).enter().append("rect").attr("x",function(t){return g(t.key)}).attr("width",6).attr("y",function(t){return f(t.value)}).attr("height",function(t){return i-f(t.value)}).attr("fill",function(t){return t.main===!0?GV.color_beautification("red"):GV.color_beautification("blue")})})},GV.plot_scatter=function(t,a,e,r,n,o,l,s){var i={top:50,right:30,bottom:75,left:50},c=500-i.left-i.right,d=500-i.top-i.bottom,p=d3.scale.linear().range([0,c]),u=d3.scale.linear().range([d,0]),f=(d3.scale.category10(),d3.svg.axis().scale(p).orient("bottom").ticks(8)),h=d3.svg.axis().scale(u).orient("left").tickFormat(d3.format("d")).ticks(8),x=d3.select("#".concat(a)).append("svg").attr("width",c+i.left+i.right).attr("height",d+i.top+i.bottom).append("g").attr("transform","translate("+i.left+","+i.top+")");x.append("text").attr("x",c/2).attr("y",-25).attr("text-anchor","middle").style("font-size","16px").text(e),x.append("text").attr("x",c/2).attr("y",d+55).attr("text-anchor","middle").style("font-size","12px").text(r);var g=d3.max(t,function(t){return t.x}),m=d3.min(t,function(t){return t.x}),v=d3.max(t,function(t){return t.y}),y=d3.min(t,function(t){return t.y});if(p.domain(d3.extent(t,function(t){return t.x})).nice(),u.domain(d3.extent(t,function(t){return t.y})).nice(),x.append("g").attr("class","x axis").attr("transform","translate(0,"+d+")").call(f).append("text").attr("class","label").attr("x",(c-n.length)/2-50).attr("y",35).style("text-anchor","start").text(n),x.append("g").attr("class","y axis").call(h).append("text").attr("class","label").attr("transform","rotate(-90)").attr("x",-(d+o.length)/2-50).attr("y",-40).style("text-anchor","start").text(o),x.selectAll(".dot").data(t).enter().append("circle").attr("r",2).attr("cx",function(t){return p(t.x)}).attr("cy",function(t){return u(t.y)}).style("fill",function(){return GV.color_beautification("red")}).style("opacity",.6),void 0!==s&&""!==s&&void 0!==l&&""!==l){l=parseFloat(l.replace(",","."));var b=g,w=l+s*g;w>v&&(b=(v-l)/s,w=v),y>w&&(b=(y-l)/s,w=y);var G=m,V=l+s*m;V>v&&(G=(v-l)/s,V=y),y>V&&(G=(y-l)/s,V=y),x.append("line").attr("x1",p(G)).attr("y1",u(V)).attr("x2",p(b)).attr("y2",u(w)).attr("stroke-width",2).attr("stroke","black")}},GV.plot_lines=function(t,a,e,r,n,o,l,s){var i={top:70,right:50,bottom:75,left:50},c=600-i.left-i.right,d=500-i.top-i.bottom,p=d3.scale.linear().range([0,c]),u=d3.scale.linear().range([d,0]),f=(d3.scale.category10(),"");f="Open Reading Frames in all 6 Frames"===e?d3.svg.axis().scale(p).orient("bottom").ticks(0):d3.svg.axis().scale(p).orient("bottom").ticks(5);var h=d3.svg.axis().scale(u).orient("left").ticks(5),x=d3.select("#".concat(a)).append("svg").attr("width",c+i.left+i.right).attr("height",d+i.top+i.bottom).append("g").attr("transform","translate("+i.left+","+i.top+")");x.append("text").attr("x",c/2).attr("y",-35).attr("text-anchor","middle").style("font-size","16px").text(e);var g=-1;p.domain([0,d3.max(t,function(t){return t.stop})]),u.domain(d3.extent(t,function(t){return t.y})).nice(),x.append("g").attr("class","x axis").attr("transform","translate(0,"+(d+d/l)+")").call(f).append("text").attr("class","label").attr("x",(c-n.length)/2-50).attr("y",35).style("text-anchor","start").text(n),null!==s?x.append("g").attr("class","y axis").call(h.ticks(s.length).tickFormat(function(){return g+=1,s[g]})).append("text").attr("class","label").attr("transform","rotate(-90)").attr("x",-(d+o.length)/2-50).attr("y",-40).style("text-anchor","start").text(o):x.append("g").attr("class","y axis").call(h).append("text").attr("class","label").attr("transform","rotate(-90)").attr("x",-(d+o.length)/2).attr("y",-40).style("text-anchor","start").text(o),x.selectAll(".dot").data(t).enter().append("line").attr("x1",function(t){return p(t.start)}).attr("y1",function(t){return u(t.y)}).attr("x2",function(t){return p(t.stop)}).attr("x2",function(t){return p(t.stop)}).attr("y2",function(t){return u(t.y)}).attr("stroke-width",function(t){return void 0===t.dotted?"red"==t.color?d/l/2.5:d/l:d/l/5}).style("stroke-dasharray",function(t){return void 0===t.dotted?"0, 0":"2, 6"}).attr("stroke",function(t){return GV.color_beautification(t.color)});for(var m=(x.append("g").attr("class","legend").attr("height",100).attr("width",100).attr("transform","translate(-20,50)"),40),v=0,y=0;y<r.length;y++){var b=r[y].split(",");v=v+8*b[0].length+15}for(var w=0;w<r.length;w++){var G=r[w].split(",");x.append("rect").attr("x",(c-v)/2+m).attr("y",-30).attr("width",10).attr("height",10).style("fill",GV.color_beautification(G[1].replace(/\s+/g,""))),x.append("text").attr("x",(c-v)/2+m+15).attr("y",-20).text(G[0]),m=m+8*G[0].length+15}},GV.plot_align=function(t,a,e,r,n,o,l,s){var i={top:75,right:50,bottom:75,left:150},c=600-i.left-i.right,d=300-i.top-i.bottom,p=d3.scale.linear().range([0,c]),u=d3.scale.linear().range([d,0]),f=(d3.scale.category10(),d3.svg.axis().scale(p).orient("bottom").ticks(5)),h=d3.svg.axis().scale(u).orient("left").ticks(5),x=d3.select("#".concat(a)).append("svg").style("vertical-align","top").attr("width",c+i.left+i.right).attr("height",d+i.top+i.bottom).append("g").attr("transform","translate("+i.left+","+i.top+")");x.append("text").attr("x",c/2).attr("y",-35).attr("text-anchor","middle").style("font-size","16px").text(e);var g=-1;p.domain([0,d3.max(t,function(t){return t.stop})]),u.domain(d3.extent(t,function(t){return t.y})).nice(),x.append("g").attr("class","x axis").attr("transform","translate(0,"+(d+d/l)+")").call(f).append("text").attr("class","label").attr("x",(c-n.length)/2-50).attr("y",35).style("text-anchor","start").text(n),null!==s?x.append("g").attr("class","y axis").call(h.ticks(s.length).tickFormat(function(){return g+=1,s[g]})).append("text").attr("class","label").attr("transform","rotate(-90)").attr("x",-(d+o.length)/2-50).attr("y",-40).style("text-anchor","start").text(o):x.append("g").attr("class","y axis").call(h).append("text").attr("class","label").attr("transform","rotate(-90)").attr("x",-(d+o.length)/2-50).attr("y",-40).style("text-anchor","start").text(o),x.selectAll(".dot").data(t).enter().append("line").attr("x1",function(t){return p(t.start)}).attr("y1",function(t){return u(t.y)}).attr("x2",function(t){return p(t.stop)}).attr("y2",function(t){return u(t.y)}).attr("stroke-width",function(t){return-1==t.height?d/l:d/l*t.height}).attr("stroke",function(t){return GV.color_beautification(t.color)});for(var m=0,v=0,y=0;y<r.length;y++){var b=r[y].split(",");v=v+8*b[0].length+15}for(var w=0;w<r.length;w++){var G=r[w].split(",");x.append("rect").attr("x",(c-v)/2+m).attr("y",-30).attr("width",10).attr("height",10).style("fill",GV.color_beautification(G[1].replace(/\s+/g,""))),x.append("text").attr("x",(c-v)/2+m+15).attr("y",-20).text(G[0]),m=m+8*G[0].length+15}}}();
27
27
  // Script.js
28
- function initTableSorter(){$.tablesorter.addParser({id:"star_scores",is:function(){return!1},format:function(t,e,r,a){var s=$(r);return 1===a?s.attr("data-score")||t:t},parsed:!1,type:"numeric"}),$("table").tablesorter({headers:{1:{sorter:"star_scores"}},sortList:[[0,0]]})}$(document).ready(function(){window.chrome&&"file:"===window.location.protocol&&($("#mainbrowseralertText").text("Some features are not supported in this browser and have been disabled."),$("#browseralert").modal()),GV.toggleOverviewBtn(),initTableSorter(),$("[data-toggle='tooltip']").tooltip()}),$(document).on("click","td, .plot_btn",function(t){if($(this).hasClass("success")||$(this).hasClass("danger")){var e=$(this).attr("title"),r=e.replace(/[ \/]/g,"");GV.addData(this,r)}else $(this).hasClass("plot_btn")&&GV.addData(this,"al
28
+ function initTableSorter(){$.tablesorter.addParser({id:"star_scores",is:function(){return!1},format:function(t,e,r,a){var s=$(r);return 1===a?s.attr("data-score")||t:t},parsed:!1,type:"numeric"}),$("table").tablesorter({headers:{1:{sorter:"star_scores"}},sortList:[[0,0]]})}$(document).ready(function(){window.chrome&&"file:"===window.location.protocol&&($("#mainbrowseralertText").text("Some features are not supported in this browser and have been disabled."),$("#browseralert").modal()),GV.toggleOverviewBtn(),initTableSorter(),$("[data-toggle='tooltip']").tooltip()}),$(document).on("click","td, .plot_btn",function(t){if($(this).hasClass("success")||$(this).hasClass("danger")){var e=$(this).attr("title"),r=e.replace(/[ \/]/g,"");GV.addData(this,r)}else $(this).hasClass("plot_btn")&&GV.addData(this,"all")});
@@ -1,3 +1,3 @@
1
1
  module GeneValidator
2
- VERSION = '1.6.3'
2
+ VERSION = '1.6.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genevalidator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
4
+ version: 1.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Monica Dragan