sequenceserver 2.0.0.rc8 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sequenceserver might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/bin/sequenceserver +22 -30
- data/lib/sequenceserver/api_errors.rb +5 -1
- data/lib/sequenceserver/blast/constants.rb +1 -1
- data/lib/sequenceserver/blast/hit.rb +5 -16
- data/lib/sequenceserver/blast/job.rb +9 -18
- data/lib/sequenceserver/blast/report.rb +5 -3
- data/lib/sequenceserver/config.rb +4 -1
- data/lib/sequenceserver/database.rb +69 -9
- data/lib/sequenceserver/job.rb +1 -1
- data/lib/sequenceserver/makeblastdb.rb +40 -45
- data/lib/sequenceserver/routes.rb +4 -0
- data/lib/sequenceserver/version.rb +1 -1
- data/lib/sequenceserver.rb +15 -11
- data/public/config.js +143 -142
- data/public/css/fonts.css +23 -22
- data/public/css/grapher.css +598 -594
- data/public/css/sequenceserver.css +86 -24
- data/public/css/sequenceserver.min.css +2 -2
- data/public/js/alignment_exporter.js +14 -14
- data/public/js/databases_tree.js +215 -0
- data/public/js/download_fasta.js +1 -1
- data/public/js/hit.js +6 -2
- data/public/js/hits_overview.js +1 -1
- data/public/js/length_distribution.js +5 -5
- data/public/js/query.js +4 -7
- data/public/js/report.js +12 -24
- data/public/js/search.js +21 -2
- data/public/js/sidebar.js +4 -4
- data/public/js/svgExporter.js +12 -12
- data/public/js/visualisation_helpers.js +4 -5
- data/public/sequenceserver-report.min.js +11 -11
- data/public/sequenceserver-search.min.js +15 -11
- data/public/vendor/github/vakata/jstree@3.3.8/LICENSE-MIT +22 -0
- data/public/vendor/github/vakata/jstree@3.3.8/README.md +663 -0
- data/public/vendor/github/vakata/jstree@3.3.8/bower.json +33 -0
- data/public/vendor/github/vakata/jstree@3.3.8/component.json +28 -0
- data/public/vendor/github/vakata/jstree@3.3.8/composer.json +46 -0
- data/public/vendor/github/vakata/jstree@3.3.8/demo/README.md +2 -0
- data/public/vendor/github/vakata/jstree@3.3.8/demo/basic/index.html +146 -0
- data/public/vendor/github/vakata/jstree@3.3.8/demo/basic/root.json +1 -0
- data/public/vendor/github/vakata/jstree@3.3.8/dist/jstree.js +8612 -0
- data/public/vendor/github/vakata/jstree@3.3.8/dist/jstree.min.js +6 -0
- data/public/vendor/github/vakata/jstree@3.3.8/dist/themes/default/32px.png +0 -0
- data/public/vendor/github/vakata/jstree@3.3.8/dist/themes/default/40px.png +0 -0
- data/public/vendor/github/vakata/jstree@3.3.8/dist/themes/default/style.css +1102 -0
- data/public/vendor/github/vakata/jstree@3.3.8/dist/themes/default/style.min.css +1 -0
- data/public/vendor/github/vakata/jstree@3.3.8/dist/themes/default/throbber.gif +0 -0
- data/public/vendor/github/vakata/jstree@3.3.8/dist/themes/default-dark/32px.png +0 -0
- data/public/vendor/github/vakata/jstree@3.3.8/dist/themes/default-dark/40px.png +0 -0
- data/public/vendor/github/vakata/jstree@3.3.8/dist/themes/default-dark/style.css +1146 -0
- data/public/vendor/github/vakata/jstree@3.3.8/dist/themes/default-dark/style.min.css +1 -0
- data/public/vendor/github/vakata/jstree@3.3.8/dist/themes/default-dark/throbber.gif +0 -0
- data/public/vendor/github/vakata/jstree@3.3.8/gruntfile.js +242 -0
- data/public/vendor/github/vakata/jstree@3.3.8/jstree.jquery.json +28 -0
- data/public/vendor/github/vakata/jstree@3.3.8/package.json +58 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/intro.js +14 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/jstree.changed.js +69 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/jstree.checkbox.js +976 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/jstree.conditionalselect.js +38 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/jstree.contextmenu.js +661 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/jstree.dnd.js +669 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/jstree.js +4931 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/jstree.massload.js +137 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/jstree.search.js +421 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/jstree.sort.js +74 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/jstree.state.js +138 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/jstree.types.js +372 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/jstree.unique.js +164 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/jstree.wholerow.js +122 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/misc.js +656 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/outro.js +1 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/sample.js +93 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/themes/base.less +93 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/themes/default/32px.png +0 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/themes/default/40px.png +0 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/themes/default/style.css +1102 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/themes/default/style.less +22 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/themes/default/throbber.gif +0 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/themes/default-dark/32px.png +0 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/themes/default-dark/40px.png +0 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/themes/default-dark/style.css +1146 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/themes/default-dark/style.less +50 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/themes/default-dark/throbber.gif +0 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/themes/main.less +77 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/themes/mixins.less +104 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/themes/responsive.less +67 -0
- data/public/vendor/github/vakata/jstree@3.3.8/src/vakata-jstree.js +38 -0
- data/public/vendor/github/vakata/jstree@3.3.8/test/unit/index.html +16 -0
- data/public/vendor/github/vakata/jstree@3.3.8/test/unit/libs/qunit.css +244 -0
- data/public/vendor/github/vakata/jstree@3.3.8/test/unit/libs/qunit.js +2212 -0
- data/public/vendor/github/vakata/jstree@3.3.8/test/unit/test.js +11 -0
- data/public/vendor/github/vakata/jstree@3.3.8/test/visual/desktop/index.html +44 -0
- data/public/vendor/github/vakata/jstree@3.3.8/test/visual/mobile/index.html +42 -0
- data/public/vendor/github/vakata/jstree@3.3.8/test/visual/screenshots/desktop/desktop.png +0 -0
- data/public/vendor/github/vakata/jstree@3.3.8/test/visual/screenshots/desktop/home.png +0 -0
- data/public/vendor/github/vakata/jstree@3.3.8/test/visual/screenshots/mobile/home.png +0 -0
- data/public/vendor/github/vakata/jstree@3.3.8/test/visual/screenshots/mobile/mobile.png +0 -0
- data/public/vendor/github/vakata/jstree@3.3.8.js +3 -0
- data/public/vendor/system-csp-production.js +3 -3
- data/public/vendor/system-csp-production.js.map +1 -1
- data/public/vendor/system-csp-production.src.js +146 -140
- data/public/vendor/system-polyfills.js.map +1 -1
- data/public/vendor/system-polyfills.src.js +1 -0
- data/public/vendor/system.js +3 -3
- data/public/vendor/system.js.map +1 -1
- data/public/vendor/system.src.js +4771 -2383
- data/views/_options.erb +21 -0
- data/views/layout.erb +17 -18
- metadata +102 -43
- data/bin/chromedriver +0 -0
- data/bin/geckodriver +0 -0
- data/public/shims/form-core.js +0 -3
- data/public/shims/form-validation.js +0 -3
- data/public/shims/plugins/jquery.ui.position.js +0 -13
- data/public/shims/styles/shim.css +0 -1
@@ -0,0 +1,93 @@
|
|
1
|
+
/*global jQuery */
|
2
|
+
// wrap in IIFE and pass jQuery as $
|
3
|
+
(function ($, undefined) {
|
4
|
+
"use strict";
|
5
|
+
|
6
|
+
// some private plugin stuff if needed
|
7
|
+
var private_var = null;
|
8
|
+
|
9
|
+
// extending the defaults
|
10
|
+
$.jstree.defaults.sample = {
|
11
|
+
sample_option : 'sample_val'
|
12
|
+
};
|
13
|
+
|
14
|
+
// the actual plugin code
|
15
|
+
$.jstree.plugins.sample = function (options, parent) {
|
16
|
+
// own function
|
17
|
+
this.sample_function = function (arg) {
|
18
|
+
// you can chain this method if needed and available
|
19
|
+
if(parent.sample_function) { parent.sample_function.call(this, arg); }
|
20
|
+
};
|
21
|
+
|
22
|
+
// *SPECIAL* FUNCTIONS
|
23
|
+
this.init = function (el, options) {
|
24
|
+
// do not forget parent
|
25
|
+
parent.init.call(this, el, options);
|
26
|
+
};
|
27
|
+
// bind events if needed
|
28
|
+
this.bind = function () {
|
29
|
+
// call parent function first
|
30
|
+
parent.bind.call(this);
|
31
|
+
// do(stuff);
|
32
|
+
};
|
33
|
+
// unbind events if needed (all in jquery namespace are taken care of by the core)
|
34
|
+
this.unbind = function () {
|
35
|
+
// do(stuff);
|
36
|
+
// call parent function last
|
37
|
+
parent.unbind.call(this);
|
38
|
+
};
|
39
|
+
this.teardown = function () {
|
40
|
+
// do not forget parent
|
41
|
+
parent.teardown.call(this);
|
42
|
+
};
|
43
|
+
// state management - get and restore
|
44
|
+
this.get_state = function () {
|
45
|
+
// always get state from parent first
|
46
|
+
var state = parent.get_state.call(this);
|
47
|
+
// add own stuff to state
|
48
|
+
state.sample = { 'var' : 'val' };
|
49
|
+
return state;
|
50
|
+
};
|
51
|
+
this.set_state = function (state, callback) {
|
52
|
+
// only process your part if parent returns true
|
53
|
+
// there will be multiple times with false
|
54
|
+
if(parent.set_state.call(this, state, callback)) {
|
55
|
+
// check the key you set above
|
56
|
+
if(state.sample) {
|
57
|
+
// do(stuff); // like calling this.sample_function(state.sample.var);
|
58
|
+
// remove your part of the state, call again and RETURN FALSE, the next cycle will be TRUE
|
59
|
+
delete state.sample;
|
60
|
+
this.set_state(state, callback);
|
61
|
+
return false;
|
62
|
+
}
|
63
|
+
// return true if your state is gone (cleared in the previous step)
|
64
|
+
return true;
|
65
|
+
}
|
66
|
+
// parent was false - return false too
|
67
|
+
return false;
|
68
|
+
};
|
69
|
+
// node transportation
|
70
|
+
this.get_json = function (obj, options, flat) {
|
71
|
+
// get the node from the parent
|
72
|
+
var tmp = parent.get_json.call(this, obj, options, flat), i, j;
|
73
|
+
if($.isArray(tmp)) {
|
74
|
+
for(i = 0, j = tmp.length; i < j; i++) {
|
75
|
+
tmp[i].sample = 'value';
|
76
|
+
}
|
77
|
+
}
|
78
|
+
else {
|
79
|
+
tmp.sample = 'value';
|
80
|
+
}
|
81
|
+
// return the original / modified node
|
82
|
+
return tmp;
|
83
|
+
};
|
84
|
+
};
|
85
|
+
|
86
|
+
// attach to document ready if needed
|
87
|
+
$(function () {
|
88
|
+
// do(stuff);
|
89
|
+
});
|
90
|
+
|
91
|
+
// you can include the sample plugin in all instances by default
|
92
|
+
$.jstree.defaults.plugins.push("sample");
|
93
|
+
})(jQuery);
|
@@ -0,0 +1,93 @@
|
|
1
|
+
// base jstree
|
2
|
+
.jstree-node, .jstree-children, .jstree-container-ul { display:block; margin:0; padding:0; list-style-type:none; list-style-image:none; }
|
3
|
+
.jstree-node { white-space:nowrap; }
|
4
|
+
.jstree-anchor { display:inline-block; color:black; white-space:nowrap; padding:0 4px 0 1px; margin:0; vertical-align:top; }
|
5
|
+
.jstree-anchor:focus { outline:0; }
|
6
|
+
.jstree-anchor, .jstree-anchor:link, .jstree-anchor:visited, .jstree-anchor:hover, .jstree-anchor:active { text-decoration:none; color:inherit; }
|
7
|
+
.jstree-icon { display:inline-block; text-decoration:none; margin:0; padding:0; vertical-align:top; text-align:center; }
|
8
|
+
.jstree-icon:empty { display:inline-block; text-decoration:none; margin:0; padding:0; vertical-align:top; text-align:center; }
|
9
|
+
.jstree-ocl { cursor:pointer; }
|
10
|
+
.jstree-leaf > .jstree-ocl { cursor:default; }
|
11
|
+
.jstree .jstree-open > .jstree-children { display:block; }
|
12
|
+
.jstree .jstree-closed > .jstree-children,
|
13
|
+
.jstree .jstree-leaf > .jstree-children { display:none; }
|
14
|
+
.jstree-anchor > .jstree-themeicon { margin-right:2px; }
|
15
|
+
.jstree-no-icons .jstree-themeicon,
|
16
|
+
.jstree-anchor > .jstree-themeicon-hidden { display:none; }
|
17
|
+
.jstree-hidden, .jstree-node.jstree-hidden { display:none; }
|
18
|
+
|
19
|
+
// base jstree rtl
|
20
|
+
.jstree-rtl {
|
21
|
+
.jstree-anchor { padding:0 1px 0 4px; }
|
22
|
+
.jstree-anchor > .jstree-themeicon { margin-left:2px; margin-right:0; }
|
23
|
+
.jstree-node { margin-left:0; }
|
24
|
+
.jstree-container-ul > .jstree-node { margin-right:0; }
|
25
|
+
}
|
26
|
+
|
27
|
+
// base jstree wholerow
|
28
|
+
.jstree-wholerow-ul {
|
29
|
+
position:relative;
|
30
|
+
display:inline-block;
|
31
|
+
min-width:100%;
|
32
|
+
.jstree-leaf > .jstree-ocl { cursor:pointer; }
|
33
|
+
.jstree-anchor, .jstree-icon { position:relative; }
|
34
|
+
.jstree-wholerow { width:100%; cursor:pointer; position:absolute; left:0; -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none; }
|
35
|
+
}
|
36
|
+
|
37
|
+
// base contextmenu
|
38
|
+
.jstree-contextmenu .jstree-anchor {
|
39
|
+
-webkit-user-select: none; /* disable selection/Copy of UIWebView */
|
40
|
+
-webkit-touch-callout: none; /* disable the IOS popup when long-press on a link */
|
41
|
+
}
|
42
|
+
.vakata-context {
|
43
|
+
display:none;
|
44
|
+
&, ul { margin:0; padding:2px; position:absolute; background:#f5f5f5; border:1px solid #979797; box-shadow:2px 2px 2px #999999; }
|
45
|
+
ul { list-style:none; left:100%; margin-top:-2.7em; margin-left:-4px; }
|
46
|
+
.vakata-context-right ul { left:auto; right:100%; margin-left:auto; margin-right:-4px; }
|
47
|
+
li {
|
48
|
+
list-style:none;
|
49
|
+
> a {
|
50
|
+
display:block; padding:0 2em 0 2em; text-decoration:none; width:auto; color:black; white-space:nowrap; line-height:2.4em; text-shadow:1px 1px 0 white; border-radius:1px;
|
51
|
+
&:hover { position:relative; background-color:#e8eff7; box-shadow:0 0 2px #0a6aa1; }
|
52
|
+
&.vakata-context-parent { background-image:url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw=="); background-position:right center; background-repeat:no-repeat; }
|
53
|
+
}
|
54
|
+
> a:focus { outline:0; }
|
55
|
+
}
|
56
|
+
.vakata-context-hover > a { position:relative; background-color:#e8eff7; box-shadow:0 0 2px #0a6aa1; }
|
57
|
+
.vakata-context-separator {
|
58
|
+
> a, > a:hover { background:white; border:0; border-top:1px solid #e2e3e3; height:1px; min-height:1px; max-height:1px; padding:0; margin:0 0 0 2.4em; border-left:1px solid #e0e0e0; text-shadow:0 0 0 transparent; box-shadow:0 0 0 transparent; border-radius:0; }
|
59
|
+
}
|
60
|
+
.vakata-contextmenu-disabled {
|
61
|
+
a, a:hover { color:silver; background-color:transparent; border:0; box-shadow:0 0 0; }
|
62
|
+
> a > i { filter: grayscale(100%); }
|
63
|
+
}
|
64
|
+
li > a {
|
65
|
+
> i { text-decoration:none; display:inline-block; width:2.4em; height:2.4em; background:transparent; margin:0 0 0 -2em; vertical-align:top; text-align:center; line-height:2.4em; }
|
66
|
+
> i:empty { width:2.4em; line-height:2.4em; }
|
67
|
+
.vakata-contextmenu-sep { display:inline-block; width:1px; height:2.4em; background:white; margin:0 0.5em 0 0; border-left:1px solid #e2e3e3; }
|
68
|
+
}
|
69
|
+
.vakata-contextmenu-shortcut { font-size:0.8em; color:silver; opacity:0.5; display:none; }
|
70
|
+
}
|
71
|
+
.vakata-context-rtl {
|
72
|
+
ul { left:auto; right:100%; margin-left:auto; margin-right:-4px; }
|
73
|
+
li > a.vakata-context-parent { background-image:url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7"); background-position:left center; background-repeat:no-repeat; }
|
74
|
+
.vakata-context-separator > a { margin:0 2.4em 0 0; border-left:0; border-right:1px solid #e2e3e3;}
|
75
|
+
.vakata-context-left ul { right:auto; left:100%; margin-left:-4px; margin-right:auto; }
|
76
|
+
li > a {
|
77
|
+
> i { margin:0 -2em 0 0; }
|
78
|
+
.vakata-contextmenu-sep { margin:0 0 0 0.5em; border-left-color:white; background:#e2e3e3; }
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
// base drag'n'drop
|
83
|
+
#jstree-marker { position: absolute; top:0; left:0; margin:-5px 0 0 0; padding:0; border-right:0; border-top:5px solid transparent; border-bottom:5px solid transparent; border-left:5px solid; width:0; height:0; font-size:0; line-height:0; }
|
84
|
+
#jstree-dnd {
|
85
|
+
line-height:16px;
|
86
|
+
margin:0;
|
87
|
+
padding:4px;
|
88
|
+
.jstree-icon,
|
89
|
+
.jstree-copy { display:inline-block; text-decoration:none; margin:0 2px 0 0; padding:0; width:16px; height:16px; }
|
90
|
+
.jstree-ok { background:green; }
|
91
|
+
.jstree-er { background:red; }
|
92
|
+
.jstree-copy { margin:0 2px 0 2px; }
|
93
|
+
}
|