annotate test-data/meme_output_test1.html @ 1:cb8a2242bf03 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
author iuc
date Thu, 17 May 2018 14:11:27 -0400
parents
children 3e5c80594237
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1 <!DOCTYPE HTML>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2 <html>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3 <head>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4 <meta charset="UTF-8">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5 <title>MEME</title>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6 <script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7 // @JSON_VAR data
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
8 var data = {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
9 "program": "MEME",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
10 "version": "4.12.0",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
11 "release": "Tue Jun 27 16:22:50 2017 -0700",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
12 "stop_reason": "Stopped because requested number of motifs (1) found.",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
13 "cmd": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
14 "meme", "meme_input_1.fasta", "-o", "meme_test1_out", "-nostatus",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
15 "-maxsize", "1000000"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
16 ],
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
17 "options": {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
18 "mod": "zoops",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
19 "revcomp": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
20 "nmotifs": 1,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
21 "minw": 8,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
22 "maxw": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
23 "minsites": 2,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
24 "maxsites": 30,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
25 "wnsites": 0.8,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
26 "spmap": "pam",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
27 "spfuzz": 120,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
28 "maxwords": -1,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
29 "prior": "megap",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
30 "b": 7500,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
31 "maxiter": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
32 "distance": 1e-05,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
33 "wg": 11,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
34 "ws": 1,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
35 "noendgaps": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
36 "substring": true
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
37 },
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
38 "alphabet": {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
39 "name": "Protein",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
40 "like": "protein",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
41 "ncore": 20,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
42 "symbols": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
43 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
44 "symbol": "A",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
45 "name": "Alanine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
46 "colour": "0000CC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
47 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
48 "symbol": "C",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
49 "name": "Cysteine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
50 "colour": "0000CC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
51 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
52 "symbol": "D",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
53 "name": "Aspartic acid",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
54 "colour": "FF00FF"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
55 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
56 "symbol": "E",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
57 "name": "Glutamic acid",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
58 "colour": "FF00FF"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
59 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
60 "symbol": "F",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
61 "name": "Phenylalanine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
62 "colour": "0000CC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
63 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
64 "symbol": "G",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
65 "name": "Glycine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
66 "colour": "FFB300"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
67 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
68 "symbol": "H",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
69 "name": "Histidine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
70 "colour": "FFCCCC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
71 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
72 "symbol": "I",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
73 "name": "Isoleucine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
74 "colour": "0000CC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
75 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
76 "symbol": "K",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
77 "name": "Lysine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
78 "colour": "CC0000"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
79 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
80 "symbol": "L",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
81 "name": "Leucine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
82 "colour": "0000CC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
83 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
84 "symbol": "M",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
85 "name": "Methionine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
86 "colour": "0000CC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
87 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
88 "symbol": "N",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
89 "name": "Asparagine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
90 "colour": "008000"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
91 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
92 "symbol": "P",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
93 "name": "Proline",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
94 "colour": "FFFF00"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
95 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
96 "symbol": "Q",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
97 "name": "Glutamine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
98 "colour": "008000"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
99 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
100 "symbol": "R",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
101 "name": "Arginine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
102 "colour": "CC0000"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
103 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
104 "symbol": "S",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
105 "name": "Serine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
106 "colour": "008000"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
107 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
108 "symbol": "T",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
109 "name": "Threonine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
110 "colour": "008000"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
111 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
112 "symbol": "V",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
113 "name": "Valine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
114 "colour": "0000CC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
115 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
116 "symbol": "W",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
117 "name": "Tryptophan",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
118 "colour": "0000CC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
119 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
120 "symbol": "Y",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
121 "name": "Tyrosine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
122 "colour": "33E6CC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
123 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
124 "symbol": "X",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
125 "aliases": "*.",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
126 "name": "Any amino acid",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
127 "equals": "ACDEFGHIKLMNPQRSTVWY"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
128 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
129 "symbol": "B",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
130 "name": "Asparagine or Aspartic acid",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
131 "equals": "DN"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
132 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
133 "symbol": "Z",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
134 "name": "Glutamine or Glutamic acid",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
135 "equals": "EQ"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
136 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
137 "symbol": "J",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
138 "name": "Leucine or Isoleucine",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
139 "equals": "IL"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
140 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
141 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
142 },
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
143 "background": {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
144 "freqs": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
145 0.291, 0.229, 0.001, 0.001, 0.001, 0.255, 0.001, 0.001, 0.001,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
146 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 0.215, 0.001,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
147 0.001, 0.001
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
148 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
149 },
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
150 "sequence_db": {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
151 "source": "meme_input_1.fasta",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
152 "psp_source": "prior30.plib",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
153 "freqs": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
154 0.294, 0.231, 0.000, 0.000, 0.000, 0.257, 0.000, 0.000, 0.000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
155 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.217, 0.000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
156 0.000, 0.000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
157 ],
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
158 "sequences": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
159 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
160 "name": "chr21_19617074_19617124_+",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
161 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
162 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
163 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
164 "name": "chr21_26934381_26934431_+",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
165 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
166 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
167 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
168 "name": "chr21_28217753_28217803_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
169 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
170 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
171 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
172 "name": "chr21_31710037_31710087_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
173 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
174 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
175 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
176 "name": "chr21_31744582_31744632_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
177 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
178 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
179 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
180 "name": "chr21_31768316_31768366_+",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
181 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
182 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
183 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
184 "name": "chr21_31914206_31914256_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
185 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
186 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
187 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
188 "name": "chr21_31933633_31933683_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
189 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
190 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
191 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
192 "name": "chr21_31962741_31962791_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
193 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
194 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
195 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
196 "name": "chr21_31964683_31964733_+",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
197 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
198 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
199 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
200 "name": "chr21_31973364_31973414_+",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
201 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
202 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
203 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
204 "name": "chr21_31992870_31992920_+",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
205 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
206 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
207 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
208 "name": "chr21_32185595_32185645_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
209 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
210 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
211 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
212 "name": "chr21_32202076_32202126_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
213 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
214 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
215 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
216 "name": "chr21_32253899_32253949_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
217 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
218 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
219 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
220 "name": "chr21_32410820_32410870_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
221 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
222 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
223 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
224 "name": "chr21_36411748_36411798_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
225 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
226 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
227 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
228 "name": "chr21_37838750_37838800_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
229 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
230 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
231 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
232 "name": "chr21_45705687_45705737_+",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
233 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
234 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
235 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
236 "name": "chr21_45971413_45971463_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
237 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
238 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
239 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
240 "name": "chr21_45978668_45978718_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
241 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
242 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
243 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
244 "name": "chr21_45993530_45993580_+",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
245 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
246 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
247 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
248 "name": "chr21_46020421_46020471_+",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
249 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
250 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
251 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
252 "name": "chr21_46031920_46031970_+",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
253 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
254 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
255 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
256 "name": "chr21_46046964_46047014_+",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
257 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
258 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
259 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
260 "name": "chr21_46057197_46057247_+",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
261 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
262 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
263 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
264 "name": "chr21_46086869_46086919_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
265 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
266 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
267 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
268 "name": "chr21_46102103_46102153_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
269 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
270 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
271 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
272 "name": "chr21_47517957_47518007_+",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
273 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
274 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
275 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
276 "name": "chr21_47575506_47575556_-",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
277 "length": 50,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
278 "weight": 1.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
279 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
280 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
281 },
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
282 "motifs": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
283 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
284 "db": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
285 "id": "GGGGTATAAAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
286 "alt": "MEME-1",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
287 "len": 11,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
288 "nsites": 25,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
289 "evalue": "2.4e-011",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
290 "ic": 40.0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
291 "re": 13.8,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
292 "llr": 239,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
293 "bt": 5.33554,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
294 "time": 0.772000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
295 "psm": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
296 [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
297 -32, -680, 91, 77, 7, 138, -20, 55, 64, 107, 11, 150, 142, 72,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
298 87, 396, -148, 221, -140, -36
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
299 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
300 -11, -680, 89, 76, 7, 137, -21, 55, 63, 107, 10, 149, 141, 71,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
301 87, 396, -239, 220, -140, -36
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
302 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
303 -79, 41, 4, 21, -7, 44, -62, 42, -5, 99, 0, 99, 138, 52, 42,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
304 399, -46, 223, -173, -68
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
305 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
306 11, -677, 48, 47, -2, 127, -43, 46, 27, 101, 3, 124, 138, 60,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
307 62, 397, -235, 220, -160, -55
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
308 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
309 -596, -820, 12, -21, -53, -267, -74, 37, 16, 44, -37, 98, 31,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
310 9, 19, 319, 212, 127, -193, -95
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
311 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
312 165, -261, 70, 110, 77, -521, -4, 147, 95, 201, 90, 121, 124,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
313 91, 107, 425, -527, 314, -95, 8
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
314 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
315 -838, -990, -89, -149, -151, -841, -161, -117, -113, -66,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
316 -209, -68, -69, -129, -91, 111, 221, -55, -255, -173
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
317 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
318 176, -858, -79, -103, -115, -717, -148, -95, -108, -17, -162,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
319 -61, -12, -95, -69, 193, -737, 52, -240, -153
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
320 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
321 134, -686, 0, 16, -12, -553, -68, 44, -8, 96, -9, 88, 124, 41,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
322 36, 384, 11, 216, -177, -71
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
323 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
324 165, -261, 70, 110, 77, -521, -4, 147, 95, 201, 90, 121, 124,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
325 91, 107, 425, -527, 314, -95, 8
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
326 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
327 147, -614, 89, 129, 93, -121, 12, 160, 113, 217, 108, 144,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
328 144, 111, 125, 447, -241, 332, -81, 22
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
329 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
330 ],
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
331 "pwm": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
332 [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
333 0.240000, 0.000000, 0.000000, 0.000000, 0.000000, 0.680000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
334 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
335 0.000000, 0.000000, 0.000000, 0.000000, 0.080000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
336 0.000000, 0.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
337 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
338 0.280000, 0.000000, 0.000000, 0.000000, 0.000000, 0.680000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
339 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
340 0.000000, 0.000000, 0.000000, 0.000000, 0.040000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
341 0.000000, 0.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
342 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
343 0.160000, 0.320000, 0.000000, 0.000000, 0.000000, 0.360000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
344 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
345 0.000000, 0.000000, 0.000000, 0.000000, 0.160000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
346 0.000000, 0.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
347 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
348 0.320000, 0.000000, 0.000000, 0.000000, 0.000000, 0.640000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
349 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
350 0.000000, 0.000000, 0.000000, 0.000000, 0.040000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
351 0.000000, 0.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
352 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
353 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.040000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
354 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
355 0.000000, 0.000000, 0.000000, 0.000000, 0.960000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
356 0.000000, 0.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
357 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
358 0.960000, 0.040000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
359 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
360 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
361 0.000000, 0.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
362 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
363 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
364 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
365 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
366 0.000000, 0.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
367 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
368 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
369 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
370 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
371 0.000000, 0.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
372 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
373 0.760000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
374 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
375 0.000000, 0.000000, 0.000000, 0.000000, 0.240000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
376 0.000000, 0.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
377 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
378 0.960000, 0.040000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
379 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
380 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
381 0.000000, 0.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
382 ], [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
383 0.840000, 0.000000, 0.000000, 0.000000, 0.000000, 0.120000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
384 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
385 0.000000, 0.000000, 0.000000, 0.000000, 0.040000, 0.000000,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
386 0.000000, 0.000000
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
387 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
388 ],
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
389 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
390 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
391 "seq": 24,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
392 "pos": 12,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
393 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
394 "pvalue": 1.06e-06,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
395 "lflank": "AAGGCCAGGA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
396 "match": "GGGGTATAAAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
397 "rflank": "GCCTGAGAGC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
398 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
399 "seq": 25,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
400 "pos": 36,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
401 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
402 "pvalue": 3.41e-06,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
403 "lflank": "ACAGGCCCTG",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
404 "match": "GGCATATAAAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
405 "rflank": "GCC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
406 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
407 "seq": 19,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
408 "pos": 9,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
409 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
410 "pvalue": 3.41e-06,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
411 "lflank": "CAGGCCCTG",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
412 "match": "GGCATATAAAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
413 "rflank": "GCCCCAGCAG"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
414 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
415 "seq": 9,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
416 "pos": 13,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
417 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
418 "pvalue": 3.41e-06,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
419 "lflank": "GATTCACTGA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
420 "match": "GGCATATAAAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
421 "rflank": "GGCCCTCTGC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
422 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
423 "seq": 21,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
424 "pos": 7,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
425 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
426 "pvalue": 4.00e-06,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
427 "lflank": "CCAAGGA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
428 "match": "GGAGTATAAAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
429 "rflank": "GCCCCACAAA"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
430 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
431 "seq": 13,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
432 "pos": 13,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
433 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
434 "pvalue": 5.01e-06,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
435 "lflank": "CCACCAGCTT",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
436 "match": "GAGGTATAAAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
437 "rflank": "AGCCCTGTAC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
438 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
439 "seq": 23,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
440 "pos": 15,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
441 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
442 "pvalue": 6.06e-06,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
443 "lflank": "ATACCCAGGG",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
444 "match": "AGGGTATAAAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
445 "rflank": "CCTCAGCAGC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
446 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
447 "seq": 15,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
448 "pos": 21,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
449 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
450 "pvalue": 8.67e-06,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
451 "lflank": "AATCACTGAG",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
452 "match": "GATGTATAAAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
453 "rflank": "GTCCCAGGGA"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
454 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
455 "seq": 12,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
456 "pos": 18,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
457 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
458 "pvalue": 8.67e-06,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
459 "lflank": "CACCAGAGCT",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
460 "match": "GGGATATATAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
461 "rflank": "AGAAGGTTCT"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
462 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
463 "seq": 11,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
464 "pos": 16,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
465 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
466 "pvalue": 8.67e-06,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
467 "lflank": "CACTATTGAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
468 "match": "GATGTATAAAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
469 "rflank": "TTTCATTTGC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
470 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
471 "seq": 22,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
472 "pos": 2,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
473 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
474 "pvalue": 1.21e-05,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
475 "lflank": "GA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
476 "match": "GACATATAAAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
477 "rflank": "GCCAACATCC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
478 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
479 "seq": 28,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
480 "pos": 32,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
481 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
482 "pvalue": 1.59e-05,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
483 "lflank": "CCGGCGGGGC",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
484 "match": "GGGGTATAAAG",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
485 "rflank": "GGGGCGG"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
486 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
487 "seq": 20,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
488 "pos": 4,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
489 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
490 "pvalue": 1.59e-05,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
491 "lflank": "CAGA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
492 "match": "GGGGTATAAAG",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
493 "rflank": "GTTCCGACCA"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
494 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
495 "seq": 6,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
496 "pos": 15,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
497 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
498 "pvalue": 1.68e-05,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
499 "lflank": "CCCACTACTT",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
500 "match": "AGAGTATAAAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
501 "rflank": "TCATTCTGAG"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
502 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
503 "seq": 14,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
504 "pos": 19,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
505 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
506 "pvalue": 2.03e-05,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
507 "lflank": "CACCAGCAAG",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
508 "match": "GATATATAAAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
509 "rflank": "GCTCAGGAGT"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
510 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
511 "seq": 4,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
512 "pos": 12,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
513 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
514 "pvalue": 3.06e-05,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
515 "lflank": "CAGGTCTAAG",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
516 "match": "AGCATATATAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
517 "rflank": "CTTGGAGTCC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
518 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
519 "seq": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
520 "pos": 39,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
521 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
522 "pvalue": 3.06e-05,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
523 "lflank": "CCTCGGGACG",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
524 "match": "TGGGTATATAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
525 "rflank": ""
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
526 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
527 "seq": 18,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
528 "pos": 37,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
529 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
530 "pvalue": 3.82e-05,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
531 "lflank": "CGTGGTCGCG",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
532 "match": "GGGGTATAACA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
533 "rflank": "GC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
534 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
535 "seq": 5,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
536 "pos": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
537 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
538 "pvalue": 3.82e-05,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
539 "lflank": "",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
540 "match": "AACGTATATAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
541 "rflank": "ATGGTCCTGT"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
542 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
543 "seq": 29,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
544 "pos": 30,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
545 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
546 "pvalue": 4.02e-05,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
547 "lflank": "GCTGCCGGTG",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
548 "match": "AGCGTATAAAG",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
549 "rflank": "GCCCTGGCG"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
550 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
551 "seq": 1,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
552 "pos": 27,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
553 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
554 "pvalue": 5.52e-05,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
555 "lflank": "AGTCACAAGT",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
556 "match": "GAGTTATAAAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
557 "rflank": "GGGTCGCACG"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
558 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
559 "seq": 3,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
560 "pos": 14,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
561 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
562 "pvalue": 5.94e-05,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
563 "lflank": "CCCAGGTTTC",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
564 "match": "TGAGTATATAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
565 "rflank": "TCGCCGCACC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
566 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
567 "seq": 16,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
568 "pos": 22,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
569 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
570 "pvalue": 6.78e-05,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
571 "lflank": "AGTTTCAGTT",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
572 "match": "GGCATCTAAAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
573 "rflank": "attatataac"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
574 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
575 "seq": 7,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
576 "pos": 2,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
577 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
578 "pvalue": 2.08e-04,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
579 "lflank": "TC",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
580 "match": "AGAGTATATAT",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
581 "rflank": "AAATGTTCCT"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
582 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
583 "seq": 8,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
584 "pos": 13,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
585 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
586 "pvalue": 4.05e-04,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
587 "lflank": "TATAACTCAG",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
588 "match": "GTTGGATAAAA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
589 "rflank": "TAATTTGTAC"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
590 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
591 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
592 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
593 ],
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
594 "scan": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
595 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
596 "pvalue": 1.22e-03,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
597 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
598 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
599 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
600 "pos": 39,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
601 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
602 "pvalue": 3.06e-05
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
603 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
604 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
605 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
606 "pvalue": 2.21e-03,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
607 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
608 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
609 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
610 "pos": 27,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
611 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
612 "pvalue": 5.52e-05
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
613 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
614 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
615 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
616 "pvalue": 7.29e-01,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
617 "sites": []
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
618 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
619 "pvalue": 2.37e-03,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
620 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
621 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
622 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
623 "pos": 14,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
624 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
625 "pvalue": 5.94e-05
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
626 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
627 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
628 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
629 "pvalue": 1.22e-03,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
630 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
631 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
632 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
633 "pos": 12,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
634 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
635 "pvalue": 3.06e-05
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
636 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
637 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
638 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
639 "pvalue": 1.53e-03,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
640 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
641 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
642 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
643 "pos": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
644 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
645 "pvalue": 3.82e-05
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
646 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
647 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
648 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
649 "pvalue": 6.70e-04,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
650 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
651 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
652 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
653 "pos": 15,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
654 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
655 "pvalue": 1.68e-05
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
656 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
657 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
658 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
659 "pvalue": 1.81e-03,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
660 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
661 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
662 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
663 "pos": 4,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
664 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
665 "pvalue": 4.54e-05
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
666 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
667 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
668 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
669 "pvalue": 1.61e-02,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
670 "sites": []
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
671 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
672 "pvalue": 1.36e-04,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
673 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
674 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
675 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
676 "pos": 13,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
677 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
678 "pvalue": 3.41e-06
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
679 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
680 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
681 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
682 "pvalue": 1.99e-01,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
683 "sites": []
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
684 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
685 "pvalue": 3.47e-04,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
686 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
687 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
688 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
689 "pos": 16,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
690 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
691 "pvalue": 8.67e-06
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
692 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
693 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
694 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
695 "pvalue": 3.47e-04,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
696 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
697 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
698 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
699 "pos": 18,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
700 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
701 "pvalue": 8.67e-06
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
702 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
703 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
704 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
705 "pvalue": 2.01e-04,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
706 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
707 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
708 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
709 "pos": 13,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
710 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
711 "pvalue": 5.01e-06
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
712 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
713 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
714 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
715 "pvalue": 8.11e-04,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
716 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
717 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
718 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
719 "pos": 19,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
720 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
721 "pvalue": 2.03e-05
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
722 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
723 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
724 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
725 "pvalue": 3.47e-04,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
726 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
727 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
728 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
729 "pos": 21,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
730 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
731 "pvalue": 8.67e-06
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
732 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
733 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
734 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
735 "pvalue": 2.71e-03,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
736 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
737 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
738 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
739 "pos": 22,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
740 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
741 "pvalue": 6.78e-05
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
742 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
743 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
744 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
745 "pvalue": 8.23e-02,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
746 "sites": []
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
747 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
748 "pvalue": 1.53e-03,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
749 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
750 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
751 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
752 "pos": 37,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
753 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
754 "pvalue": 3.82e-05
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
755 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
756 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
757 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
758 "pvalue": 1.36e-04,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
759 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
760 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
761 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
762 "pos": 9,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
763 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
764 "pvalue": 3.41e-06
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
765 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
766 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
767 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
768 "pvalue": 6.37e-04,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
769 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
770 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
771 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
772 "pos": 4,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
773 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
774 "pvalue": 1.59e-05
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
775 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
776 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
777 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
778 "pvalue": 1.60e-04,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
779 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
780 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
781 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
782 "pos": 7,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
783 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
784 "pvalue": 4.00e-06
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
785 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
786 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
787 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
788 "pvalue": 4.83e-04,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
789 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
790 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
791 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
792 "pos": 2,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
793 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
794 "pvalue": 1.21e-05
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
795 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
796 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
797 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
798 "pvalue": 2.43e-04,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
799 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
800 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
801 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
802 "pos": 15,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
803 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
804 "pvalue": 6.06e-06
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
805 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
806 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
807 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
808 "pvalue": 4.26e-05,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
809 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
810 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
811 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
812 "pos": 12,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
813 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
814 "pvalue": 1.06e-06
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
815 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
816 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
817 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
818 "pvalue": 1.36e-04,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
819 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
820 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
821 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
822 "pos": 36,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
823 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
824 "pvalue": 3.41e-06
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
825 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
826 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
827 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
828 "pvalue": 4.30e-02,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
829 "sites": []
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
830 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
831 "pvalue": 4.30e-02,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
832 "sites": []
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
833 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
834 "pvalue": 6.37e-04,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
835 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
836 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
837 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
838 "pos": 32,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
839 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
840 "pvalue": 1.59e-05
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
841 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
842 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
843 }, {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
844 "pvalue": 1.61e-03,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
845 "sites": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
846 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
847 "motif": 0,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
848 "pos": 30,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
849 "rc": false,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
850 "pvalue": 4.02e-05
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
851 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
852 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
853 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
854 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
855 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
856 </script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
857 <script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
858 var site_url = "http://meme-suite.org";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
859 </script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
860 <script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
861
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
862 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
863 * $
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
864 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
865 * Shorthand function for getElementById
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
866 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
867 function $(el) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
868 return document.getElementById(el);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
869 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
870
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
871
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
872 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
873 * See http://stackoverflow.com/a/5450113/66387
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
874 * Does string multiplication like the perl x operator.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
875 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
876 function string_mult(pattern, count) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
877 if (count < 1) return '';
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
878 var result = '';
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
879 while (count > 1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
880 if (count & 1) result += pattern;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
881 count >>= 1, pattern += pattern;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
882 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
883 return result + pattern;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
884 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
885
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
886 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
887 * See http://stackoverflow.com/questions/814613/how-to-read-get-data-from-a-url-using-javascript
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
888 * Slightly modified with information from
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
889 * https://developer.mozilla.org/en/DOM/window.location
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
890 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
891 function parse_params() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
892 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
893 var search, queryStart, queryEnd, query, params, nvPairs, i, nv, n, v;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
894 search = window.location.search;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
895 queryStart = search.indexOf("?") + 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
896 queryEnd = search.indexOf("#") + 1 || search.length + 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
897 query = search.slice(queryStart, queryEnd - 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
898
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
899 if (query === search || query === "") return {};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
900
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
901 params = {};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
902 nvPairs = query.replace(/\+/g, " ").split("&");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
903
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
904 for (i = 0; i < nvPairs.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
905 nv = nvPairs[i].split("=");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
906 n = decodeURIComponent(nv[0]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
907 v = decodeURIComponent(nv[1]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
908 // allow a name to be used multiple times
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
909 // storing each value in the array
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
910 if (!(n in params)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
911 params[n] = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
912 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
913 params[n].push(nv.length === 2 ? v : null);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
914 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
915 return params;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
916 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
917
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
918 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
919 * coords
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
920 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
921 * Calculates the x and y offset of an element.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
922 * From http://www.quirksmode.org/js/findpos.html
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
923 * with alterations to take into account scrolling regions
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
924 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
925 function coords(elem) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
926 var myX = myY = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
927 if (elem.getBoundingClientRect) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
928 var rect;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
929 rect = elem.getBoundingClientRect();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
930 myX = rect.left + ((typeof window.pageXOffset !== "undefined") ?
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
931 window.pageXOffset : document.body.scrollLeft);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
932 myY = rect.top + ((typeof window.pageYOffset !== "undefined") ?
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
933 window.pageYOffset : document.body.scrollTop);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
934 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
935 // this fall back doesn't properly handle absolutely positioned elements
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
936 // inside a scrollable box
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
937 var node;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
938 if (elem.offsetParent) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
939 // subtract all scrolling
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
940 node = elem;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
941 do {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
942 myX -= node.scrollLeft ? node.scrollLeft : 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
943 myY -= node.scrollTop ? node.scrollTop : 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
944 } while (node = node.parentNode);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
945 // this will include the page scrolling (which is unwanted) so add it back on
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
946 myX += (typeof window.pageXOffset !== "undefined") ? window.pageXOffset : document.body.scrollLeft;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
947 myY += (typeof window.pageYOffset !== "undefined") ? window.pageYOffset : document.body.scrollTop;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
948 // sum up offsets
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
949 node = elem;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
950 do {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
951 myX += node.offsetLeft;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
952 myY += node.offsetTop;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
953 } while (node = node.offsetParent);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
954 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
955 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
956 return [myX, myY];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
957 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
958
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
959 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
960 * position_popup
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
961 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
962 * Positions a popup relative to an anchor element.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
963 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
964 * The avaliable positions are:
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
965 * 0 - Centered below the anchor.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
966 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
967 function position_popup(anchor, popup, position) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
968 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
969 var a_x, a_y, a_w, a_h, p_x, p_y, p_w, p_h;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
970 var a_xy, spacer, margin, scrollbar, page_w;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
971 // define constants
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
972 spacer = 5;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
973 margin = 15;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
974 scrollbar = 15;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
975 // define the positions and widths
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
976 a_xy = coords(anchor);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
977 a_x = a_xy[0];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
978 a_y = a_xy[1];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
979 a_w = anchor.offsetWidth;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
980 a_h = anchor.offsetHeight;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
981 p_w = popup.offsetWidth;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
982 p_h = popup.offsetHeight;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
983 page_w = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
984 if (window.innerWidth) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
985 page_w = window.innerWidth;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
986 } else if (document.body) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
987 page_w = document.body.clientWidth;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
988 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
989 // check the position type is defined
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
990 if (typeof position !== "number") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
991 position = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
992 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
993 // calculate the popup position
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
994 switch (position) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
995 case 1:
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
996 p_x = a_x + a_w + spacer;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
997 p_y = a_y + (a_h / 2) - (p_h / 2);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
998 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
999 case 0:
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1000 default:
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1001 p_x = a_x + (a_w / 2) - (p_w / 2);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1002 p_y = a_y + a_h + spacer;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1003 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1004 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1005 // constrain the popup position
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1006 if (p_x < margin) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1007 p_x = margin;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1008 } else if (page_w != null && (p_x + p_w) > (page_w - margin - scrollbar)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1009 p_x = page_w - margin - scrollbar - p_w;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1010 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1011 if (p_y < margin) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1012 p_y = margin;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1013 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1014 // position the popup
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1015 popup.style.left = p_x + "px";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1016 popup.style.top = p_y + "px";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1017 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1018
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1019 function lookup_help_popup(popup_id) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1020 var _body, pop, info;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1021 pop = document.getElementById(popup_id);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1022 if (pop == null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1023 _body = document.getElementsByTagName("body")[0];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1024 pop = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1025 pop.className = "pop_content";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1026 pop.id = popup_id;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1027 pop.style.backgroundColor = "#FFC";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1028 pop.style.borderColor = "black";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1029 info = document.createElement("p");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1030 info.style.fontWeight = "bold";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1031 info.appendChild(document.createTextNode("Error: No popup for topic \"" + popup_id + "\"."));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1032 pop.appendChild(info);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1033 // this might cause problems with the menu, but as this only happens
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1034 // when something is already wrong I don't think that's too much of a problem
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1035 _body.insertBefore(pop, _body.firstChild);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1036 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1037 if (document.getElementsByTagName('body')[0].hasAttribute("data-autobtns")) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1038 if (!/\bauto_buttons\b/.test(pop.className)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1039 pop.className += " auto_buttons";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1040 var back_btn_sec = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1041 back_btn_sec.className = "nested_only pop_back_sec";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1042 var back_btn = document.createElement("span");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1043 back_btn.className = "pop_back";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1044 back_btn.appendChild(document.createTextNode("<< back"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1045 back_btn.addEventListener("click", function(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1046 help_return();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1047 }, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1048 back_btn_sec.appendChild(back_btn);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1049 pop.insertBefore(back_btn_sec, pop.firstChild);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1050 var close_btn_sec = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1051 close_btn_sec.className = "pop_close_sec";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1052 var close_btn = document.createElement("span");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1053 close_btn.className = "pop_close";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1054 close_btn.appendChild(document.createTextNode("close"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1055 close_btn.addEventListener("click", function(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1056 help_popup();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1057 }, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1058 close_btn_sec.appendChild(close_btn);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1059 pop.appendChild(close_btn_sec);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1060 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1061 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1062 return pop;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1063 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1064
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1065 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1066 * help_popup
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1067 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1068 * Moves around help pop-ups so they appear
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1069 * below an activator.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1070 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1071 function help_popup(activator, popup_id) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1072 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1073 var pop;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1074 // set default values
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1075 if (typeof help_popup.popup === "undefined") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1076 help_popup.popup = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1077 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1078 if (typeof help_popup.activator === "undefined") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1079 help_popup.activator = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1080 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1081 var last_pop = (help_popup.popup.length > 0 ? help_popup.popup[help_popup.popup.length - 1] : null);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1082 if (typeof(activator) == "undefined") { // no activator so hide
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1083 if (last_pop != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1084 last_pop.style.display = 'none';
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1085 help_popup.popup = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1086 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1087 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1088 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1089 pop = lookup_help_popup(popup_id);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1090 if (pop == last_pop) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1091 if (activator == help_popup.activator) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1092 //hide popup (as we've already shown it for the current help button)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1093 last_pop.style.display = 'none';
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1094 help_popup.popup = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1095 return; // toggling complete!
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1096 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1097 } else if (last_pop != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1098 //activating different popup so hide current one
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1099 last_pop.style.display = 'none';
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1100 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1101 help_popup.popup = [pop];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1102 help_popup.activator = activator;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1103 toggle_class(pop, "nested", false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1104 //must make the popup visible to measure it or it has zero width
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1105 pop.style.display = 'block';
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1106 position_popup(activator, pop);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1107 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1108
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1109 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1110 * help_refine
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1111 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1112 * Intended for links within a help popup. Stores a stack of state so
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1113 * you can go back.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1114 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1115 function help_refine(popup_id) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1116 if (help_popup.popup == null || help_popup.popup.length == 0 || help_popup.activator == null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1117 throw new Error("Can not refine a help popup when one is not shown!");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1118 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1119 var pop = lookup_help_popup(popup_id);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1120 var last_pop = help_popup.popup[help_popup.popup.length - 1];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1121 if (pop == last_pop) return; // slightly odd, but no real cause for alarm
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1122 help_popup.popup.push(pop);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1123 toggle_class(pop, "nested", true);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1124 last_pop.style.display = "none";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1125 //must make the popup visible to measure it or it has zero width
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1126 pop.style.display = "block";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1127 position_popup(help_popup.activator, pop);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1128 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1129
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1130 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1131 * help_return
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1132 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1133 * Intended for links within a help popup. Stores a stack of state so
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1134 * you can go back.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1135 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1136 function help_return() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1137 if (help_popup.popup == null || help_popup.popup.length == 0 || help_popup.activator == null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1138 throw new Error("Can not return to a earlier help popup when one is not shown!");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1139 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1140 var last_pop = help_popup.popup.pop();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1141 last_pop.style.display = "none";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1142 var pop = (help_popup.popup.length > 0 ? help_popup.popup[help_popup.popup.length - 1] : null);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1143 if (pop != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1144 toggle_class(pop, "nested", help_popup.popup.length > 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1145 pop.style.display = "block";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1146 position_popup(help_popup.activator, pop);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1147 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1148 help_popup.activator = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1149 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1150 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1151
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1152 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1153 * update_scroll_pad
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1154 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1155 * Creates padding at the bottom of the page to allow
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1156 * scrolling of anything into view.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1157 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1158 function update_scroll_pad() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1159 var page, pad;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1160 page = (document.compatMode === "CSS1Compat") ? document.documentElement : document.body;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1161 pad = $("scrollpad");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1162 if (pad === null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1163 pad = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1164 pad.id = 'scrollpad';
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1165 document.getElementsByTagName('body')[0].appendChild(pad);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1166 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1167 pad.style.height = Math.abs(page.clientHeight - 100) + "px";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1168 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1169
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1170 function substitute_classes(node, remove, add) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1171 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1172 var list, all, i, cls, classes;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1173 list = node.className.split(/\s+/);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1174 all = {};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1175 for (i = 0; i < list.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1176 if (list[i].length > 0) all[list[i]] = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1177 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1178 for (i = 0; i < remove.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1179 if (all.hasOwnProperty(remove[i])) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1180 delete all[remove[i]];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1181 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1182 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1183 for (i = 0; i < add.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1184 all[add[i]] = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1185 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1186 classes = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1187 for (cls in all) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1188 classes += cls + " ";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1189 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1190 node.className = classes;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1191 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1192
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1193 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1194 * toggle_class
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1195 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1196 * Adds or removes a class from the node. If the parameter 'enabled' is not
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1197 * passed then the existence of the class will be toggled, otherwise it will be
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1198 * included if enabled is true.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1199 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1200 function toggle_class(node, cls, enabled) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1201 var classes = node.className;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1202 var list = classes.replace(/^\s+/, '').replace(/\s+$/, '').split(/\s+/);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1203 var found = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1204 for (var i = 0; i < list.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1205 if (list[i] == cls) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1206 list.splice(i, 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1207 i--;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1208 found = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1209 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1210 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1211 if (typeof enabled == "undefined") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1212 if (!found) list.push(cls);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1213 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1214 if (enabled) list.push(cls);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1215 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1216 node.className = list.join(" ");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1217 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1218
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1219 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1220 * find_child
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1221 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1222 * Searches child nodes in depth first order and returns the first it finds
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1223 * with the className specified.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1224 * TODO replace with querySelector
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1225 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1226 function find_child(node, className) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1227 var pattern;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1228 if (node == null || typeof node !== "object") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1229 return null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1230 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1231 if (typeof className === "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1232 pattern = new RegExp("\\b" + className + "\\b");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1233 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1234 pattern = className;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1235 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1236 if (node.nodeType == Node.ELEMENT_NODE &&
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1237 pattern.test(node.className)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1238 return node;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1239 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1240 var result = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1241 for (var i = 0; i < node.childNodes.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1242 result = find_child(node.childNodes[i], pattern);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1243 if (result != null) break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1244 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1245 return result;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1246 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1247 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1248
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1249 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1250 * find_parent
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1251 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1252 * Searches parent nodes outwards from the node and returns the first it finds
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1253 * with the className specified.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1254 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1255 function find_parent(node, className) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1256 var pattern;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1257 pattern = new RegExp("\\b" + className + "\\b");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1258 do {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1259 if (node.nodeType == Node.ELEMENT_NODE &&
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1260 pattern.test(node.className)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1261 return node;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1262 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1263 } while (node = node.parentNode);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1264 return null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1265 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1266
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1267 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1268 * find_parent_tag
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1269 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1270 * Searches parent nodes outwards from the node and returns the first it finds
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1271 * with the tag name specified. HTML tags should be specified in upper case.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1272 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1273 function find_parent_tag(node, tag_name) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1274 do {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1275 if (node.nodeType == Node.ELEMENT_NODE && node.tagName == tag_name) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1276 return node;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1277 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1278 } while (node = node.parentNode);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1279 return null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1280 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1281
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1282 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1283 * __toggle_help
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1284 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1285 * Uses the 'topic' property of the this object to
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1286 * toggle display of a help topic.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1287 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1288 * This function is not intended to be called directly.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1289 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1290 function __toggle_help(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1291 if (!e) e = window.event;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1292 if (e.type === "keydown") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1293 if (e.keyCode !== 13 && e.keyCode !== 32) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1294 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1295 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1296 // stop a submit or something like that
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1297 e.preventDefault();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1298 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1299
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1300 help_popup(this, this.getAttribute("data-topic"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1301 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1302
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1303 function setup_help_button(button) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1304 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1305 var topic;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1306 if (button.hasAttribute("data-topic")) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1307 topic = button.getAttribute("data-topic");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1308 if (document.getElementById(topic) != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1309 button.tabIndex = "0"; // make keyboard selectable
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1310 button.addEventListener("click", function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1311 help_popup(button, topic);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1312 }, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1313 button.addEventListener("keydown", function(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1314 // toggle only on Enter or Spacebar, let other keys do their thing
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1315 if (e.keyCode !== 13 && e.keyCode !== 32) return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1316 // stop a submit or something like that
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1317 e.preventDefault();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1318 help_popup(button, topic);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1319 }, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1320 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1321 button.style.visibility = "hidden";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1322 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1323 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1324 button.className += " active";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1325 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1326
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1327 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1328 * help_button
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1329 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1330 * Makes a help button for the passed topic.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1331 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1332 function help_button(topic) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1333 var btn = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1334 btn.className = "help";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1335 btn.setAttribute("data-topic", topic);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1336 setup_help_button(btn);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1337 return btn;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1338 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1339
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1340 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1341 * prepare_download
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1342 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1343 * Sets the attributes of a link to setup a file download using the given content.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1344 * If no link is provided then create one and click it.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1345 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1346 function prepare_download(content, mimetype, filename, link) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1347 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1348 // if no link is provided then create one and click it
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1349 var click_link = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1350 if (!link) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1351 link = document.createElement("a");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1352 click_link = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1353 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1354 try {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1355 // Use a BLOB to convert the text into a data URL.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1356 // We could do this manually with a base 64 conversion.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1357 // This will only be supported on modern browsers,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1358 // hence the try block.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1359 var blob = new Blob([content], {type: mimetype});
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1360 var reader = new FileReader();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1361 reader.onloadend = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1362 // If we're lucky the browser will also support the download
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1363 // attribute which will let us suggest a file name to save the link.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1364 // Otherwise it is likely that the filename will be unintelligible.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1365 link.setAttribute("download", filename);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1366 link.href = reader.result;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1367 if (click_link) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1368 // must add the link to click it
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1369 document.body.appendChild(link);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1370 link.click();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1371 document.body.removeChild(link);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1372 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1373 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1374 reader.readAsDataURL(blob);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1375 } catch (error) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1376 if (console && console.log) console.log(error);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1377 // probably an old browser
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1378 link.href = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1379 link.visible = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1380 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1381 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1382
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1383 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1384 * add_cell
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1385 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1386 * Add a cell to the table row.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1387 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1388 function add_cell(row, node, cls, click_action) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1389 var cell = row.insertCell(row.cells.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1390 if (node) cell.appendChild(node);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1391 if (cls && cls !== "") cell.className = cls;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1392 if (click_action) cell.addEventListener("click", click_action, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1393 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1394
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1395 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1396 * add_header_cell
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1397 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1398 * Add a header cell to the table row.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1399 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1400 function add_header_cell(row, node, help_topic, cls, colspan) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1401 var th = document.createElement("th");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1402 if (node) th.appendChild(node);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1403 if (help_topic && help_topic !== "") th.appendChild(help_button(help_topic));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1404 if (cls && cls !== "") th.className = cls;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1405 if (typeof colspan == "number" && colspan > 1) th.colSpan = colspan;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1406 row.appendChild(th);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1407 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1408
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1409 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1410 * add_text_cell
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1411 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1412 * Add a text cell to the table row.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1413 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1414 function add_text_cell(row, text, cls, action) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1415 var node = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1416 if (typeof(text) != 'undefined') node = document.createTextNode(text);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1417 add_cell(row, node, cls, action);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1418 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1419
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1420 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1421 * add_text_header_cell
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1422 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1423 * Add a text header cell to the table row.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1424 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1425 function add_text_header_cell(row, text, help_topic, cls, action, colspan) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1426 var node = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1427 if (typeof(text) != 'undefined') {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1428 var nbsp = (help_topic ? "\u00A0" : "");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1429 var str = "" + text;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1430 var parts = str.split(/\n/);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1431 if (parts.length === 1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1432 if (action) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1433 node = document.createElement("span");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1434 node.appendChild(document.createTextNode(str + nbsp));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1435 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1436 node = document.createTextNode(str + nbsp);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1437 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1438 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1439 node = document.createElement("span");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1440 for (var i = 0; i < parts.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1441 if (i !== 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1442 node.appendChild(document.createElement("br"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1443 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1444 node.appendChild(document.createTextNode(parts[i]));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1445 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1446 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1447 if (action) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1448 node.addEventListener("click", action, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1449 node.style.cursor = "pointer";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1450 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1451 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1452 add_header_cell(row, node, help_topic, cls, colspan);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1453 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1454
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1455 function setup_help() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1456 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1457 var help_buttons, i;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1458 help_buttons = document.querySelectorAll(".help:not(.active)");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1459 for (i = 0; i < help_buttons.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1460 setup_help_button(help_buttons[i]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1461 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1462 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1463
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1464 function setup_scrollpad() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1465 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1466 if (document.getElementsByTagName('body')[0].hasAttribute("data-scrollpad") && document.getElementById("scrollpad") == null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1467 window.addEventListener("resize", update_scroll_pad, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1468 update_scroll_pad();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1469 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1470 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1471
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1472 // anon function to avoid polluting global scope
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1473 (function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1474 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1475 window.addEventListener("load", function load(evt) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1476 window.removeEventListener("load", load, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1477 setup_help();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1478 setup_scrollpad();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1479 }, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1480 })();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1481
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1482 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1483 * make_link
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1484 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1485 * Creates a text node and if a URL is specified it surrounds it with a link.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1486 * If the URL doesn't begin with "http://" it automatically adds it, as
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1487 * relative links don't make much sense in this context.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1488 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1489 function make_link(text, url) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1490 var textNode = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1491 var link = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1492 if (typeof text !== "undefined" && text !== null) textNode = document.createTextNode(text);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1493 if (typeof url === "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1494 if (url.indexOf("//") == -1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1495 url = "http://" + url;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1496 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1497 link = document.createElement('a');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1498 link.href = url;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1499 if (textNode) link.appendChild(textNode);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1500 return link;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1501 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1502 return textNode;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1503 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1504 </script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1505 <script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1506 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1507 // return true if any part of the passed element is visible in the viewport
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1508 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1509 function element_in_viewport(elem) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1510 var rect;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1511 try {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1512 rect = elem.getBoundingClientRect();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1513 } catch (e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1514 return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1515 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1516 return (
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1517 rect.top < (window.innerHeight || document.body.clientHeight) &&
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1518 rect.bottom > 0 &&
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1519 rect.left < (window.innerWidth || document.body.clientWidth) &&
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1520 rect.right > 0
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1521 );
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1522 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1523
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1524 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1525 // Functions to delay a drawing task until it is required or it would not lag the display to do so
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1526 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1527
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1528 // a list of items still to be drawn
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1529 var drawable_list = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1530 // the delay between drawing objects that are not currently visible
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1531 var draw_delay = 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1532 // the delay after a user interaction
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1533 var user_delay = 300;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1534 // the delay after a user has stopped scrolling and is viewing the stuff drawn on the current page
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1535 var stop_delay = 300;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1536 // the timer handle; allows resetting of the timer after user interactions
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1537 var draw_timer = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1538
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1539 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1540 // Drawable
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1541 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1542 // elem - a page element which defines the position on the page that drawing is to be done
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1543 // task - an object with the method run which takes care of painting the object
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1544 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1545 var Drawable = function(elem, task) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1546 this.elem = elem;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1547 this.task = task;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1548 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1549
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1550 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1551 // Drawable.is_visible
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1552 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1553 // Determines if the element is visible in the viewport
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1554 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1555 Drawable.prototype.is_visible = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1556 return element_in_viewport(this.elem);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1557 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1558
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1559 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1560 // Drawable.run
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1561 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1562 // Run the task held by the drawable
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1563 Drawable.prototype.run = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1564 if (this.task) this.task.run();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1565 this.task = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1566 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1567
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1568 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1569 // Drawable.run
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1570 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1571 // Run the task iff visible
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1572 // returns true if the task ran or has already run
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1573 Drawable.prototype.run_visible = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1574 if (this.task) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1575 if (element_in_viewport(this.elem)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1576 this.task.run();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1577 this.task = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1578 return true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1579 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1580 return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1581 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1582 return true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1583 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1584 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1585
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1586 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1587 // draw_on_screen
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1588 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1589 // Checks each drawable object and draws those on screen.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1590 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1591 function draw_on_screen() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1592 var found = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1593 for (var i = 0; i < drawable_list.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1594 if (drawable_list[i].run_visible()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1595 drawable_list.splice(i--, 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1596 found = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1597 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1598 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1599 return found;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1600 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1601
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1602 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1603 // process_draw_tasks
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1604 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1605 // Called on a delay to process the next avaliable
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1606 // draw task.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1607 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1608 function process_draw_tasks() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1609 var delay = draw_delay;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1610 draw_timer = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1611 if (drawable_list.length == 0) return; //no more tasks
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1612 if (draw_on_screen()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1613 delay = stop_delay; //give the user a chance to scroll
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1614 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1615 //get next task
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1616 var drawable = drawable_list.shift();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1617 drawable.task.run();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1618 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1619 //allow UI updates between tasks
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1620 draw_timer = window.setTimeout("process_draw_tasks()", delay);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1621 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1622
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1623 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1624 // delayed_process_draw_tasks
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1625 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1626 // Call process_draw_tasks after a short delay.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1627 // The delay serves to group multiple redundant events.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1628 // Should be set as event handler for onscroll and onresize.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1629 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1630 function delayed_process_draw_tasks() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1631 //reset the timer
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1632 if (drawable_list.length > 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1633 if (draw_timer != null) clearTimeout(draw_timer);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1634 draw_timer = window.setTimeout("process_draw_tasks()", user_delay);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1635 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1636 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1637
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1638 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1639 // add_draw_task
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1640 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1641 // Add a drawing task to be called immediately if it is
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1642 // visible, or to be called on a delay to reduce stuttering
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1643 // effect on the web browser.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1644 function add_draw_task(elem, task) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1645 drawable = new Drawable(elem, task);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1646 if (drawable.is_visible()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1647 task.run();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1648 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1649 drawable_list.push(drawable);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1650 //reset timer
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1651 if (draw_timer != null) clearTimeout(draw_timer);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1652 draw_timer = window.setTimeout("process_draw_tasks()", user_delay);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1653 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1654 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1655
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1656 </script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1657 <script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1658 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1659 // start Alphabet object
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1660 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1661 var Alphabet = function(alphabet, background) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1662 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1663 var i, j, sym, aliases, complement, comp_e_sym, ambigs, generate_background;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1664 generate_background = (background == null);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1665 if (generate_background) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1666 background = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1667 for (i = 0; i < alphabet.ncore; i++) background[i] = 1.0 / alphabet.ncore;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1668 } else if (alphabet.ncore != background.length) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1669 throw new Error("The background length does not match the alphabet length.");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1670 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1671 this.name = alphabet.name;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1672 this.like = (alphabet.like != null ? alphabet.like.toUpperCase() : null);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1673 this.ncore = alphabet.ncore;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1674 this.symbols = alphabet.symbols;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1675 this.background = background;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1676 this.genbg = generate_background;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1677 this.encode = {};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1678 this.encode2core = {};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1679 this.complement = {};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1680 // check if all symbols are same case
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1681 var seen_uc = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1682 var seen_lc = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1683 var check_case = function (syms) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1684 var s, sym;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1685 if (typeof syms === "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1686 for (s = 0; s < syms.length; s++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1687 sym = syms.charAt(s);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1688 if (sym >= 'a' && sym <= 'z') seen_lc = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1689 else if (sym >= 'A' && sym <= 'Z') seen_uc = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1690 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1691 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1692 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1693 for (i = 0; i < this.symbols.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1694 check_case(this.symbols[i].symbol);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1695 check_case(this.symbols[i].aliases);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1696 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1697 // now map symbols to indexes
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1698 var update_array = function(array, syms, index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1699 var s, sym;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1700 if (typeof syms === "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1701 for (s = 0; s < syms.length; s++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1702 sym = syms.charAt(s);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1703 array[sym] = index;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1704 // when only a single case is used, then encode as case insensitive
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1705 if (seen_uc != seen_lc) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1706 if (sym >= 'a' && sym <= 'z') {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1707 array[sym.toUpperCase()] = index;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1708 } else if (sym >= 'A' && sym <= 'Z') {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1709 array[sym.toLowerCase()] = index;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1710 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1711 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1712 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1713 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1714 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1715 // map core symbols to index
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1716 for (i = 0; i < this.ncore; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1717 update_array(this.encode2core, this.symbols[i].symbol, i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1718 update_array(this.encode, this.symbols[i].symbol, i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1719 update_array(this.encode2core, this.symbols[i].aliases, i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1720 update_array(this.encode, this.symbols[i].aliases, i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1721 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1722 // map ambigous symbols to index
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1723 ambigs = {};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1724 for (i = this.ncore; i < this.symbols.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1725 update_array(this.encode, this.symbols[i].symbol, i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1726 update_array(this.encode, this.symbols[i].aliases, i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1727 ambigs[this.symbols[i].equals] = i;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1728 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1729 // determine complements
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1730 for (i = 0; i < this.ncore; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1731 complement = this.symbols[i].complement;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1732 if (typeof complement === "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1733 this.complement[i] = this.encode2core[complement];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1734 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1735 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1736 next_symbol:
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1737 for (i = this.ncore; i < this.symbols.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1738 complement = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1739 for (j = 0; j < this.symbols[i].equals.length; j++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1740 comp_e_sym = this.complement[this.encode2core[this.symbols[i].equals.charAt(j)]];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1741 if (typeof comp_e_sym !== "number") continue next_symbol;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1742 complement += this.symbols[comp_e_sym].symbol;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1743 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1744 complement = complement.split("").sort().join("");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1745 if (typeof ambigs[complement] === "number") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1746 this.complement[i] = ambigs[complement];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1747 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1748 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1749 // determine case insensitivity
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1750 this.case_insensitive = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1751 if (seen_uc == seen_lc) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1752 // when there is a mixture of cases it probably won't
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1753 // be case insensitive but we still need to check
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1754 loop:
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1755 for (i = 0; i < this.symbols.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1756 sym = this.symbols[i].symbol;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1757 if (sym >= 'A' && sym <= 'Z') {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1758 if (this.encode[sym.toLowerCase()] != i) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1759 this.case_insensitive = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1760 break loop;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1761 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1762 } else if (sym >= 'a' && sym <= 'z') {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1763 if (this.encode[sym.toUpperCase()] != i) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1764 this.case_insensitive = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1765 break loop;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1766 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1767 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1768 aliases = this.symbols[i].aliases;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1769 if (aliases != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1770 for (j = 0; j < aliases.length; j++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1771 sym = aliases.charAt(j);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1772 if (sym >= 'A' && sym <= 'Z') {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1773 if (this.encode[sym.toLowerCase()] != i) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1774 this.case_insensitive = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1775 break loop;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1776 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1777 } else if (sym >= 'a' && sym <= 'z') {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1778 if (this.encode[sym.toUpperCase()] != i) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1779 this.case_insensitive = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1780 break loop;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1781 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1782 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1783 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1784 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1785 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1786 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1787 // normalise aliases to remove the prime symbol and eliminate
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1788 // the alternate cases when the alphabet is case insensitive
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1789 var seen, out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1790 for (i = 0; i < this.symbols.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1791 sym = this.symbols[i].symbol;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1792 aliases = this.symbols[i].aliases;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1793 if (typeof aliases != "string") aliases = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1794 seen = {};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1795 out = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1796 if (this.case_insensitive) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1797 sym = sym.toUpperCase();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1798 aliases = aliases.toUpperCase();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1799 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1800 seen[sym] = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1801 for (j = 0; j < aliases.length; j++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1802 if (!seen[aliases.charAt(j)]) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1803 seen[aliases.charAt(j)] = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1804 out.push(aliases.charAt(j));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1805 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1806 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1807 this.symbols[i].aliases = out.sort().join("");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1808 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1809 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1810 // return the name of the alphabet
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1811 Alphabet.prototype.get_alphabet_name = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1812 return this.name;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1813 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1814 // return if the alphabet can be complemented
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1815 Alphabet.prototype.has_complement = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1816 return (typeof this.symbols[0].complement === "string");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1817 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1818 // return true if an uppercase letter has the same meaning as the lowercase form
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1819 Alphabet.prototype.is_case_insensitive = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1820 return this.case_insensitive;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1821 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1822 // return the information content of an alphabet letter
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1823 Alphabet.prototype.get_ic = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1824 return Math.log(this.ncore) / Math.LN2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1825 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1826 // return the count of the core alphabet symbols
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1827 Alphabet.prototype.get_size_core = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1828 return this.ncore;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1829 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1830 // return the count of all alphabet symbols
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1831 Alphabet.prototype.get_size_full = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1832 return this.symbols.length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1833 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1834 // return the symbol for the given alphabet index
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1835 Alphabet.prototype.get_symbol = function(alph_index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1836 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1837 if (alph_index < 0 || alph_index >= this.symbols.length) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1838 throw new Error("Alphabet index out of bounds");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1839 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1840 return this.symbols[alph_index].symbol;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1841 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1842 // return the aliases for the given alphabet index
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1843 Alphabet.prototype.get_aliases = function(alph_index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1844 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1845 if (alph_index < 0 || alph_index >= this.symbols.length) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1846 throw new Error("Alphabet index out of bounds");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1847 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1848 var sym_obj = this.symbols[alph_index];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1849 return (sym_obj.aliases != null ? sym_obj.aliases : "");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1850 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1851 // return the name for the given alphabet index
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1852 Alphabet.prototype.get_name = function(alph_index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1853 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1854 var sym;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1855 if (alph_index < 0 || alph_index >= this.symbols.length) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1856 throw new Error("Alphabet index out of bounds");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1857 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1858 sym = this.symbols[alph_index];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1859 return (typeof sym.name === "string" ? sym.name : sym.symbol);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1860 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1861 // return the alphabet it is like or null
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1862 Alphabet.prototype.get_like = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1863 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1864 return this.like;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1865 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1866 // return the index of the complement for the given alphabet index
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1867 Alphabet.prototype.get_complement = function(alph_index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1868 var comp_e_sym = this.complement[alph_index];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1869 if (typeof comp_e_sym === "number") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1870 return comp_e_sym;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1871 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1872 return -1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1873 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1874 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1875 // return a string containing the core symbols
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1876 Alphabet.prototype.get_symbols = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1877 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1878 var i, core_symbols;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1879 core_symbols = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1880 for (i = 0; i < this.ncore; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1881 core_symbols += this.symbols[i].symbol;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1882 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1883 return core_symbols;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1884 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1885 // return if the background was not a uniform generated background
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1886 Alphabet.prototype.has_bg = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1887 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1888 return !this.genbg;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1889 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1890 // get the background frequency for the index
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1891 Alphabet.prototype.get_bg_freq = function(alph_index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1892 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1893 var freq, i, symbols;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1894 if (alph_index >= 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1895 if (alph_index < this.ncore) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1896 return this.background[alph_index];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1897 } else if (alph_index < this.symbols.length) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1898 freq = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1899 symbols = this.symbols[alph_index].equals;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1900 for (i = 0; i < symbols.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1901 freq += this.background[this.encode2core[symbols.charAt(i)]];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1902 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1903 return freq;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1904 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1905 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1906 throw new Error("The alphabet index is out of range.");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1907 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1908 // get the colour of the index
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1909 Alphabet.prototype.get_colour = function(alph_index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1910 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1911 if (alph_index < 0 || alph_index >= this.symbols.length) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1912 throw new Error("BAD_ALPHABET_INDEX");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1913 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1914 if (typeof this.symbols[alph_index].colour != "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1915 return "black";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1916 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1917 return "#" + this.symbols[alph_index].colour;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1918 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1919 // get the rgb componets of the colour at the index
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1920 Alphabet.prototype.get_rgb = function(alph_index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1921 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1922 if (alph_index < 0 || alph_index >= this.symbols.length) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1923 throw new Error("BAD_ALPHABET_INDEX");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1924 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1925 if (typeof this.symbols[alph_index].colour != "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1926 return {"red": 0, "green": 0, "blue": 0};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1927 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1928 var colour = this.symbols[alph_index].colour;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1929 var red = parseInt(colour.substr(0, 2), 16) / 255;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1930 var green = parseInt(colour.substr(2, 2), 16) / 255;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1931 var blue = parseInt(colour.substr(4, 2), 16) / 255;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1932 return {"red": red, "green": green, "blue": blue};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1933 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1934 // convert a symbol into the index
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1935 Alphabet.prototype.get_index = function(letter) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1936 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1937 var alph_index;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1938 alph_index = this.encode[letter];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1939 if (typeof alph_index === "undefined") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1940 return -1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1941 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1942 return alph_index;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1943 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1944 // convert a symbol into the list of core indexes that it equals
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1945 Alphabet.prototype.get_indexes = function(letter) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1946 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1947 var alph_index, comprise_str, i, comprise_list;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1948 alph_index = this.encode[letter];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1949 if (typeof alph_index === "undefined") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1950 throw new Error("Unknown letter");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1951 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1952 comprise_str = this.symbols[alph_index].equals;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1953 comprise_list = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1954 if (typeof comprise_str == "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1955 for (i = 0; i < comprise_str.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1956 comprise_list.push(this.encode2core[comprise_str.charAt(i)]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1957 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1958 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1959 comprise_list.push(alph_index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1960 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1961 return comprise_list;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1962 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1963 // check if a symbol is the primary way of representing the symbol in the alphabet
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1964 Alphabet.prototype.is_prime_symbol = function(letter) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1965 var alph_index;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1966 alph_index = this.encode[letter];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1967 if (alph_index == null) return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1968 if (this.is_case_insensitive()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1969 return (this.symbols[alph_index].symbol.toUpperCase() == letter.toUpperCase());
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1970 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1971 return (this.symbols[alph_index].symbol == letter);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1972 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1973 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1974 // compare 2 alphabets
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1975 Alphabet.prototype.equals = function(other) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1976 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1977 var i, sym1, sym2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1978 // first check that it's actually an alphabet object
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1979 if (!(typeof other === "object" && other != null && other instanceof Alphabet)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1980 return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1981 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1982 // second shortcircuit if it's the same object
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1983 if (this === other) return true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1984 // compare
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1985 if (this.name !== other.name) return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1986 if (this.ncore !== other.ncore) return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1987 if (this.symbols.length !== other.symbols.length) return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1988 for (i = 0; i < this.symbols.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1989 sym1 = this.symbols[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1990 sym2 = other.symbols[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1991 if (sym1.symbol !== sym2.symbol) return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1992 if (sym1.aliases !== sym2.aliases) return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1993 if (sym1.name !== sym2.name) return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1994 if (typeof sym1.colour !== typeof sym2.colour ||
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1995 (typeof sym1.colour === "string" && typeof sym2.colour === "string" &&
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1996 parseInt(sym1.colour, 16) != parseInt(sym2.colour, 16))) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1997 return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1998 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1999 if (sym1.complement !== sym2.complement) return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2000 if (sym1.equals !== sym2.equals) return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2001 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2002 return true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2003 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2004 Alphabet.prototype.check_core_subset = function(super_alph) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2005 var complement_same = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2006 var seen_set = {};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2007 var sub_i, sub_symbol, super_i, super_symbol;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2008 for (sub_i = 0; sub_i < this.ncore; sub_i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2009 sub_symbol = this.symbols[sub_i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2010 super_i = super_alph.encode[sub_symbol.symbol];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2011 if (super_i == null) return 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2012 super_symbol = super_alph.symbols[super_i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2013 if (seen_set[super_i]) return 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2014 seen_set[super_i] = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2015 // check complement
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2016 if (sub_symbol.complement != null && super_symbol.complement != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2017 if (super_alph.encode[sub_symbol.complement] != super_alph.encode[super_symbol.complement]) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2018 complement_same = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2019 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2020 } else if (sub_symbol.complement != null || super_symbol.complement != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2021 complement_same = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2022 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2023 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2024 return (complement_same ? 1 : -1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2025 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2026 // convert a sequence to its reverse complement
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2027 Alphabet.prototype.invcomp_seq = function(seq) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2028 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2029 var syms, i, e_sym, comp_e_sym;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2030 if (!this.has_complement()) throw new Error("Alphabet must be complementable");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2031 syms = seq.split("");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2032 for (i = 0; i < syms.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2033 e_sym = this.encode[syms[i]];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2034 if (typeof e_sym === "undefined") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2035 e_sym = this.ncore; // wildcard
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2036 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2037 comp_e_sym = this.complement[e_sym];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2038 if (typeof comp_e_sym === "undefined") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2039 comp_e_sym = e_sym; // not complementable
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2040 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2041 syms[i] = this.symbols[comp_e_sym].symbol;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2042 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2043 return syms.reverse().join("");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2044 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2045 // convert the alphabet to the text version
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2046 Alphabet.prototype.as_text = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2047 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2048 function name_as_text(name) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2049 var i, c, out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2050 out = "\"";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2051 for (i = 0; i < name.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2052 c = name.charAt(i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2053 if (c == "\"") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2054 out += "\\\"";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2055 } else if (c == "/") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2056 out += "\\/";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2057 } else if (c == "\\") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2058 out += "\\\\";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2059 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2060 out += c;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2061 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2062 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2063 out += "\"";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2064 return out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2065 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2066 function symbol_as_text(sym) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2067 var out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2068 out = sym.symbol;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2069 if (typeof sym.name === "string" && sym.name != sym.symbol) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2070 out += " " + name_as_text(sym.name);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2071 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2072 if (typeof sym.colour === "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2073 out += " " + sym.colour;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2074 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2075 return out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2076 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2077 var out, i, j, c, sym;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2078 out = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2079 // output core symbols with 2 way complements
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2080 for (i = 0; i < this.ncore; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2081 c = this.complement[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2082 if (typeof c === "number" && i < c && this.complement[c] === i) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2083 out += symbol_as_text(this.symbols[i]) + " ~ " + symbol_as_text(this.symbols[c]) + "\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2084 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2085 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2086 // output core symbols with no complement
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2087 for (i = 0; i < this.ncore; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2088 if (typeof this.complement[i] === "undefined") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2089 out += symbol_as_text(this.symbols[i]) + "\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2090 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2091 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2092 // output ambiguous symbols that have comprising characters
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2093 for (i = this.ncore; i < this.symbols.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2094 if (this.symbols[i].equals.length == 0) break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2095 out += symbol_as_text(this.symbols[i]) + " = " + this.symbols[i].equals + "\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2096 if (typeof this.symbols[i].aliases === "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2097 for (j = 0; j < this.symbols[i].aliases.length; j++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2098 if (this.symbols[i].aliases.charAt(j) == this.symbols[i].symbol) continue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2099 out += this.symbols[i].aliases.charAt(j) + " = " + this.symbols[i].equals + "\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2100 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2101 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2102 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2103 // output aliases of core symbols
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2104 for (i = 0; i < this.ncore; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2105 if (typeof this.symbols[i].aliases === "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2106 for (j = 0; j < this.symbols[i].aliases.length; j++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2107 if (this.symbols[i].aliases.charAt(j) == this.symbols[i].symbol) continue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2108 out += this.symbols[i].aliases.charAt(j) + " = " + this.symbols[i].symbol + "\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2109 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2110 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2111 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2112 // output gap symbols
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2113 i = this.symbols.length - 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2114 if (this.symbols[i].equals.length == 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2115 out += symbol_as_text(this.symbols[i]) + " =\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2116 if (typeof this.symbols[i].aliases === "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2117 for (j = 0; j < this.symbols[i].aliases.length; j++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2118 if (this.symbols[i].aliases.charAt(j) == this.symbols[i].symbol) continue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2119 out += this.symbols[i].aliases.charAt(j) + " =\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2120 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2121 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2122 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2123 return out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2124 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2125 // output the alphabet as it appears in minimal MEME format
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2126 Alphabet.prototype.as_meme = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2127 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2128 function name_as_text(name) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2129 var i, c, out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2130 out = "\"";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2131 for (i = 0; i < name.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2132 c = name.charAt(i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2133 if (c == "\"") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2134 out += "\\\"";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2135 } else if (c == "/") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2136 out += "\\/";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2137 } else if (c == "\\") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2138 out += "\\\\";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2139 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2140 out += c;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2141 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2142 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2143 out += "\"";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2144 return out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2145 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2146 if (this.equals(AlphStd.DNA)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2147 return "ALPHABET= ACGT\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2148 } else if (this.equals(AlphStd.PROTEIN)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2149 return "ALPHABET= ACDEFGHIKLMNPQRSTVWY\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2150 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2151 return "ALPHABET" +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2152 (this.name != null ? " " + name_as_text(this.name) : "") +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2153 (this.like != null ? " " + this.like + "-LIKE" : "") + "\n" +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2154 this.as_text() + "END ALPHABET\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2155 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2156 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2157
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2158 // Returns a table showing all the letters in the alphabet
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2159 Alphabet.prototype.as_table = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2160 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2161 var i, j, row, th, td, aliases, equals, sym;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2162 var table = document.createElement("table");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2163 // create the core symbol header
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2164 row = table.insertRow(table.rows.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2165 th = document.createElement("th");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2166 th.appendChild(document.createTextNode("Symbol(s)"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2167 row.appendChild(th);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2168 th = document.createElement("th");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2169 th.appendChild(document.createTextNode("Name"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2170 row.appendChild(th);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2171 th = document.createElement("th");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2172 if (this.has_complement()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2173 th.appendChild(document.createTextNode("Complement"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2174 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2175 row.appendChild(th);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2176 // list the core symbols
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2177 for (i = 0; i < this.ncore; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2178 row = table.insertRow(table.rows.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2179 td = document.createElement("td");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2180 if (this.symbols[i].colour != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2181 td.style.color = '#' + this.symbols[i].colour;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2182 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2183 td.appendChild(document.createTextNode(this.symbols[i].symbol));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2184 aliases = this.get_aliases(i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2185 if (aliases.length > 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2186 td.appendChild(document.createTextNode(' ' + aliases.split('').join(' ')));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2187 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2188 row.appendChild(td);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2189 td = document.createElement("td");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2190 if (this.symbols[i].name != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2191 td.appendChild(document.createTextNode(this.symbols[i].name));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2192 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2193 row.appendChild(td);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2194 td = document.createElement("td");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2195 if (this.symbols[i].complement != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2196 td.style.color = this.get_colour(this.get_index(this.symbols[i].complement));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2197 td.appendChild(document.createTextNode(this.symbols[i].complement));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2198 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2199 row.appendChild(td);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2200 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2201 // create the ambiguous symbol header
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2202 row = table.insertRow(table.rows.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2203 th = document.createElement("th");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2204 th.appendChild(document.createTextNode("Symbol(s)"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2205 row.appendChild(th);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2206 th = document.createElement("th");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2207 th.appendChild(document.createTextNode("Name"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2208 row.appendChild(th);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2209 th = document.createElement("th");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2210 th.appendChild(document.createTextNode("Matches"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2211 row.appendChild(th);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2212 // list the ambiguous symbols
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2213 for (i = this.ncore; i < this.symbols.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2214 row = table.insertRow(table.rows.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2215 td = document.createElement("td");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2216 if (this.symbols[i].colour != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2217 td.style.color = '#' + this.symbols[i].colour;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2218 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2219 td.appendChild(document.createTextNode(this.symbols[i].symbol));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2220 aliases = this.get_aliases(i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2221 if (aliases.length > 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2222 td.appendChild(document.createTextNode(' ' + aliases.split('').join(' ')));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2223 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2224 row.appendChild(td);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2225 td = document.createElement("td");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2226 if (this.symbols[i].name != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2227 td.appendChild(document.createTextNode(this.symbols[i].name));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2228 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2229 row.appendChild(td);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2230 td = document.createElement("td");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2231 equals = this.symbols[i].equals.split('');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2232 for (j = 0; j < equals.length; j++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2233 if (j != 0) td.appendChild(document.createTextNode(' '));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2234 sym = document.createElement("span");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2235 sym.style.color = this.get_colour(this.get_index(equals[j]));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2236 sym.appendChild(document.createTextNode(equals[j]));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2237 td.appendChild(sym);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2238 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2239 row.appendChild(td);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2240 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2241 return table;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2242 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2243
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2244 // returns a dictionary of the colours for EPS
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2245 Alphabet.prototype._as_eps_dict = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2246 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2247 var i, sym, rgb;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2248 var out = "/fullColourDict <<\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2249 for (i = 0; i < this.ncore; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2250 sym = this.get_symbol(i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2251 sym = sym.replace(/\\/g, "\\\\");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2252 sym = sym.replace(/\(/g, "\\(");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2253 sym = sym.replace(/\)/g, "\\)");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2254 rgb = this.get_rgb(i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2255 out += " (" + sym + ") [" + rgb.red.toFixed(4) + " " + rgb.green.toFixed(4) + " " + rgb.blue.toFixed(4) + "]\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2256 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2257 out += ">> def\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2258 out += "/mutedColourDict <<\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2259 for (i = 0; i < this.ncore; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2260 sym = this.get_symbol(i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2261 sym = sym.replace(/\\/g, "\\\\");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2262 sym = sym.replace(/\(/g, "\\(");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2263 sym = sym.replace(/\)/g, "\\)");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2264 rgb = Alphabet.lighten_colour(this.get_rgb(i));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2265 out += " (" + sym + ") [" + rgb.red.toFixed(4) + " " + rgb.green.toFixed(4) + " " + rgb.blue.toFixed(4) + "]\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2266 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2267 out += ">> def\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2268 return out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2269 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2270
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2271 // return the alphabet name or a list of primary symbols
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2272 Alphabet.prototype.toString = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2273 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2274 if (this.name != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2275 return this.name;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2276 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2277 return this.get_symbols();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2278 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2279 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2280
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2281 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2282 // Helper functions
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2283 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2284
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2285 // Convert a colour specified in RGB colourspace values into LAB colourspace
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2286 Alphabet.rgb2lab = function(rgb) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2287 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2288 var xyzHelper, labHelper;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2289 // XYZ helper
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2290 xyzHelper = function(value) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2291 if (value > 0.0445) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2292 value = (value + 0.055) / 1.055;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2293 value = Math.pow(value, 2.4);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2294 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2295 value /= 12.92;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2296 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2297 value *= 100;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2298 return value;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2299 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2300 // lab helper
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2301 labHelper = function(value) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2302 if (value > 0.008856) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2303 value = Math.pow(value, 1.0 / 3.0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2304 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2305 value = (7.787 * value) + (16.0 / 116.0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2306 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2307 return value;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2308 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2309 // convert into XYZ colourspace
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2310 var c1, c2, c3;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2311 if (typeof rgb == "number") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2312 c1 = xyzHelper(((rgb >> 16) & 0xFF) / 255.0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2313 c2 = xyzHelper(((rgb >> 8) & 0xFF) / 255.0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2314 c3 = xyzHelper((rgb & 0xFF) / 255.0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2315 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2316 c1 = xyzHelper(rgb.red);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2317 c2 = xyzHelper(rgb.green);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2318 c3 = xyzHelper(rgb.blue);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2319 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2320 var x = (c1 * 0.4124) + (c2 * 0.3576) + (c3 * 0.1805);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2321 var y = (c1 * 0.2126) + (c2 * 0.7152) + (c3 * 0.0722);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2322 var z = (c1 * 0.0193) + (c2 * 0.1192) + (c3 * 0.9505);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2323 // convert into Lab colourspace
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2324 c1 = labHelper(x / 95.047);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2325 c2 = labHelper(y / 100.0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2326 c3 = labHelper(z / 108.883);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2327 var l = (116.0 * c2) - 16;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2328 var a = 500.0 * (c1 - c2);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2329 var b = 200.0 * (c2 - c3);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2330 return {"l": l, "a": a, "b": b};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2331 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2332
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2333 // Convert a colour specified in HSV colourspace into RGB colourspace
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2334 Alphabet.hsv2rgb = function(hue, sat, value, output_object) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2335 // achromatic (grey)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2336 var r = value;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2337 var g = value;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2338 var b = value;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2339 if (sat != 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2340 var h = hue / 60.0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2341 var i = Math.floor(h);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2342 var f = h - i;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2343 var p = value * (1.0 - sat);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2344 var q = value * (1.0 - (sat * f));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2345 var t = value * (1.0 - (sat * (1.0 - f)));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2346 if (i == 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2347 r = value;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2348 g = t;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2349 b = p;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2350 } else if (i == 1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2351 r = q;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2352 g = value;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2353 b = p;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2354 } else if (i == 2) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2355 r = p;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2356 g = value;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2357 b = t;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2358 } else if (i == 3) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2359 r = p;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2360 g = q;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2361 b = value;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2362 } else if (i == 4) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2363 r = t;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2364 g = p;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2365 b = value;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2366 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2367 r = value;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2368 g = p;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2369 b = q;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2370 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2371 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2372 if (output_object) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2373 return {"red": r, "green": g, "blue": b};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2374 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2375 return (Math.floor(r * 255) << 15) | (Math.floor(g * 255) << 8) | (Math.floor(b * 255));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2376 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2377 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2378
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2379 // Calculate a distance score between two colours in LAB colourspace
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2380 Alphabet.lab_dist = function(lab1, lab2) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2381 var c1 = Math.sqrt((lab1.l * lab1.l) + (lab1.a * lab1.a));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2382 var c2 = Math.sqrt((lab2.l * lab2.l) + (lab2.a * lab2.a));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2383 var dc = c1 - c2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2384 var dl = lab1.l - lab2.l;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2385 var da = lab1.a - lab2.a;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2386 var db = lab1.b - lab2.b;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2387 // we don't want NaN due to rounding errors so fudge things a bit...
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2388 var dh = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2389 var dh_squared = (da * da) + (db * db) - (dc * dc);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2390 if (dh_squared > 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2391 dh = Math.sqrt(dh_squared);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2392 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2393 var first = dl;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2394 var second = dc / (1.0 + (0.045 * c1));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2395 var third = dh / (1.0 + (0.015 * c1));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2396 return Math.sqrt((first * first) + (second * second) + (third * third));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2397 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2398
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2399 // convert an RGB value into a HSL value
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2400 Alphabet.rgb2hsl = function(rgb) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2401 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2402 var min, max, delta, h, s, l, r, g, b;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2403 if (typeof rgb == "number") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2404 r = ((rgb >> 16) & 0xFF) / 255.0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2405 g = ((rgb >> 8) & 0xFF) / 255.0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2406 b = (rgb & 0xFF) / 255.0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2407 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2408 r = rgb.red;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2409 g = rgb.green;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2410 b = rgb.blue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2411 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2412 min = Math.min(r, g, b);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2413 max = Math.max(r, g, b);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2414 delta = max - min;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2415 l = min + (delta / 2);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2416 if (max == min) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2417 h = 0; // achromatic (grayscale)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2418 s = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2419 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2420 if (l > 0.5) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2421 s = delta / (2 - max - min);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2422 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2423 s = delta / (max + min);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2424 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2425 if (max == r) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2426 h = (g - b) / delta;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2427 if (g < b) h += 6;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2428 } else if (max == g) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2429 h = ((b - r) / delta) + 2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2430 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2431 h = ((r - g) / delta) + 4;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2432 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2433 h /= 6;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2434 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2435 return {"h": h, "s": s, "l": l};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2436 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2437
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2438 // convert a HSL value into an RGB value
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2439 Alphabet.hsl2rgb = function(hsl, output_object) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2440 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2441 function _hue(p, q, t) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2442 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2443 if (t < 0) t += 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2444 else if (t > 1) t -= 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2445 if (t < (1.0 / 6.0)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2446 return p + ((q - p) * 6.0 * t);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2447 } else if (t < 0.5) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2448 return q;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2449 } else if (t < (2.0 / 3.0)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2450 return p + ((q - p) * ((2.0 / 3.0) - t) * 6.0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2451 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2452 return p;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2453 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2454 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2455 var r, g, b, p, q;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2456 if (hsl.s == 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2457 // achromatic (grayscale)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2458 r = hsl.l;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2459 g = hsl.l;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2460 b = hsl.l;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2461 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2462 if (hsl.l < 0.5) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2463 q = hsl.l * (1 + hsl.s);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2464 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2465 q = hsl.l + hsl.s - (hsl.l * hsl.s);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2466 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2467 p = (2 * hsl.l) - q;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2468 r = _hue(p, q, hsl.h + (1.0 / 3.0));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2469 g = _hue(p, q, hsl.h);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2470 b = _hue(p, q, hsl.h - (1.0 / 3.0));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2471 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2472 if (output_object) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2473 return {"red": r, "green": g, "blue": b};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2474 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2475 return (Math.floor(r * 255) << 15) | (Math.floor(g * 255) << 8) | (Math.floor(b * 255));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2476 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2477 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2478
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2479 Alphabet.lighten_colour = function(rgb) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2480 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2481 var hsl = Alphabet.rgb2hsl(rgb);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2482 hsl.l += (1.0 - hsl.l) * 2 / 3;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2483 return Alphabet.hsl2rgb(hsl, typeof rgb != "number");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2484 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2485
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2486 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2487 // end Alphabet object
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2488 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2489
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2490 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2491 // start StandardAlphabet object
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2492 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2493
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2494 // an extension of the alphabet object to support some additional fields
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2495 // only present in standard alphabets.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2496 var StandardAlphabet = function(enum_code, enum_name, alphabet_data) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2497 Alphabet.apply(this, [alphabet_data]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2498 this.enum_code = enum_code;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2499 this.enum_name = enum_name;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2500 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2501 StandardAlphabet.prototype = Alphabet.prototype;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2502 StandardAlphabet.prototype.constructor = StandardAlphabet;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2503
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2504 // A unique code for this standard alphabet.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2505 // This code will be a power of 2 to enable creation of bitsets for
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2506 // a selection of standard alphabets.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2507 StandardAlphabet.prototype.get_code = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2508 return this.enum_code;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2509 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2510
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2511 // A unique name for this standard alphabet.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2512 // this name will be all upper case and the same as the property that
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2513 // refers to this alphabet in the AlphStd collection.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2514 StandardAlphabet.prototype.get_enum = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2515 return this.enum_name;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2516 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2517
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2518 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2519 // end StandardAlphabet object
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2520 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2521
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2522 // A collection of standard alphabets.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2523 var AlphStd = {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2524 RNA: new StandardAlphabet(1, "RNA", {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2525 "name": "RNA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2526 "like": "RNA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2527 "ncore": 4,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2528 "symbols": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2529 {"symbol": "A", "name": "Adenine", "colour": "CC0000"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2530 {"symbol": "C", "name": "Cytosine", "colour": "0000CC"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2531 {"symbol": "G", "name": "Guanine", "colour": "FFB300"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2532 {"symbol": "U", "name": "Uracil", "colour": "008000",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2533 "aliases": "T"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2534 {"symbol": "N", "name": "Any base", "equals": "ACGU", "aliases": "X."},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2535 {"symbol": "V", "name": "Not U", "equals": "ACG"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2536 {"symbol": "H", "name": "Not G", "equals": "ACU"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2537 {"symbol": "D", "name": "Not C", "equals": "AGU"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2538 {"symbol": "B", "name": "Not A", "equals": "CGU"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2539 {"symbol": "M", "name": "Amino", "equals": "AC"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2540 {"symbol": "R", "name": "Purine", "equals": "AG"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2541 {"symbol": "W", "name": "Weak", "equals": "AU"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2542 {"symbol": "S", "name": "Strong", "equals": "CG"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2543 {"symbol": "Y", "name": "Pyrimidine", "equals": "CU"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2544 {"symbol": "K", "name": "Keto", "equals": "GU"}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2545 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2546 }),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2547 DNA: new StandardAlphabet(2, "DNA", {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2548 "name": "DNA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2549 "like": "DNA",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2550 "ncore": 4,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2551 "symbols": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2552 {"symbol": "A", "name": "Adenine", "colour": "CC0000", "complement": "T"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2553 {"symbol": "C", "name": "Cytosine", "colour": "0000CC", "complement": "G"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2554 {"symbol": "G", "name": "Guanine", "colour": "FFB300", "complement": "C"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2555 {"symbol": "T", "name": "Thymine", "colour": "008000", "complement": "A",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2556 "aliases": "U"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2557 {"symbol": "N", "name": "Any base", "equals": "ACGT", "aliases": "X."},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2558 {"symbol": "V", "name": "Not T", "equals": "ACG"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2559 {"symbol": "H", "name": "Not G", "equals": "ACT"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2560 {"symbol": "D", "name": "Not C", "equals": "AGT"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2561 {"symbol": "B", "name": "Not A", "equals": "CGT"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2562 {"symbol": "M", "name": "Amino", "equals": "AC"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2563 {"symbol": "R", "name": "Purine", "equals": "AG"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2564 {"symbol": "W", "name": "Weak", "equals": "AT"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2565 {"symbol": "S", "name": "Strong", "equals": "CG"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2566 {"symbol": "Y", "name": "Pyrimidine", "equals": "CT"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2567 {"symbol": "K", "name": "Keto", "equals": "GT"}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2568 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2569 }),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2570 PROTEIN: new StandardAlphabet(4, "PROTEIN", {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2571 "name": "Protein",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2572 "like": "PROTEIN",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2573 "ncore": 20,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2574 "symbols": [
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2575 {"symbol": "A", "name": "Alanine", "colour": "0000CC"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2576 {"symbol": "C", "name": "Cysteine", "colour": "0000CC"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2577 {"symbol": "D", "name": "Aspartic acid", "colour": "FF00FF"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2578 {"symbol": "E", "name": "Glutamic acid", "colour": "FF00FF"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2579 {"symbol": "F", "name": "Phenylalanine", "colour": "0000CC"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2580 {"symbol": "G", "name": "Glycine", "colour": "FFB300"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2581 {"symbol": "H", "name": "Histidine", "colour": "FFCCCC"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2582 {"symbol": "I", "name": "Isoleucine", "colour": "0000CC"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2583 {"symbol": "K", "name": "Lysine", "colour": "CC0000"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2584 {"symbol": "L", "name": "Leucine", "colour": "0000CC"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2585 {"symbol": "M", "name": "Methionine", "colour": "0000CC"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2586 {"symbol": "N", "name": "Asparagine", "colour": "008000"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2587 {"symbol": "P", "name": "Proline", "colour": "FFFF00"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2588 {"symbol": "Q", "name": "Glutamine", "colour": "008000"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2589 {"symbol": "R", "name": "Arginine", "colour": "CC0000"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2590 {"symbol": "S", "name": "Serine", "colour": "008000"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2591 {"symbol": "T", "name": "Threonine", "colour": "008000"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2592 {"symbol": "V", "name": "Valine", "colour": "0000CC"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2593 {"symbol": "W", "name": "Tryptophan", "colour": "0000CC"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2594 {"symbol": "Y", "name": "Tyrosine", "colour": "33E6CC"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2595 {"symbol": "X", "name": "Any amino acid", "equals": "ACDEFGHIKLMNPQRSTVWY", "aliases": "*."},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2596 {"symbol": "B", "name": "Asparagine or Aspartic acid", "equals": "DN"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2597 {"symbol": "Z", "name": "Glutamine or Glutamic acid", "equals": "EQ"},
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2598 {"symbol": "J", "name": "Leucine or Isoleucine", "equals": "IL"}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2599 ]
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2600 })
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2601 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2602
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2603 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2604 // start Symbol object
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2605 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2606 var Symbol = function(alph_index, scale, alphabet) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2607 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2608 //variable prototype
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2609 this.symbol = alphabet.get_symbol(alph_index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2610 this.scale = scale;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2611 this.colour = alphabet.get_colour(alph_index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2612 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2613
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2614 Symbol.prototype.get_symbol = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2615 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2616 return this.symbol;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2617 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2618
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2619 Symbol.prototype.get_scale = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2620 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2621 return this.scale;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2622 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2623
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2624 Symbol.prototype.get_colour = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2625 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2626 return this.colour;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2627 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2628
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2629 Symbol.prototype.toString = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2630 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2631 return this.symbol + " " + (Math.round(this.scale*1000)/10) + "%";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2632 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2633
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2634 function compare_symbol(sym1, sym2) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2635 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2636 if (sym1.get_scale() < sym2.get_scale()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2637 return -1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2638 } else if (sym1.get_scale() > sym2.get_scale()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2639 return 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2640 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2641 return 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2642 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2643 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2644 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2645 // end Symbol object
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2646 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2647
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2648 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2649 // start Pspm object
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2650 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2651 var Pspm = function(matrix, name, ltrim, rtrim, nsites, evalue, pssm, alt) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2652 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2653 var row, col, data, row_sum, delta, evalue_re;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2654 if (typeof name !== "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2655 name = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2656 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2657 this.name = name;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2658 //construct
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2659 if (matrix instanceof Pspm) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2660 // copy constructor
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2661 this.alph_length = matrix.alph_length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2662 this.motif_length = matrix.motif_length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2663 this.name = matrix.name;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2664 this.alt = matrix.alt;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2665 this.nsites = matrix.nsites;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2666 this.evalue = matrix.evalue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2667 this.ltrim = matrix.ltrim;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2668 this.rtrim = matrix.rtrim;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2669 this.pspm = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2670 for (row = 0; row < matrix.motif_length; row++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2671 this.pspm[row] = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2672 for (col = 0; col < matrix.alph_length; col++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2673 this.pspm[row][col] = matrix.pspm[row][col];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2674 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2675 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2676 if (matrix.pssm != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2677 this.pssm = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2678 for (row = 0; row < matrix.motif_length; row++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2679 this.pspm[row] = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2680 for (col = 0; col < matrix.alph_length; col++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2681 this.pssm[row][col] = matrix.pssm[row][col];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2682 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2683 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2684 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2685 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2686 // check parameters
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2687 if (ltrim == null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2688 ltrim = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2689 } else if (typeof ltrim !== "number" || ltrim % 1 !== 0 || ltrim < 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2690 throw new Error("ltrim must be a non-negative integer, got: " + ltrim);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2691 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2692 if (rtrim == null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2693 rtrim = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2694 } else if (typeof rtrim !== "number" || rtrim % 1 !== 0 || rtrim < 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2695 throw new Error("rtrim must be a non-negative integer, got: " + rtrim);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2696 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2697 if (nsites != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2698 if (typeof nsites !== "number" || nsites < 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2699 throw new Error("nsites must be a positive number, got: " + nsites);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2700 } else if (nsites == 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2701 nsites = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2702 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2703 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2704 if (evalue != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2705 if (typeof evalue === "number") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2706 if (evalue < 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2707 throw new Error("evalue must be a non-negative number, got: " + evalue);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2708 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2709 } else if (typeof evalue === "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2710 evalue_re = /^((?:[+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|inf)$/;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2711 if (!evalue_re.test(evalue)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2712 throw new Error("evalue must be a non-negative number, got: " + evalue);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2713 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2714 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2715 throw new Error("evalue must be a non-negative number, got: " + evalue);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2716 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2717 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2718 // set properties
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2719 this.name = name;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2720 this.alt = alt;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2721 this.nsites = nsites;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2722 this.evalue = evalue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2723 this.ltrim = ltrim;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2724 this.rtrim = rtrim;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2725 if (typeof matrix === "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2726 // string constructor
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2727 data = parse_pspm_string(matrix);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2728 this.alph_length = data["alph_length"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2729 this.motif_length = data["motif_length"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2730 this.pspm = data["pspm"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2731 if (this.evalue == null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2732 if (data["evalue"] != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2733 this.evalue = data["evalue"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2734 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2735 this.evalue = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2736 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2737 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2738 if (this.nsites == null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2739 if (typeof data["nsites"] === "number") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2740 this.nsites = data["nsites"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2741 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2742 this.nsites = 20;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2743 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2744 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2745 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2746 // assume pspm is a nested array
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2747 this.motif_length = matrix.length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2748 this.alph_length = (matrix.length > 0 ? matrix[0].length : 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2749 if (this.nsites == null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2750 this.nsites = 20;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2751 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2752 if (this.evalue == null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2753 this.evalue = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2754 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2755 this.pspm = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2756 // copy pspm and check
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2757 for (row = 0; row < this.motif_length; row++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2758 if (this.alph_length != matrix[row].length) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2759 throw new Error("COLUMN_MISMATCH");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2760 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2761 this.pspm[row] = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2762 row_sum = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2763 for (col = 0; col < this.alph_length; col++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2764 this.pspm[row][col] = matrix[row][col];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2765 row_sum += this.pspm[row][col];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2766 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2767 delta = 0.1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2768 if (isNaN(row_sum) || (row_sum > 1 && (row_sum - 1) > delta) ||
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2769 (row_sum < 1 && (1 - row_sum) > delta)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2770 throw new Error("INVALID_SUM");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2771 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2772 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2773 // copy pssm
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2774 if (pssm != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2775 this.pssm = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2776 for (row = 0; row < this.motif_length; row++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2777 this.pssm[row] = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2778 for (col = 0; col < this.alph_length; col++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2779 this.pssm[row][col] = pssm[row][col];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2780 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2781 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2782 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2783 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2784 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2785 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2786
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2787 Pspm.prototype.copy = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2788 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2789 return new Pspm(this);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2790 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2791
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2792 Pspm.prototype.reverse = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2793 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2794 var x, y, temp, temp_trim;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2795 //reverse
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2796 x = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2797 y = this.motif_length-1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2798 while (x < y) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2799 temp = this.pspm[x];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2800 this.pspm[x] = this.pspm[y];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2801 this.pspm[y] = temp;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2802 x++;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2803 y--;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2804 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2805 // reverse pssm (if defined)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2806 if (typeof this.pssm !== "undefined") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2807 //reverse
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2808 x = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2809 y = this.motif_length-1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2810 while (x < y) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2811 temp = this.pssm[x];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2812 this.pspm[x] = this.pssm[y];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2813 this.pssm[y] = temp;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2814 x++;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2815 y--;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2816 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2817 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2818 //swap triming
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2819 temp_trim = this.ltrim;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2820 this.ltrim = this.rtrim;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2821 this.rtrim = temp_trim;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2822 return this; //allow function chaining...
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2823 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2824
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2825 Pspm.prototype.reverse_complement = function(alphabet) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2826 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2827 var x, y, temp, i, row, c, temp_trim;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2828 if (this.alph_length != alphabet.get_size_core()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2829 throw new Error("The alphabet size does not match the size of the pspm.");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2830 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2831 if (!alphabet.has_complement()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2832 throw new Error("The specified alphabet can not be complemented.");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2833 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2834 // reverse motif
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2835 this.reverse();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2836 //complement
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2837 for (x = 0; x < this.motif_length; x++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2838 row = this.pspm[x];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2839 for (i = 0; i < row.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2840 c = alphabet.get_complement(i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2841 if (c < i) continue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2842 temp = row[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2843 row[i] = row[c];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2844 row[c] = temp;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2845 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2846 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2847 // complement pssm (if defined)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2848 if (typeof this.pssm !== "undefined") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2849 //complement
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2850 for (x = 0; x < this.motif_length; x++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2851 row = this.pssm[x];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2852 for (i = 0; i < row.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2853 c = alphabet.get_complement(i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2854 if (c < i) continue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2855 temp = row[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2856 row[i] = row[c];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2857 row[c] = temp;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2858 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2859 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2860 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2861 return this; //allow function chaining...
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2862 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2863
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2864 Pspm.prototype.get_stack = function(position, alphabet, ssc) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2865 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2866 var row, stack_ic, alphabet_ic, stack, i, sym;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2867 if (this.alph_length != alphabet.get_size_core()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2868 throw new Error("The alphabet size does not match the size of the pspm.");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2869 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2870 row = this.pspm[position];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2871 stack_ic = this.get_stack_ic(position, alphabet);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2872 if (ssc) stack_ic -= this.get_error(alphabet);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2873 alphabet_ic = alphabet.get_ic();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2874 stack = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2875 for (i = 0; i < this.alph_length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2876 sym = new Symbol(i, row[i]*stack_ic/alphabet_ic, alphabet);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2877 if (sym.get_scale() <= 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2878 continue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2879 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2880 stack.push(sym);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2881 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2882 stack.sort(compare_symbol);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2883 return stack;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2884 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2885
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2886 Pspm.prototype.get_stack_ic = function(position, alphabet) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2887 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2888 var row, H, i;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2889 if (this.alph_length != alphabet.get_size_core()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2890 throw new Error("The alphabet size does not match the size fo the pspm.");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2891 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2892 row = this.pspm[position];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2893 H = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2894 for (i = 0; i < this.alph_length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2895 if (row[i] === 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2896 continue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2897 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2898 H -= (row[i] * (Math.log(row[i]) / Math.LN2));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2899 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2900 return alphabet.get_ic() - H;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2901 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2902
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2903 Pspm.prototype.get_error = function(alphabet) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2904 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2905 if (this.nsites === 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2906 return 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2907 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2908 return (alphabet.get_size_core()-1) / (2 * Math.LN2 * this.nsites);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2909 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2910
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2911 Pspm.prototype.get_motif_length = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2912 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2913 return this.motif_length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2914 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2915
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2916 Pspm.prototype.get_alph_length = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2917 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2918 return this.alph_length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2919 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2920
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2921 Pspm.prototype.get_left_trim = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2922 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2923 return this.ltrim;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2924 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2925
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2926 Pspm.prototype.get_right_trim = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2927 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2928 return this.rtrim;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2929 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2930
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2931 Pspm.prototype.as_best_match = function(alphabet) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2932 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2933 var match, odds, best_odds, best_index;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2934 var i, j;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2935 match = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2936 for (i = 0; i < this.motif_length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2937 best_index = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2938 best_odds = this.pspm[i][0] / alphabet.get_bg_freq(0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2939 for (j = 1; j < this.alph_length; j++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2940 odds = this.pspm[i][j] / alphabet.get_bg_freq(j);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2941 if (odds > best_odds) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2942 best_odds = odds;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2943 best_index = j;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2944 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2945 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2946 match += alphabet.get_symbol(best_index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2947 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2948 return match;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2949 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2950
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2951 Pspm.prototype.as_count_matrix = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2952 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2953 var count, count_text, text;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2954 var i, j;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2955 text = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2956 for (i = 0; i < this.motif_length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2957 if (i !== 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2958 text += "\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2959 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2960 for (j = 0; j < this.alph_length; j++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2961 if (j !== 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2962 text += " ";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2963 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2964 count = Math.round(this.nsites * this.pspm[i][j]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2965 count_text = "" + count;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2966 // pad up to length of 4
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2967 if (count_text.length < 4) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2968 text += (new Array(5 - count_text.length)).join(" ") + count_text;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2969 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2970 text += count_text;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2971 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2972 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2973 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2974 return text;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2975 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2976
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2977 Pspm.prototype.as_probability_matrix = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2978 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2979 var text;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2980 var i, j;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2981 text = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2982 for (i = 0; i < this.motif_length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2983 if (i !== 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2984 text += "\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2985 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2986 for (j = 0; j < this.alph_length; j++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2987 if (j !== 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2988 text += " ";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2989 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2990 text += this.pspm[i][j].toFixed(6);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2991 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2992 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2993 return text;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2994 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2995
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2996 Pspm.prototype.as_score_matrix = function(alphabet, pseudo) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2997 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2998 var me, score, out, row, col, score_text;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2999 me = this;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3000 if (typeof this.pssm === "undefined") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3001 if (!(typeof alphabet === "object" && alphabet != null && alphabet instanceof Alphabet)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3002 throw new Error("The alphabet is required to generate the pssm.");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3003 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3004 if (typeof pseudo === "undefined") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3005 pseudo = 0.01;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3006 } else if (typeof pseudo !== "number" || pseudo < 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3007 throw new Error("Expected positive number for pseudocount");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3008 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3009 score = function(row, col) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3010 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3011 var p, bg, p2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3012 p = me.pspm[row][col];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3013 bg = alphabet.get_bg_freq(col);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3014 p2 = (p * me.nsites + bg * pseudo) / (me.nsites + pseudo);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3015 return (p2 > 0 ? Math.round((Math.log(p2 / bg) / Math.LN2) * 100) : -10000);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3016 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3017 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3018 score = function(row, col) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3019 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3020 return me.pssm[row][col];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3021 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3022 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3023 out = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3024 for (row = 0; row < this.motif_length; row++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3025 for (col = 0; col < this.alph_length; col++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3026 if (col !== 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3027 out += " ";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3028 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3029 score_text = "" + score(row, col);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3030 // pad out to 6 characters
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3031 if (score_text.length < 6) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3032 out += (new Array(7 - score_text.length)).join(" ") + score_text;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3033 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3034 out += score_text;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3035 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3036 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3037 out += "\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3038 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3039 return out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3040 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3041
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3042 Pspm.prototype.as_pspm = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3043 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3044 return "letter-probability matrix: alength= " + this.alph_length +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3045 " w= " + this.motif_length + " nsites= " + this.nsites +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3046 " E= " + (typeof this.evalue === "number" ?
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3047 this.evalue.toExponential() : this.evalue) + "\n" +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3048 this.as_probability_matrix();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3049 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3050
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3051 Pspm.prototype.as_pssm = function(alphabet, pseudo) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3052 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3053 return "log-odds matrix: alength= " + this.alph_length +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3054 " w= " + this.motif_length +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3055 " E= " + (typeof this.evalue == "number" ?
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3056 this.evalue.toExponential() : this.evalue) + "\n" +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3057 this.as_score_matrix(alphabet, pseudo);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3058 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3059
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3060 Pspm.prototype.as_meme = function(options) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3061 var with_header, with_pspm, with_pssm, version, alphabet, bg_source, pseudocount, strands;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3062 var out, alen, i;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3063 // get the options
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3064 if (typeof options !== "object" || options === null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3065 options = {};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3066 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3067 with_header = (typeof options["with_header"] === "boolean" ? options["with_header"] : false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3068 with_pspm = (typeof options["with_pspm"] === "boolean" ? options["with_pspm"] : false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3069 with_pssm = (typeof options["with_pssm"] === "boolean" ? options["with_pssm"] : false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3070 if (!with_pspm && !with_pssm) with_pspm = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3071 if (with_header) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3072 if (typeof options["version"] === "string" && /^\d+(?:\.\d+){0,2}$/.test(options["version"])) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3073 version = options["version"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3074 } else if (typeof options["version"] === "number") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3075 version = options["version"].toFixed(0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3076 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3077 version = "4";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3078 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3079 if (typeof options["strands"] === "number" && options["strands"] === 1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3080 strands = 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3081 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3082 strands = 2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3083 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3084 if (typeof options["bg_source"] === "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3085 bg_source = options["bg_source"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3086 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3087 bg_source = "unknown source";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3088 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3089 if (typeof options["alphabet"] === "object" && options["alphabet"] != null
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3090 && options["alphabet"] instanceof Alphabet) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3091 alphabet = options["alphabet"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3092 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3093 throw new Error("The alphabet is required to generate the header.");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3094 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3095 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3096 // now create the output
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3097 out = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3098 if (with_header) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3099 out = "MEME version " + version + "\n\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3100 out += alphabet.as_meme() + "\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3101 if (alphabet.has_complement()) { // assume DNA has both strands unless otherwise specified
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3102 out += "strands: " + (strands === 1 ? "+" : "+ -") + "\n\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3103 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3104 out += "Background letter frequencies (from " + bg_source + "):\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3105 alen = alphabet.get_size_core();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3106 for (i = 0; i < alen; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3107 if (i !== 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3108 if (i % 9 === 0) { // maximum of nine entries per line
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3109 out += "\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3110 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3111 out += " ";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3112 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3113 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3114 out += alphabet.get_symbol(i) + " " + alphabet.get_bg_freq(i).toFixed(3);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3115 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3116 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3117 out += "\n\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3118 out += "MOTIF " + this.name + (this.alt == null ? "" : " " + this.alt);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3119 if (with_pssm) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3120 out += "\n\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3121 out += this.as_pssm(options["alphabet"], options["pseudocount"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3122 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3123 if (with_pspm) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3124 out += "\n\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3125 out += this.as_pspm();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3126 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3127 return out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3128 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3129
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3130 Pspm.prototype.toString = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3131 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3132 var str, i, row;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3133 str = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3134 for (i = 0; i < this.pspm.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3135 row = this.pspm[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3136 str += row.join("\t") + "\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3137 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3138 return str;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3139 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3140
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3141 function parse_pspm_properties(str) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3142 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3143 var parts, i, eqpos, before, after, properties, prop, num, num_re;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3144 num_re = /^((?:[+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|inf)$/;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3145 parts = trim(str).split(/\s+/);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3146 // split up words containing =
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3147 for (i = 0; i < parts.length;) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3148 eqpos = parts[i].indexOf("=");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3149 if (eqpos != -1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3150 before = parts[i].substr(0, eqpos);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3151 after = parts[i].substr(eqpos+1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3152 if (before.length > 0 && after.length > 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3153 parts.splice(i, 1, before, "=", after);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3154 i += 3;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3155 } else if (before.length > 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3156 parts.splice(i, 1, before, "=");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3157 i += 2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3158 } else if (after.length > 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3159 parts.splice(i, 1, "=", after);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3160 i += 2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3161 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3162 parts.splice(i, 1, "=");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3163 i++;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3164 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3165 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3166 i++;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3167 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3168 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3169 properties = {};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3170 for (i = 0; i < parts.length; i += 3) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3171 if (parts.length - i < 3) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3172 throw new Error("Expected PSPM property was incomplete. "+
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3173 "Remaing parts are: " + parts.slice(i).join(" "));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3174 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3175 if (parts[i+1] !== "=") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3176 throw new Error("Expected '=' in PSPM property between key and " +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3177 "value but got " + parts[i+1]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3178 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3179 prop = parts[i].toLowerCase();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3180 num = parts[i+2];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3181 if (!num_re.test(num)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3182 throw new Error("Expected numeric value for PSPM property '" +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3183 prop + "' but got '" + num + "'");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3184 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3185 properties[prop] = num;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3186 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3187 return properties;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3188 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3189
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3190 function parse_pspm_string(pspm_string) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3191 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3192 var header_re, lines, first_line, line_num, col_num, alph_length,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3193 motif_length, nsites, evalue, pspm, i, line, match, props, parts,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3194 j, prob;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3195 header_re = /^letter-probability\s+matrix:(.*)$/i;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3196 lines = pspm_string.split(/\n/);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3197 first_line = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3198 line_num = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3199 col_num = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3200 alph_length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3201 motif_length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3202 nsites;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3203 evalue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3204 pspm = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3205 for (i = 0; i < lines.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3206 line = trim(lines[i]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3207 if (line.length === 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3208 continue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3209 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3210 // check the first line for a header though allow matrices without it
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3211 if (first_line) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3212 first_line = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3213 match = header_re.exec(line);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3214 if (match !== null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3215 props = parse_pspm_properties(match[1]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3216 if (props.hasOwnProperty("alength")) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3217 alph_length = parseFloat(props["alength"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3218 if (alph_length != 4 && alph_length != 20) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3219 throw new Error("PSPM property alength should be 4 or 20" +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3220 " but got " + alph_length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3221 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3222 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3223 if (props.hasOwnProperty("w")) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3224 motif_length = parseFloat(props["w"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3225 if (motif_length % 1 !== 0 || motif_length < 1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3226 throw new Error("PSPM property w should be an integer larger " +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3227 "than zero but got " + motif_length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3228 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3229 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3230 if (props.hasOwnProperty("nsites")) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3231 nsites = parseFloat(props["nsites"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3232 if (nsites <= 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3233 throw new Error("PSPM property nsites should be larger than " +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3234 "zero but got " + nsites);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3235 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3236 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3237 if (props.hasOwnProperty("e")) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3238 evalue = props["e"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3239 if (evalue < 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3240 throw new Error("PSPM property evalue should be " +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3241 "non-negative but got " + evalue);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3242 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3243 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3244 continue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3245 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3246 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3247 pspm[line_num] = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3248 col_num = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3249 parts = line.split(/\s+/);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3250 for (j = 0; j < parts.length; j++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3251 prob = parseFloat(parts[j]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3252 if (prob != parts[j] || prob < 0 || prob > 1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3253 throw new Error("Expected probability but got '" + parts[j] + "'");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3254 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3255 pspm[line_num][col_num] = prob;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3256 col_num++;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3257 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3258 line_num++;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3259 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3260 if (typeof motif_length === "number") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3261 if (pspm.length != motif_length) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3262 throw new Error("Expected PSPM to have a motif length of " +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3263 motif_length + " but it was actually " + pspm.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3264 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3265 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3266 motif_length = pspm.length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3267 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3268 if (typeof alph_length !== "number") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3269 alph_length = pspm[0].length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3270 if (alph_length != 4 && alph_length != 20) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3271 throw new Error("Expected length of first row in the PSPM to be " +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3272 "either 4 or 20 but got " + alph_length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3273 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3274 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3275 for (i = 0; i < pspm.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3276 if (pspm[i].length != alph_length) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3277 throw new Error("Expected PSPM row " + i + " to have a length of " +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3278 alph_length + " but the length was " + pspm[i].length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3279 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3280 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3281 return {"pspm": pspm, "motif_length": motif_length,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3282 "alph_length": alph_length, "nsites": nsites, "evalue": evalue};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3283 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3284 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3285 // end Pspm object
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3286 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3287
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3288 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3289 // start Logo object
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3290 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3291
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3292 var Logo = function(alphabet, options) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3293 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3294 this.alphabet = alphabet;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3295 this.fine_text = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3296 this.x_axis = 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3297 this.y_axis = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3298 this.xlate_nsyms = 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3299 this.xlate_start = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3300 this.xlate_end = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3301 this.pspm_list = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3302 this.pspm_column = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3303 this.rows = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3304 this.columns = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3305 if (typeof options === "string") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3306 // the old method signature had fine_text here so we support that
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3307 this.fine_text = options;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3308 } else if (typeof options === "object" && options != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3309 this.fine_text = (typeof options.fine_text === "string" ? options.fine_text : "");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3310 this.x_axis = (typeof options.x_axis === "boolean" ? (options.x_axis ? 1 : 0) : 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3311 if (options.x_axis_hidden != null && options.x_axis_hidden) this.x_axis = -1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3312 this.y_axis = (typeof options.y_axis === "boolean" ? options.y_axis : true);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3313 this.xlate_nsyms = (typeof options.xlate_nsyms === "number" ? options.xlate_nsyms : this.xlate_nsyms);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3314 this.xlate_start = (typeof options.xlate_start === "number" ? options.xlate_start : this.xlate_start);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3315 this.xlate_end = (typeof options.xlate_end === "number" ? options.xlate_end : this.xlate_end);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3316 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3317 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3318
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3319 Logo.prototype.add_pspm = function(pspm, column) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3320 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3321 var col;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3322 if (typeof column === "undefined") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3323 column = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3324 } else if (column < 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3325 throw new Error("Column index out of bounds.");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3326 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3327 this.pspm_list[this.rows] = pspm;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3328 this.pspm_column[this.rows] = column;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3329 this.rows++;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3330 col = column + pspm.get_motif_length();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3331 if (col > this.columns) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3332 this.columns = col;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3333 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3334 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3335
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3336 Logo.prototype.get_columns = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3337 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3338 return this.columns;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3339 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3340
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3341 Logo.prototype.get_xlate_nsyms = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3342 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3343 return this.xlate_nsyms;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3344 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3345
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3346 Logo.prototype.get_xlate_start = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3347 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3348 return (this.xlate_start != null ? this.xlate_start : 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3349 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3350
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3351 Logo.prototype.get_xlate_end = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3352 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3353 return (this.xlate_end != null ? this.xlate_end : this.columns * this.xlate_nsyms);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3354 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3355
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3356 Logo.prototype.get_xlate_columns = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3357 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3358 return this.get_xlate_end() - this.get_xlate_start();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3359 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3360
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3361 Logo.prototype.get_rows = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3362 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3363 return this.rows;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3364 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3365
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3366 Logo.prototype.get_pspm = function(row_index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3367 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3368 if (row_index < 0 || row_index >= this.rows) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3369 throw new Error("INDEX_OUT_OF_BOUNDS");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3370 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3371 return this.pspm_list[row_index];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3372 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3373
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3374 Logo.prototype.get_offset = function(row_index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3375 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3376 if (row_index < 0 || row_index >= this.rows) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3377 throw new Error("INDEX_OUT_OF_BOUNDS");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3378 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3379 return this.pspm_column[row_index];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3380 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3381
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3382 Logo.prototype._as_eps_data = function(ssc, errbars) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3383 var i, j, pos, stack_pos, pspm, stack, sym, out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3384 out = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3385 for (i = 0; i < this.rows; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3386 out += "\nStartLine\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3387 // Indent
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3388 for (j = 0; j < this.pspm_column[i]; j++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3389 out += "() startstack\nendstack\n\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3390 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3391 pspm = this.pspm_list[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3392 if (pspm.get_left_trim() > 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3393 out += "MuteColour\nDrawTrimEdge\n" + pspm.get_left_trim() + " DrawTrimBg\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3394 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3395 for (pos = 0; pos < pspm.get_motif_length(); pos++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3396 if (pos != 0 && pos == pspm.get_left_trim()) { // enable full colour
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3397 out += "DrawTrimEdge\nRestoreColour\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3398 } else if (pos == (pspm.get_motif_length() - pspm.get_right_trim())) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3399 out += "MuteColour\n" + pspm.get_right_trim() + " DrawTrimBg\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3400 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3401 out += "(" + (pos + 1) + ") startstack\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3402 stack = pspm.get_stack(pos, this.alphabet, ssc);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3403 for (stack_pos = 0; stack_pos < stack.length; stack_pos++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3404 sym = stack[stack_pos];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3405 out += " " + (sym.get_scale() * this.alphabet.get_ic()) + " (" + sym.get_symbol() + ") numchar\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3406 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3407 if (errbars) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3408 out += " " + pspm.get_error(this.alphabet) + " Ibeam\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3409 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3410 out += "endstack\n\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3411 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3412 if (pspm.get_right_trim() > 0 || pspm.get_left_trim() == pspm.get_motif_length()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3413 out += "RestoreColour\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3414 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3415 out += "EndLine\n";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3416 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3417 return out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3418 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3419
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3420 Logo.prototype.as_eps = function(options) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3421 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3422 if (this.xlate_nsyms != 1) throw new Error("Unsupported setting xlate_nsyms for EPS");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3423 if (this.xlate_start != null) throw new Error("Unsupported setting xlate_start for EPS");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3424 if (this.xlate_end != null) throw new Error("Unsupported setting xlate_end for EPS");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3425
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3426 var LOGOHEIGHT = 7.5; // default height of line in cm
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3427 var cm2pts, height, width, now, ssc, errbars;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3428 if (typeof options === "undefined") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3429 options = {};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3430 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3431 cm2pts = 72 / 2.54;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3432 if (typeof options.logo_height == "number") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3433 height = options.logo_height;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3434 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3435 height = LOGOHEIGHT * this.rows;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3436 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3437 if (typeof options.logo_width == "number") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3438 width = options.logo_width;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3439 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3440 width = this.columns + 2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3441 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3442 now = new Date();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3443 ssc = (typeof options.ssc == "boolean" ? options.ssc : false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3444 errbars = (typeof options.show_error_bar == "boolean" ? options.show_error_bar : ssc);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3445 var values = {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3446 "LOGOHEIGHT": height,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3447 "LOGOWIDTH": width,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3448 "BOUNDINGHEIGHT": Math.round(height * cm2pts),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3449 "BOUNDINGWIDTH": Math.round(width * cm2pts),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3450 "LOGOLINEHEIGHT": (height / this.rows),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3451 "CHARSPERLINE": this.columns,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3452 "BARBITS": this.alphabet.get_ic(),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3453 "LOGOTYPE": (this.alphabet.has_complement() ? "NA" : "AA"),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3454 "CREATIONDATE": now.getDate() + "." + (now.getMonth() + 1) + "." + now.getFullYear() + " " + now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds(),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3455 "ERRORBARFRACTION": (typeof options.error_bar_fraction == "number" ? options.error_bar_fraction : 1.0),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3456 "TICBITS": (typeof options.ticbits == "number" ? options.ticbits : 1.0),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3457 "TITLE": (typeof options.title == "string" ? options.title : ""),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3458 "FINEPRINT": (typeof options.fineprint == "string" ? options.fineprint : this.fine_text),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3459 "XAXISLABEL": (typeof options.xaxislabel == "string" ? options.xaxislabel : ""),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3460 "YAXISLABEL": (typeof options.yaxislabel == "string" ? options.yaxislabel : "bits"),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3461 "SSC": ssc,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3462 "YAXIS": (typeof options.show_y_axis == "boolean" ? options.show_y_axis : this.y_axis),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3463 "SHOWENDS": (typeof options.show_ends == "boolean" ? options.show_ends : false),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3464 "ERRBAR": errbars,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3465 "OUTLINE": (typeof options.show_outline == "boolean" ? options.show_outline : false),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3466 "NUMBERING": (typeof options.show_numbering == "boolean" ? options.show_numbering : this.x_axis != 0),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3467 "SHOWINGBOX": (typeof options.show_box == "boolean" ? options.show_box : false),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3468 "CREATOR": (typeof options.creator == "string" ? options.creator : "motif_logo.js"),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3469 "FONTSIZE": (typeof options.label_font_size == "number" ? options.label_font_size : 12),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3470 "TITLEFONTSIZE": (typeof options.title_font_size == "number" ? options.title_font_size : 12),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3471 "SMALLFONTSIZE": (typeof options.small_font_size == "number" ? options.small_font_size : 6),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3472 "TOPMARGIN" : (typeof options.top_margin == "number" ? options.top_margin : 0.9),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3473 "BOTTOMMARGIN": (typeof options.bottom_margin == "number" ? options.bottom_margin : 0.9),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3474 "COLORDICT": this.alphabet._as_eps_dict(),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3475 "DATA": this._as_eps_data(ssc, errbars)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3476 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3477 // now this requires that the script containing the template has been imported!
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3478 return motif_logo_template(values);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3479 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3480
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3481 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3482 // end Logo object
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3483 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3484
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3485 // calculate the exact size (in pixels) of an object drawn on the
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3486 // canvas assuming that the background of the canvas is transparent.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3487 function canvas_bounds(ctx, cwidth, cheight) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3488 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3489 var data, r, c, top_line, bottom_line, left_line, right_line,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3490 txt_width, txt_height;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3491
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3492 // extract the image data
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3493 data = ctx.getImageData(0, 0, cwidth, cheight).data;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3494
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3495 // set initial values
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3496 top_line = -1; bottom_line = -1; left_line = -1; right_line = -1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3497 txt_width = 0; txt_height = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3498
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3499 // Find the top-most line with a non-transparent pixel
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3500 for (r = 0; r < cheight; r++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3501 for (c = 0; c < cwidth; c++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3502 if (data[r * cwidth * 4 + c * 4 + 3]) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3503 top_line = r;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3504 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3505 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3506 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3507 if (top_line != -1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3508 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3509 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3510 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3511
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3512 // Only bother looking if we found at least one set pixel...
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3513 if (top_line != -1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3514
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3515 //find the last line with a non-transparent pixel
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3516 for (r = cheight-1; r >= top_line; r--) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3517 for(c = 0; c < cwidth; c++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3518 if(data[r * cwidth * 4 + c * 4 + 3]) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3519 bottom_line = r;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3520 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3521 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3522 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3523 if (bottom_line != -1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3524 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3525 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3526 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3527 // calculate height
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3528 txt_height = bottom_line - top_line + 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3529
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3530 // Find the left-most line with a non-transparent pixel
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3531 for (c = 0; c < cwidth; c++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3532 for (r = top_line; r <= bottom_line; r++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3533 if (data[r * cwidth * 4 + c * 4 + 3]) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3534 left_line = c;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3535 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3536 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3537 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3538 if (left_line != -1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3539 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3540 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3541 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3542
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3543 //find the right most line with a non-transparent pixel
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3544 for (c = cwidth-1; c >= left_line; c--) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3545 for(r = top_line; r <= bottom_line; r++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3546 if(data[r * cwidth * 4 + c * 4 + 3]) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3547 right_line = c;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3548 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3549 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3550 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3551 if (right_line != -1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3552 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3553 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3554 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3555 txt_width = right_line - left_line + 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3556 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3557
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3558 //return the bounds
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3559 return {bound_top: top_line, bound_bottom: bottom_line,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3560 bound_left: left_line, bound_right: right_line, width: txt_width,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3561 height: txt_height};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3562 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3563
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3564 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3565 // start RasterizedAlphabet
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3566 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3567
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3568 // Rasterize Alphabet
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3569 // 1) Measure width of text at default font for all symbols in alphabet
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3570 // 2) sort in width ascending
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3571 // 3) Drop the top and bottom 10% (designed to ignore outliers like 'W' and 'I')
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3572 // 4) Calculate the average as the maximum scaling factor (designed to stop I becoming a rectangular blob).
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3573 // 5) Assume scale of zero would result in width of zero, interpolate scale required to make perfect width font
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3574 // 6) Draw text onto temp canvas at calculated scale
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3575 // 7) Find bounds of drawn text
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3576 // 8) Paint on to another canvas at the desired height (but only scaling width to fit if larger).
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3577 var RasterizedAlphabet = function(alphabet, logo_scale, font, width) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3578 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3579 var default_size, safety_pad, canvas, ctx, middle, baseline, widths, sizes,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3580 i, sym, size, tenpercent, avg_width, scale,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3581 target_width, target_height;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3582 //variable prototypes
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3583 this.alphabet = alphabet;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3584 this.scale = logo_scale;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3585 this.sym_cache = {};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3586 this.stack_num_cache = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3587 this.scale_num_cache = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3588 // size of canvas
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3589 default_size = 60; // size of measuring canvas
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3590 safety_pad = 20; // pixels to pad around so we don't miss the edges
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3591 // create a canvas to do our measuring
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3592 canvas = document.createElement("canvas");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3593 if (!canvas.getContext) throw new Error("No canvas support");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3594 canvas.width = default_size + 2 * safety_pad;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3595 canvas.height = default_size + 2 * safety_pad;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3596 middle = Math.round(canvas.width / 2);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3597 baseline = Math.round(canvas.height - safety_pad);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3598 ctx = canvas.getContext('2d');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3599 if (!supports_text(ctx)) throw new Error("Canvas does not support text");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3600 ctx.font = font;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3601 ctx.textAlign = "center";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3602 ctx.translate(middle, baseline);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3603 // list of widths
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3604 widths = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3605 sizes = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3606 //now measure each letter in the alphabet
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3607 for (i = 0; i < alphabet.get_size_core(); ++i) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3608 // reset the canvas
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3609 ctx.clearRect(0, 0, canvas.width, canvas.height);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3610 ctx.fillStyle = alphabet.get_colour(i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3611 // draw the test text
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3612 ctx.fillText(alphabet.get_symbol(i), 0, 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3613 //measure
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3614 size = canvas_bounds(ctx, canvas.width, canvas.height);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3615 if (size.width === 0) throw new Error("Invisible symbol!");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3616 widths.push(size.width);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3617 sizes[i] = size;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3618 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3619 //sort the widths
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3620 widths.sort(function(a,b) {return a - b;});
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3621 //drop 10% of the items off each end
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3622 tenpercent = Math.floor(widths.length / 10);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3623 for (i = 0; i < tenpercent; ++i) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3624 widths.pop();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3625 widths.shift();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3626 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3627 //calculate average width
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3628 avg_width = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3629 for (i = 0; i < widths.length; ++i) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3630 avg_width += widths[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3631 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3632 avg_width /= widths.length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3633 // calculate the target width
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3634 target_width = width * this.scale * 2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3635 // calculate scales
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3636 for (i = 0; i < alphabet.get_size_core(); ++i) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3637 sym = alphabet.get_symbol(i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3638 size = sizes[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3639 // calculate scale
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3640 scale = target_width / Math.max(avg_width, size.width);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3641 // estimate scaled height
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3642 target_height = size.height * scale;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3643 // create an appropriately sized canvas
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3644 canvas = document.createElement("canvas");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3645 canvas.width = target_width;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3646 canvas.height = target_height + safety_pad * 2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3647 // calculate the middle
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3648 middle = Math.round(canvas.width / 2);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3649 // calculate the baseline
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3650 baseline = Math.round(canvas.height - safety_pad);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3651 // get the context and prepare to draw the rasterized text
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3652 ctx = canvas.getContext('2d');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3653 ctx.font = font;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3654 ctx.fillStyle = alphabet.get_colour(i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3655 ctx.textAlign = "center";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3656 ctx.translate(middle, baseline);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3657 ctx.save();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3658 ctx.scale(scale, scale);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3659 // draw the text
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3660 ctx.fillText(sym, 0, 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3661 ctx.restore();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3662 this.sym_cache[sym] = {"image": canvas, "size": canvas_bounds(ctx, canvas.width, canvas.height)};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3663 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3664 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3665
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3666 RasterizedAlphabet.prototype.get_alphabet = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3667 return this.alphabet;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3668 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3669
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3670 RasterizedAlphabet.prototype.get_scale = function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3671 return this.scale;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3672 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3673
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3674 RasterizedAlphabet.prototype.draw_stack_sym = function(ctx, letter, dx, dy, dWidth, dHeight) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3675 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3676 var entry, image, size;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3677 entry = this.sym_cache[letter];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3678 image = entry.image;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3679 size = entry.size;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3680 ctx.drawImage(image, 0, size.bound_top -1, image.width, size.height+1, dx, dy, dWidth, dHeight);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3681 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3682
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3683 RasterizedAlphabet.prototype.draw_stack_num = function(ctx, font, stack_width, index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3684 var image, image_ctx, text_length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3685 if (index >= this.stack_num_cache.length) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3686 image = document.createElement("canvas");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3687 // measure the text
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3688 image_ctx = image.getContext('2d');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3689 image_ctx.save();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3690 image_ctx.font = font;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3691 text_length = image_ctx.measureText("" + (index + 1)).width;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3692 image_ctx.restore();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3693 // resize the canvas to fit
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3694 image.width = Math.ceil(stack_width);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3695 image.height = Math.ceil(text_length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3696 // draw the text
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3697 image_ctx = image.getContext('2d');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3698 image_ctx.translate(Math.round(stack_width / 2), 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3699 image_ctx.font = font;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3700 image_ctx.textBaseline = "middle";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3701 image_ctx.textAlign = "right";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3702 image_ctx.rotate(-(Math.PI / 2));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3703 image_ctx.fillText("" + (index + 1), 0, 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3704 this.stack_num_cache[index] = image;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3705 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3706 image = this.stack_num_cache[index];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3707 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3708 ctx.drawImage(image, 0, 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3709 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3710
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3711 RasterizedAlphabet.prototype.draw_scale_num = function(ctx, font, num) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3712 var image, image_ctx, text_size, m_length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3713 if (num >= this.scale_num_cache.length) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3714 image = document.createElement("canvas");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3715 // measure the text
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3716 image_ctx = image.getContext('2d');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3717 image_ctx.font = font;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3718 text_size = image_ctx.measureText("" + num);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3719 if (text_size.actualBoundingBoxAscent && text_size.actualBoundingBoxDesent) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3720 // resize the canvas to fit
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3721 image.width = Math.ceil(text_size.width);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3722 image.height = Math.ceil(text_size.actualBoundingBoxAscent + text_size.actualBoundingBoxDesent);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3723 // draw the text
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3724 image_ctx = image.getContext('2d');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3725 image_ctx.font = font;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3726 image_ctx.textAlign = "right";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3727 image_ctx.fillText("" + num, image.width, text_size.actualBoundingBoxAscent);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3728 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3729 // measure width of 'm' to approximate height, we double it later anyway
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3730 m_length = image_ctx.measureText("m").width;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3731 // resize the canvas to fit
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3732 image.width = Math.ceil(text_size.width);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3733 image.height = Math.ceil(2 * m_length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3734 // draw the text
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3735 image_ctx = image.getContext('2d');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3736 image_ctx.font = font;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3737 image_ctx.textAlign = "right";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3738 image_ctx.textBaseline = "middle";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3739 image_ctx.fillText("" + num, image.width, m_length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3740 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3741 this.scale_num_cache[num] = image;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3742 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3743 image = this.scale_num_cache[num];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3744 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3745 ctx.drawImage(image, -image.width, -Math.round(image.height / 2))
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3746 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3747
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3748 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3749 // end RasterizedAlphabet
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3750 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3751
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3752 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3753 // start LogoMetrics object
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3754 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3755
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3756 var LogoMetrics = function(ctx, logo_columns, logo_rows, has_names, has_finetext, x_axis, y_axis) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3757 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3758 var i, row_height;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3759 //variable prototypes
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3760 this.pad_top = (has_names ? 5 : 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3761 this.pad_left = (y_axis ? 10 : 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3762 this.pad_right = (has_finetext ? 15 : 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3763 this.pad_bottom = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3764 this.pad_middle = 20;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3765 this.name_height = 14;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3766 this.name_font = "bold " + this.name_height + "px Times, sans-serif";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3767 this.name_spacer = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3768 this.y_axis = y_axis;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3769 this.y_label = "bits";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3770 this.y_label_height = 12;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3771 this.y_label_font = "bold " + this.y_label_height + "px Helvetica, sans-serif";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3772 this.y_label_spacer = 3;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3773 this.y_num_height = 12;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3774 this.y_num_width = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3775 this.y_num_font = "bold " + this.y_num_height + "px Helvetica, sans-serif";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3776 this.y_tic_width = 5;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3777 this.stack_pad_left = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3778 this.stack_font = "bold 25px Helvetica, sans-serif";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3779 this.stack_height = 90;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3780 this.stack_width = 26;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3781 this.stacks_pad_right = 5;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3782 this.x_axis = x_axis;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3783 this.x_num_above = 2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3784 this.x_num_height = 12;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3785 this.x_num_width = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3786 this.x_num_font = "bold " + this.x_num_height + "px Helvetica, sans-serif";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3787 this.fine_txt_height = 6;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3788 this.fine_txt_above = 2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3789 this.fine_txt_font = "normal " + this.fine_txt_height + "px Helvetica, sans-serif";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3790 this.letter_metrics = new Array();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3791 this.summed_width = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3792 this.summed_height = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3793 //calculate the width of the y axis numbers
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3794 ctx.font = this.y_num_font;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3795 for (i = 0; i <= 2; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3796 this.y_num_width = Math.max(this.y_num_width, ctx.measureText("" + i).width);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3797 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3798 //calculate the width of the x axis numbers (but they are rotated so it becomes height)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3799 if (x_axis == 1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3800 ctx.font = this.x_num_font;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3801 for (i = 1; i <= logo_columns; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3802 this.x_num_width = Math.max(this.x_num_width, ctx.measureText("" + i).width);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3803 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3804 } else if (x_axis == 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3805 this.x_num_height = 4;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3806 this.x_num_width = 4;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3807 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3808 this.x_num_height = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3809 this.x_num_width = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3810 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3811
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3812 //calculate how much vertical space we want to draw this
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3813 //first we add the padding at the top and bottom since that's always there
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3814 this.summed_height += this.pad_top + this.pad_bottom;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3815 //all except the last row have the same amount of space allocated to them
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3816 if (logo_rows > 1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3817 row_height = this.stack_height + this.pad_middle;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3818 if (has_names) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3819 row_height += this.name_height;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3820 //the label is allowed to overlap into the spacer
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3821 row_height += Math.max(this.y_num_height/2, this.name_spacer);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3822 //the label is allowed to overlap the space used by the other label
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3823 row_height += Math.max(this.y_num_height/2, this.x_num_height + this.x_num_above);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3824 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3825 row_height += this.y_num_height/2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3826 //the label is allowed to overlap the space used by the other label
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3827 row_height += Math.max(this.y_num_height/2, this.x_num_height + this.x_num_above);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3828 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3829 this.summed_height += row_height * (logo_rows - 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3830 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3831 //the last row has the name and fine text below it but no padding
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3832 this.summed_height += this.stack_height + (this.y_axis ? this.y_num_height/2 : 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3833
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3834 var fine_txt_total = (has_finetext ? this.fine_txt_height + this.fine_txt_above : 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3835 if (has_names) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3836 this.summed_height += fine_txt_total + this.name_height;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3837 this.summed_height += Math.max((this.y_axis ? this.y_num_height/2 : 0),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3838 this.x_num_height + this.x_num_above + this.name_spacer);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3839 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3840 this.summed_height += Math.max((this.y_axis ? this.y_num_height/2 : 0),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3841 this.x_num_height + this.x_num_above + fine_txt_total);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3842 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3843
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3844 //calculate how much horizontal space we want to draw this
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3845 //first add the padding at the left and right since that's always there
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3846 this.summed_width += this.pad_left + this.pad_right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3847 if (this.y_axis) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3848 //add on the space for the y-axis label
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3849 this.summed_width += this.y_label_height + this.y_label_spacer;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3850 //add on the space for the y-axis
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3851 this.summed_width += this.y_num_width + this.y_tic_width;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3852 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3853 //add on the space for the stacks
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3854 this.summed_width += (this.stack_pad_left + this.stack_width) * logo_columns;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3855 //add on the padding after the stacks (an offset from the fine text)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3856 this.summed_width += this.stacks_pad_right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3857
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3858 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3859
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3860 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3861 // end LogoMetrics object
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3862 //======================================================================
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3863
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3864 //found this trick at http://talideon.com/weblog/2005/02/detecting-broken-images-js.cfm
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3865 function image_ok(img) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3866 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3867 // During the onload event, IE correctly identifies any images that
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3868 // weren't downloaded as not complete. Others should too. Gecko-based
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3869 // browsers act like NS4 in that they report this incorrectly.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3870 if (!img.complete) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3871 return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3872 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3873 // However, they do have two very useful properties: naturalWidth and
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3874 // naturalHeight. These give the true size of the image. If it failed
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3875 // to load, either of these should be zero.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3876 if (typeof img.naturalWidth !== "undefined" && img.naturalWidth === 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3877 return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3878 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3879 // No other way of checking: assume it's ok.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3880 return true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3881 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3882
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3883 function supports_text(ctx) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3884 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3885 if (!ctx.fillText) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3886 return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3887 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3888 if (!ctx.measureText) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3889 return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3890 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3891 return true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3892 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3893
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3894 //draws the scale, returns the width
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3895 function draw_scale(ctx, metrics, alphabet_ic, raster) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3896 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3897 var tic_height, i;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3898 tic_height = metrics.stack_height / alphabet_ic;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3899 ctx.save();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3900 ctx.translate(metrics.y_label_height, metrics.y_num_height/2);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3901 //draw the axis label
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3902 ctx.save();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3903 ctx.font = metrics.y_label_font;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3904 ctx.translate(0, metrics.stack_height/2);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3905 ctx.rotate(-(Math.PI / 2));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3906 ctx.textAlign = "center";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3907 ctx.fillText("bits", 0, 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3908 ctx.restore();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3909
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3910 ctx.translate(metrics.y_label_spacer + metrics.y_num_width, 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3911
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3912 //draw the axis tics
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3913 ctx.save();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3914 ctx.translate(0, metrics.stack_height);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3915 for (i = 0; i <= alphabet_ic; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3916 //draw the number
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3917 ctx.save();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3918 ctx.translate(-1, 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3919 raster.draw_scale_num(ctx, metrics.y_num_font, i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3920 ctx.restore();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3921 //draw the tic
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3922 ctx.fillRect(0, -1, metrics.y_tic_width, 2);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3923 //prepare for next tic
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3924 ctx.translate(0, -tic_height);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3925 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3926 ctx.restore();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3927
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3928 ctx.fillRect(metrics.y_tic_width - 2, 0, 2, metrics.stack_height)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3929
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3930 ctx.restore();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3931 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3932
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3933 function draw_stack_num(ctx, metrics, row_index, raster) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3934 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3935 ctx.save();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3936 ctx.translate(0, Math.round(metrics.stack_height + metrics.x_num_above));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3937 if (metrics.x_axis == 1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3938 raster.draw_stack_num(ctx, metrics.x_num_font, metrics.stack_width, row_index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3939 } else if (metrics.x_axis == 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3940 // draw dots instead of the numbers (good for small logos)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3941 ctx.beginPath();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3942 var radius = Math.round(metrics.x_num_height / 2);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3943 ctx.arc(Math.round(metrics.stack_width / 2), radius, radius, 0, 2 * Math.PI, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3944 ctx.fill();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3945 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3946 ctx.restore();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3947 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3948
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3949 function draw_stack(ctx, metrics, symbols, raster) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3950 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3951 var preferred_pad, sym_min, i, sym, sym_height, pad;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3952 preferred_pad = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3953 sym_min = 5;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3954
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3955 ctx.save();//1
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3956 ctx.translate(0, metrics.stack_height);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3957 for (i = 0; i < symbols.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3958 sym = symbols[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3959 sym_height = metrics.stack_height * sym.get_scale();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3960
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3961 pad = preferred_pad;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3962 if (sym_height - pad < sym_min) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3963 pad = Math.min(pad, Math.max(0, sym_height - sym_min));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3964 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3965 sym_height -= pad;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3966
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3967 //translate to the correct position
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3968 ctx.translate(0, -(pad/2 + sym_height));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3969
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3970 //draw
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3971 raster.draw_stack_sym(ctx, sym.get_symbol(), 0, 0, metrics.stack_width, sym_height);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3972 //translate past the padding
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3973 ctx.translate(0, -(pad/2));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3974 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3975 ctx.restore();//1
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3976 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3977
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3978 function draw_dashed_line(ctx, pattern, start, x1, y1, x2, y2) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3979 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3980 var x, y, len, i, dx, dy, tlen, theta, mulx, muly, lx, ly;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3981 dx = x2 - x1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3982 dy = y2 - y1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3983 tlen = Math.pow(dx*dx + dy*dy, 0.5);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3984 theta = Math.atan2(dy,dx);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3985 mulx = Math.cos(theta);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3986 muly = Math.sin(theta);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3987 lx = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3988 ly = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3989 for (i = 0; i < pattern; ++i) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3990 lx.push(pattern[i] * mulx);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3991 ly.push(pattern[i] * muly);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3992 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3993 i = start;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3994 x = x1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3995 y = y1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3996 len = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3997 ctx.beginPath();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3998 while (len + pattern[i] < tlen) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3999 ctx.moveTo(x, y);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4000 x += lx[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4001 y += ly[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4002 ctx.lineTo(x, y);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4003 len += pattern[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4004 i = (i + 1) % pattern.length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4005 x += lx[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4006 y += ly[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4007 len += pattern[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4008 i = (i + 1) % pattern.length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4009 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4010 if (len < tlen) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4011 ctx.moveTo(x, y);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4012 x += mulx * (tlen - len);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4013 y += muly * (tlen - len);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4014 ctx.lineTo(x, y);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4015 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4016 ctx.stroke();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4017 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4018
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4019 function draw_trim_background(ctx, metrics, left_start, left_end, left_divider, right_start, right_end, right_divider) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4020 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4021 var left_size = left_end - left_start;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4022 var right_size = right_end - right_start;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4023 var line_x;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4024
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4025 ctx.save();//s8
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4026 ctx.fillStyle = "rgb(240, 240, 240)";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4027 if (left_size > 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4028 ctx.fillRect(left_start * metrics.stack_width, 0, left_size * metrics.stack_width, metrics.stack_height);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4029 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4030 if (right_size > 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4031 ctx.fillRect(right_start * metrics.stack_width, 0, right_size * metrics.stack_width, metrics.stack_height);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4032 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4033 ctx.fillStyle = "rgb(51, 51, 51)";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4034 if (left_size > 0 && left_divider) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4035 line_x = (left_end * metrics.stack_width) - 0.5;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4036 draw_dashed_line(ctx, [3], 0, line_x, 0, line_x, metrics.stack_height);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4037 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4038 if (right_size > 0 && right_divider) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4039 line_x = (right_start * metrics.stack_width) + 0.5;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4040 draw_dashed_line(ctx, [3], 0, line_x, 0, line_x, metrics.stack_height);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4041 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4042 ctx.restore();//s8
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4043 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4044
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4045 function size_logo_on_canvas(logo, canvas, show_names, scale) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4046 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4047 var draw_name, draw_finetext, metrics;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4048 draw_name = (typeof show_names === "boolean" ? show_names : (logo.get_rows() > 1));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4049 draw_finetext = (logo.fine_text.length > 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4050 if (canvas.width !== 0 && canvas.height !== 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4051 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4052 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4053 metrics = new LogoMetrics(canvas.getContext('2d'),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4054 logo.get_xlate_columns(), logo.get_rows(), draw_name, draw_finetext, logo.x_axis, logo.y_axis);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4055 if (typeof scale == "number") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4056 //resize the canvas to fit the scaled logo
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4057 canvas.width = metrics.summed_width * scale;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4058 canvas.height = metrics.summed_height * scale;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4059 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4060 if (canvas.width === 0 && canvas.height === 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4061 canvas.width = metrics.summed_width;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4062 canvas.height = metrics.summed_height;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4063 } else if (canvas.width === 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4064 canvas.width = metrics.summed_width * (canvas.height / metrics.summed_height);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4065 } else if (canvas.height === 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4066 canvas.height = metrics.summed_height * (canvas.width / metrics.summed_width);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4067 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4068 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4069 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4070
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4071 function draw_logo_on_canvas(logo, canvas, show_names, scale) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4072 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4073 var i, draw_name, draw_finetext, ctx, metrics, raster, pspm_i, pspm,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4074 offset, col_index, motif_position, ssc;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4075 ssc = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4076 draw_name = (typeof show_names === "boolean" ? show_names : (logo.get_rows() > 1));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4077 draw_finetext = (logo.fine_text.length > 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4078 ctx = canvas.getContext('2d');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4079 //assume that the user wants the canvas scaled equally so calculate what the best width for this image should be
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4080 metrics = new LogoMetrics(ctx, logo.get_xlate_columns(), logo.get_rows(), draw_name, draw_finetext, logo.x_axis, logo.y_axis);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4081 if (typeof scale == "number") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4082 //resize the canvas to fit the scaled logo
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4083 canvas.width = metrics.summed_width * scale;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4084 canvas.height = metrics.summed_height * scale;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4085 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4086 if (canvas.width === 0 && canvas.height === 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4087 scale = 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4088 canvas.width = metrics.summed_width;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4089 canvas.height = metrics.summed_height;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4090 } else if (canvas.width === 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4091 scale = canvas.height / metrics.summed_height;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4092 canvas.width = metrics.summed_width * scale;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4093 } else if (canvas.height === 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4094 scale = canvas.width / metrics.summed_width;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4095 canvas.height = metrics.summed_height * scale;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4096 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4097 scale = Math.min(canvas.width / metrics.summed_width, canvas.height / metrics.summed_height);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4098 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4099 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4100 // cache the raster based on the assumption that we will be drawing a lot
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4101 // of logos the same size and alphabet
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4102 if (typeof draw_logo_on_canvas.raster_cache === "undefined") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4103 draw_logo_on_canvas.raster_cache = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4104 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4105 for (i = 0; i < draw_logo_on_canvas.raster_cache.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4106 raster = draw_logo_on_canvas.raster_cache[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4107 if (raster.get_alphabet().equals(logo.alphabet) &&
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4108 Math.abs(raster.get_scale() - scale) < 0.1) break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4109 raster = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4110 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4111 if (raster == null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4112 raster = new RasterizedAlphabet(logo.alphabet, scale, metrics.stack_font, metrics.stack_width);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4113 draw_logo_on_canvas.raster_cache.push(raster);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4114 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4115 ctx = canvas.getContext('2d');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4116 ctx.save();//s1
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4117 ctx.scale(scale, scale);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4118 ctx.save();//s2
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4119 ctx.save();//s7
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4120 //create margin
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4121 ctx.translate(Math.round(metrics.pad_left), Math.round(metrics.pad_top));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4122 for (pspm_i = 0; pspm_i < logo.get_rows(); ++pspm_i) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4123 pspm = logo.get_pspm(pspm_i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4124 offset = logo.get_offset(pspm_i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4125 //optionally draw name if this isn't the last row or is the only row
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4126 if (draw_name && (logo.get_rows() == 1 || pspm_i != (logo.get_rows()-1))) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4127 ctx.save();//s4
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4128 ctx.translate(Math.round(metrics.summed_width/2), Math.round(metrics.name_height));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4129 ctx.font = metrics.name_font;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4130 ctx.textAlign = "center";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4131 ctx.fillText(pspm.name, 0, 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4132 ctx.restore();//s4
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4133 ctx.translate(0, Math.round(metrics.name_height +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4134 Math.min(0, metrics.name_spacer - metrics.y_num_height/2)));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4135 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4136 //draw scale
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4137 if (logo.y_axis) draw_scale(ctx, metrics, logo.alphabet.get_ic(), raster);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4138 ctx.save();//s5
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4139 //translate across past the scale
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4140 if (logo.y_axis) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4141 ctx.translate(Math.round(metrics.y_label_height + metrics.y_label_spacer +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4142 metrics.y_num_width + metrics.y_tic_width), Math.round(metrics.y_num_height / 2));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4143 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4144 //draw the trimming background
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4145 if (pspm.get_left_trim() > 0 || pspm.get_right_trim() > 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4146 var left_start = offset * logo.get_xlate_nsyms();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4147 var left_end = (offset + pspm.get_left_trim()) * logo.get_xlate_nsyms();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4148 var left_divider = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4149 if (left_end < logo.get_xlate_start() || left_start > logo.get_xlate_end()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4150 // no overlap
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4151 left_start = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4152 left_end = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4153 left_divider = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4154 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4155 if (left_start < logo.get_xlate_start()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4156 left_start = logo.get_xlate_start();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4157 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4158 if (left_end > logo.get_xlate_end()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4159 left_end = logo.get_xlate_end();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4160 left_divider = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4161 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4162 left_start -= logo.get_xlate_start();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4163 left_end -= logo.get_xlate_start();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4164 if (left_end < left_start) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4165 left_start = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4166 left_end = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4167 left_divider = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4168 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4169 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4170 var right_end = (offset + pspm.get_motif_length()) * logo.get_xlate_nsyms();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4171 //var right_start = right_end - (pspm.get_left_trim() * logo.get_xlate_nsyms());
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4172 var right_start = right_end - (pspm.get_right_trim() * logo.get_xlate_nsyms());
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4173 var right_divider = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4174 if (right_end < logo.get_xlate_start() || right_start > logo.get_xlate_end()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4175 // no overlap
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4176 right_start = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4177 right_end = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4178 right_divider = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4179 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4180 if (right_start < logo.get_xlate_start()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4181 right_start = logo.get_xlate_start();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4182 right_divider = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4183 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4184 if (right_end > logo.get_xlate_end()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4185 right_end = logo.get_xlate_end();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4186 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4187 right_start -= logo.get_xlate_start();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4188 right_end -= logo.get_xlate_start();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4189 if (right_end < right_start) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4190 right_start = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4191 right_end = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4192 right_divider = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4193 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4194 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4195 draw_trim_background(ctx, metrics, left_start, left_end, left_divider, right_start, right_end, right_divider);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4196 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4197 //draw letters
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4198 var xlate_col;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4199 for (xlate_col = logo.get_xlate_start(); xlate_col < logo.get_xlate_end(); xlate_col++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4200 ctx.translate(metrics.stack_pad_left,0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4201 col_index = Math.floor(xlate_col / logo.get_xlate_nsyms());
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4202 if (xlate_col % logo.get_xlate_nsyms() == 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4203 if (col_index >= offset && col_index < (offset + pspm.get_motif_length())) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4204 motif_position = col_index - offset;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4205 draw_stack_num(ctx, metrics, motif_position, raster);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4206 draw_stack(ctx, metrics, pspm.get_stack(motif_position, logo.alphabet, ssc), raster);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4207 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4208 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4209 if (col_index >= offset && col_index < (offset + pspm.get_motif_length())) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4210 ctx.save();// s5.1
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4211 ctx.translate(0, Math.round(metrics.stack_height));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4212 // TODO draw a dot or dash or something to indicate continuity of the motif
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4213 ctx.restore(); //s5.1
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4214 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4215 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4216 ctx.translate(Math.round(metrics.stack_width), 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4217 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4218 ctx.restore();//s5
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4219 ////optionally draw name if this is the last row but isn't the only row
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4220 if (draw_name && (logo.get_rows() != 1 && pspm_i == (logo.get_rows()-1))) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4221 //translate vertically past the stack and axis's
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4222 ctx.translate(0, metrics.y_num_height/2 + metrics.stack_height +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4223 Math.max(metrics.y_num_height/2, metrics.x_num_above + metrics.x_num_width + metrics.name_spacer));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4224
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4225 ctx.save();//s6
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4226 ctx.translate(metrics.summed_width/2, metrics.name_height);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4227 ctx.font = metrics.name_font;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4228 ctx.textAlign = "center";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4229 ctx.fillText(pspm.name, 0, 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4230 ctx.restore();//s6
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4231 ctx.translate(0, metrics.name_height);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4232 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4233 //translate vertically past the stack and axis's
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4234 ctx.translate(0, metrics.y_num_height/2 + metrics.stack_height +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4235 Math.max(metrics.y_num_height/2, metrics.x_num_above + metrics.x_num_width));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4236 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4237 //if not the last row then add middle padding
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4238 if (pspm_i != (logo.get_rows() -1)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4239 ctx.translate(0, metrics.pad_middle);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4240 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4241 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4242 ctx.restore();//s7
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4243 if (logo.fine_text.length > 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4244 ctx.translate(metrics.summed_width - metrics.pad_right, metrics.summed_height - metrics.pad_bottom);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4245 ctx.font = metrics.fine_txt_font;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4246 ctx.textAlign = "right";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4247 ctx.fillText(logo.fine_text, 0,0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4248 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4249 ctx.restore();//s2
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4250 ctx.restore();//s1
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4251 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4252
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4253 function create_canvas(c_width, c_height, c_id, c_title, c_display) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4254 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4255 var canvas = document.createElement("canvas");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4256 //check for canvas support before attempting anything
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4257 if (!canvas.getContext) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4258 return null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4259 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4260 var ctx = canvas.getContext('2d');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4261 //check for html5 text drawing support
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4262 if (!supports_text(ctx)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4263 return null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4264 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4265 //size the canvas
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4266 canvas.width = c_width;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4267 canvas.height = c_height;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4268 canvas.id = c_id;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4269 canvas.title = c_title;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4270 canvas.style.display = c_display;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4271 return canvas;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4272 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4273
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4274 function logo_1(alphabet, fine_text, pspm) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4275 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4276 var logo = new Logo(alphabet, fine_text);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4277 logo.add_pspm(pspm);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4278 return logo;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4279 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4280
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4281 function logo_2(alphabet, fine_text, target, query, query_offset) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4282 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4283 var logo = new Logo(alphabet, fine_text);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4284 if (query_offset < 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4285 logo.add_pspm(target, -query_offset);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4286 logo.add_pspm(query);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4287 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4288 logo.add_pspm(target);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4289 logo.add_pspm(query, query_offset);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4290 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4291 return logo;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4292 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4293
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4294 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4295 * Specifies an alternate source for an image.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4296 * If the image with the image_id specified has
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4297 * not loaded then a generated logo will be used
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4298 * to replace it.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4299 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4300 * Note that the image must either have dimensions
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4301 * or a scale must be set.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4302 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4303 function alternate_logo(logo, image_id, scale) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4304 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4305 var image = document.getElementById(image_id);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4306 if (!image) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4307 alert("Can't find specified image id (" + image_id + ")");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4308 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4309 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4310 //if the image has loaded then there is no reason to use the canvas
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4311 if (image_ok(image)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4312 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4313 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4314 //the image has failed to load so replace it with a canvas if we can.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4315 var canvas = create_canvas(image.width, image.height, image_id, image.title, image.style.display);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4316 if (canvas === null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4317 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4318 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4319 //draw the logo on the canvas
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4320 draw_logo_on_canvas(logo, canvas, null, scale);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4321 //replace the image with the canvas
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4322 image.parentNode.replaceChild(canvas, image);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4323 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4324
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4325 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4326 * Specifes that the element with the specified id
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4327 * should be replaced with a generated logo.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4328 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4329 function replace_logo(logo, replace_id, scale, title_txt, display_style) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4330 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4331 var element = document.getElementById(replace_id);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4332 if (!replace_id) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4333 alert("Can't find specified id (" + replace_id + ")");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4334 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4335 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4336 //found the element!
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4337 var canvas = create_canvas(50, 120, replace_id, title_txt, display_style);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4338 if (canvas === null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4339 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4340 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4341 //draw the logo on the canvas
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4342 draw_logo_on_canvas(logo, canvas, null, scale);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4343 //replace the element with the canvas
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4344 element.parentNode.replaceChild(canvas, element);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4345 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4346
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4347 /*
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4348 * Fast string trimming implementation found at
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4349 * http://blog.stevenlevithan.com/archives/faster-trim-javascript
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4350 *
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4351 * Note that regex is good at removing leading space but
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4352 * bad at removing trailing space as it has to first go through
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4353 * the whole string.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4354 */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4355 function trim (str) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4356 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4357 var ws, i;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4358 str = str.replace(/^\s\s*/, '');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4359 ws = /\s/; i = str.length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4360 while (ws.test(str.charAt(--i)));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4361 return str.slice(0, i + 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4362 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4363 </script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4364 <script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4365
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4366 // PRIVATE GLOBAL (uhoh)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4367 var _block_colour_lookup = {};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4368
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4369 function block_colour(index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4370 function hsl2rgb(hue, saturation, lightness) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4371 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4372 function _hue(p, q, t) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4373 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4374 if (t < 0) t += 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4375 else if (t > 1) t -= 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4376 if (t < (1.0 / 6.0)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4377 return p + ((q - p) * 6.0 * t);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4378 } else if (t < 0.5) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4379 return q;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4380 } else if (t < (2.0 / 3.0)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4381 return p + ((q - p) * ((2.0 / 3.0) - t) * 6.0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4382 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4383 return p;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4384 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4385 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4386 function _pad_hex(value) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4387 var hex = Math.round(value * 255).toString(16);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4388 if (hex.length < 2) hex = "0" + hex;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4389 return hex;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4390 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4391 var r, g, b, p, q;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4392 if (saturation == 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4393 // achromatic (grayscale)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4394 r = lightness;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4395 g = lightness;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4396 b = lightness;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4397 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4398 if (lightness < 0.5) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4399 q = lightness * (1 + saturation);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4400 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4401 q = lightness + saturation - (lightness * saturation);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4402 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4403 p = (2 * lightness) - q;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4404 r = _hue(p, q, hue + (1.0 / 3.0));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4405 g = _hue(p, q, hue);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4406 b = _hue(p, q, hue - (1.0 / 3.0));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4407 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4408 return "#" + _pad_hex(r) + _pad_hex(g) + _pad_hex(b);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4409 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4410 if (typeof index !== "number" || index % 1 !== 0 || index < 0) return "#000000";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4411 // check for override
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4412 if (_block_colour_lookup[index] == null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4413 var start = 0; //red
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4414 var sat = 100;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4415 var light = 50;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4416 var divisions = 1 << Math.ceil(Math.log(index + 1) / Math.LN2);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4417 hue = start + (360 / divisions) * ((index - (divisions >> 1)) * 2 + 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4418 // colour input fields only support values in the form #RRGGBB
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4419 _block_colour_lookup[index] = hsl2rgb(hue / 360, sat / 100, light / 100);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4420 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4421 return _block_colour_lookup[index];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4422 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4423
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4424 function set_block_colour(index, new_colour) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4425 _block_colour_lookup[index] = new_colour;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4426 var blocks = document.querySelectorAll("div.block_motif[data-colour-index=\"" + index + "\"]");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4427 var i;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4428 for (i = 0; i < blocks.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4429 blocks[i].style.backgroundColor = new_colour;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4430 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4431 var swatches = document.querySelectorAll("div.legend_swatch[data-colour-index=\"" + index + "\"]");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4432 var picker;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4433 for (i = 0; i < swatches.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4434 swatches[i].style.backgroundColor = new_colour;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4435 picker = swatches[i].querySelector("input[type=\"color\"]");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4436 if (picker != null) picker.value = new_colour;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4437 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4438 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4439
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4440 function make_block_legend_entry(motif_name, motif_colour_index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4441 if (typeof make_block_legend_entry.has_colour_picker !== "boolean") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4442 // test if colour picker is supported, based off Modernizer
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4443 // see http://stackoverflow.com/a/7787648/66387
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4444 make_block_legend_entry.has_colour_picker = (function() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4445 var doc_ele = document.documentElement;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4446 // We first check to see if the type we give it sticks..
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4447 var input_ele = document.createElement('input');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4448 input_ele.setAttribute('type', 'color');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4449 var value_ok = input_ele.type !== 'text';
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4450 if (value_ok) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4451 // If the type does, we feed it a textual value, which shouldn't be valid.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4452 // If the value doesn't stick, we know there's input sanitization which infers a custom UI
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4453 var smile = ':)';
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4454 input_ele.value = smile;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4455 input_ele.style.cssText = 'position:absolute;visibility:hidden;';
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4456 // chuck into DOM and force reflow for Opera bug in 11.00
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4457 // github.com/Modernizr/Modernizr/issues#issue/159
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4458 doc_ele.appendChild(input_ele);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4459 doc_ele.offsetWidth;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4460 value_ok = input_ele.value != smile;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4461 doc_ele.removeChild(input_ele);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4462 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4463 return value_ok;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4464 })();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4465 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4466 var entry = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4467 entry.className = "legend_entry";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4468 var swatch;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4469 swatch = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4470 swatch.className = "legend_swatch";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4471 swatch.setAttribute("data-colour-index", motif_colour_index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4472 swatch.style.backgroundColor = block_colour(motif_colour_index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4473 if (make_block_legend_entry.has_colour_picker) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4474 var picker = document.createElement("input");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4475 picker.type = "color";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4476 picker.value = block_colour(motif_colour_index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4477 picker.addEventListener("change", function(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4478 set_block_colour(motif_colour_index, picker.value);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4479 }, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4480 swatch.addEventListener("click", function(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4481 picker.click();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4482 }, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4483 swatch.appendChild(picker);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4484 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4485 entry.appendChild(swatch);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4486 var name = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4487 name.className = "legend_text";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4488 name.appendChild(document.createTextNode(motif_name));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4489 entry.appendChild(name);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4490 return entry;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4491 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4492
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4493 function make_block_ruler(max_len) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4494 var container = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4495 container.className = "block_container";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4496 var step;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4497 if (max_len < 50) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4498 step = 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4499 } else if (max_len < 100) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4500 step = 2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4501 } else if (max_len < 200) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4502 step = 4;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4503 } else if (max_len < 500) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4504 step = 10;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4505 } else if (max_len < 1000) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4506 step = 20;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4507 } else if (max_len < 2000) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4508 step = 40;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4509 } else if (max_len < 5000) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4510 step = 100;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4511 } else if (max_len < 10000) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4512 step = 200;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4513 } else if (max_len < 20000) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4514 step = 400;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4515 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4516 step = Math.floor(max_len / 20000) * 400;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4517 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4518 var peroid;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4519 if (max_len < 10) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4520 peroid = 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4521 } else if (max_len < 20) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4522 peroid = 2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4523 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4524 peroid = 5;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4525 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4526 var i, cycle, offset, tic, label;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4527 for (i = 0, cycle = 0; i < max_len; i += step, cycle = (cycle + 1) % peroid) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4528 offset = "" + ((i / max_len) * 100) + "%";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4529 tic = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4530 tic.style.left = offset;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4531 tic.className = (cycle == 0 ? "tic_major" : "tic_minor");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4532 container.appendChild(tic);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4533 if (cycle == 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4534 label = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4535 label.className = "tic_label";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4536 label.style.left = offset;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4537 label.appendChild(document.createTextNode(i));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4538 container.appendChild(label);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4539 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4540 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4541 return container;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4542 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4543
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4544 function _calculate_block_needle_drag_pos(e, data) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4545 var mouse;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4546 e = e || window.event;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4547 if (e.pageX || ev.pageY) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4548 mouse = {"x": e.pageX, "y": e.pageY};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4549 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4550 mouse = {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4551 x:e.clientX + document.body.scrollLeft - document.body.clientLeft,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4552 y:e.clientY + document.body.scrollTop - document.body.clientTop
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4553 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4554 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4555 var cont = data.container;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4556 var dragable_length = cont.clientWidth -
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4557 (cont.style.paddingLeft ? cont.style.paddingLeft : 0) -
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4558 (cont.style.paddingRight ? cont.style.paddingRight : 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4559 //I believe that the offset parent is the body
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4560 //otherwise I would need to make this recursive
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4561 //maybe clientLeft would work, but the explanation of
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4562 //it is hard to understand and it apparently doesn't work
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4563 //in firefox 2.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4564 var diff = mouse.x - cont.offsetLeft;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4565 if (diff < 0) diff = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4566 if (diff > dragable_length) diff = dragable_length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4567 var pos = Math.round(diff / dragable_length * data.max);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4568 if (pos > data.len) pos = data.len;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4569 return pos;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4570 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4571
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4572 function _update_block_needle_drag(e, data, done) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4573 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4574 var pos = _calculate_block_needle_drag_pos(e, data);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4575 // read the needle positions
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4576 var left = parseInt(data.llabel.textContent, 10) - data.off - 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4577 var right = parseInt(data.rlabel.textContent, 10) - data.off;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4578 // validate needle positions
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4579 if (left >= data.len) left = data.len - 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4580 if (left < 0) left = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4581 if (right > data.len) right = data.len;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4582 if (right <= left) right = left + 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4583 // calculate the new needle positions
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4584 if (data.moveboth) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4585 var size = right - left;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4586 if (data.isleft) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4587 if ((pos + size) > data.len) pos = data.len - size;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4588 left = pos;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4589 right = pos + size;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4590 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4591 if ((pos - size) < 0) pos = size;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4592 left = pos - size;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4593 right = pos;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4594 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4595 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4596 if (data.isleft) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4597 if (pos >= right) pos = right - 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4598 left = pos;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4599 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4600 if (pos <= left) pos = left + 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4601 right = pos;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4602 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4603 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4604 // update the needle positions
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4605 data.lneedle.style.left = "" + (left / data.max * 100) + "%";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4606 data.llabel.textContent = "" + (left + data.off + 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4607 data.rneedle.style.left = "" + (right / data.max * 100) + "%";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4608 data.rlabel.textContent = "" + (right + data.off);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4609 data.handler(left, right, done);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4610 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4611
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4612 function _make_block_needle_drag_start_handler(isleft, data) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4613 return function (e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4614 data.isleft = isleft;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4615 data.moveboth = !(e.shiftKey);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4616 document.addEventListener("mousemove", data.drag_during, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4617 document.addEventListener("mouseup", data.drag_end, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4618 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4619 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4620
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4621 function _make_block_needle_drag_end_handler(data) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4622 return function (e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4623 document.removeEventListener("mousemove", data.drag_during, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4624 document.removeEventListener("mouseup", data.drag_end, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4625 _update_block_needle_drag(e, data, true);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4626 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4627 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4628
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4629 function _make_block_needle_drag_during_handler(data) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4630 return function (e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4631 _update_block_needle_drag(e, data, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4632 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4633 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4634
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4635 // private function used by make_block_container
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4636 function _make_block_needle(isleft, value, data) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4637 var vbar = document.createElement('div');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4638 vbar.className = "block_needle " + (isleft ? "left" : "right");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4639 vbar.style.left = "" + (value / data.max * 100)+ "%";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4640 var label = document.createElement('div');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4641 label.className = "block_handle " + (isleft ? "left" : "right");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4642 // The needles sit between the sequence positions, so the left one sits at the
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4643 // start and the right at the end. This is why 1 is added to the displayed
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4644 // value for a left handle as the user doesn't need to know about this detail
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4645 label.textContent = "" + (isleft ? value + data.off + 1 : value + data.off);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4646 label.unselectable = "on"; // so IE and Opera don't select the text, others are done in css
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4647 label.title = "Drag to move the displayed range. Hold shift and drag to change " + (isleft ? "lower" : "upper") + " bound of the range.";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4648 vbar.appendChild(label);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4649 if (isleft) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4650 data.lneedle = vbar;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4651 data.llabel = label;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4652 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4653 data.rneedle = vbar;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4654 data.rlabel = label;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4655 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4656 label.addEventListener("mousedown", _make_block_needle_drag_start_handler(isleft, data), false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4657 return vbar;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4658 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4659
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4660 function make_block_container(is_stranded, has_both_strands, max_len, show_len, offset, range_handler) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4661 offset = (offset != null ? offset : 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4662 // make the container for the block diagram
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4663 var container = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4664 container.className = "block_container";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4665 container.setAttribute("data-max", max_len);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4666 container.setAttribute("data-off", offset);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4667 if (is_stranded) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4668 var plus = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4669 plus.appendChild(document.createTextNode("+"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4670 plus.className = "block_plus_sym";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4671 container.appendChild(plus);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4672 if (has_both_strands) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4673 var minus = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4674 minus.appendChild(document.createTextNode("-"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4675 minus.className = "block_minus_sym";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4676 container.appendChild(minus);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4677 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4678 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4679 var rule = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4680 rule.className = "block_rule";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4681 rule.style.width = ((show_len / max_len) * 100) + "%";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4682 container.appendChild(rule);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4683 if (range_handler != null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4684 var range_data = {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4685 "max": max_len,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4686 "len": show_len,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4687 "off": offset,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4688 "handler": range_handler,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4689 "container": container,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4690 "lneedle": null, "llabel": null,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4691 "rneedle": null, "rlabel": null,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4692 "isleft": false, "moveboth" : false
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4693 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4694 range_data.drag_during = _make_block_needle_drag_during_handler(range_data);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4695 range_data.drag_end = _make_block_needle_drag_end_handler(range_data);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4696 container.appendChild(_make_block_needle(false, 1, range_data)); // add right first so z-index works
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4697 container.appendChild(_make_block_needle(true, 0, range_data));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4698 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4699 return container;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4700 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4701
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4702 function make_block_label(container, max_len, pos, length, message) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4703 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4704 var label = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4705 label.className = "block_label";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4706 label.style.left = (((pos + (length / 2)) / max_len) * 100) + "%";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4707 label.appendChild(document.createTextNode(message));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4708 container.appendChild(label);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4709 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4710
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4711 function make_block(container, max_len,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4712 site_pos, site_len, site_pvalue, site_rc, site_colour_index, site_secondary) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4713 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4714 var block_height, block, block_region1, block_region2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4715 var max_block_height = 12;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4716 var max_pvalue = 1e-10;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4717 // calculate the height of the block
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4718 block_height = (site_pvalue < max_pvalue ? max_block_height :
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4719 (Math.log(site_pvalue) / Math.log(max_pvalue)) * max_block_height);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4720 if (block_height < 1) block_height = 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4721 // create a block to represent the motif
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4722 block = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4723 block.className = "block_motif" + (site_secondary ? " scanned_site" : "") + (site_rc ? " bottom" : " top");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4724 block.style.left = ((site_pos / max_len) * 100) + "%";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4725 block.style.top = (!site_rc ? max_block_height - block_height :
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4726 max_block_height + 1) + "px";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4727 block.style.width = ((site_len / max_len) * 100) + "%";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4728 block.style.height = block_height + "px";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4729 block.style.backgroundColor = block_colour(site_colour_index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4730 block.setAttribute("data-colour-index", site_colour_index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4731 // add to container
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4732 container.appendChild(block);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4733 var activator = function (e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4734 toggle_class(block, "active", true);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4735 var new_e = new e.constructor(e.type, e);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4736 block.dispatchEvent(new_e);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4737 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4738 var deactivator = function (e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4739 toggle_class(block, "active", false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4740 var new_e = new e.constructor(e.type, e);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4741 block.dispatchEvent(new_e);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4742 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4743 // create a larger region to detect mouseover for the block
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4744 block_region1 = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4745 block_region1.className = "block_region top" +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4746 (site_secondary ? " scanned_site" : "") + (site_rc ? "" : " main");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4747 block_region1.style.left = block.style.left;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4748 block_region1.style.width = block.style.width;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4749 block_region1.addEventListener('mouseover', activator, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4750 block_region1.addEventListener('mouseout', deactivator, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4751 container.appendChild(block_region1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4752 block_region2 = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4753 block_region2.className = "block_region bottom" +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4754 (site_secondary ? " scanned_site" : "") + (site_rc ? " main" : "");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4755 block_region2.style.left = block.style.left;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4756 block_region2.style.width = block.style.width;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4757 block_region2.addEventListener('mouseover', activator, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4758 block_region2.addEventListener('mouseout', deactivator, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4759 container.appendChild(block_region2);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4760 return block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4761 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4762
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4763 function set_block_needle_positions(containingNode, start, end) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4764 var container, lneedle, llabel, rneedle, rlabel, max, off, left, right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4765 container = (/\bblock_container\b/.test(containingNode.className) ? containingNode : containingNode.querySelector(".block_container"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4766 max = parseInt(container.getAttribute("data-max"), 10);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4767 off = parseInt(container.getAttribute("data-off"), 10);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4768 left = start - off;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4769 right = end - off;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4770 lneedle = containingNode.querySelector(".block_needle.left");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4771 llabel = lneedle.querySelector(".block_handle.left");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4772 rneedle = containingNode.querySelector(".block_needle.right");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4773 rlabel = rneedle.querySelector(".block_handle.right");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4774 // update the needle positions
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4775 lneedle.style.left = "" + (left / max * 100) + "%";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4776 llabel.textContent = "" + (left + off + 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4777 rneedle.style.left = "" + (right / max * 100) + "%";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4778 rlabel.textContent = "" + (right + off);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4779 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4780
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4781 function get_block_needle_positions(containingNode) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4782 var container, llabel, rlabel, max, off, left, right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4783 container = (/\bblock_container\b/.test(containingNode.className) ? containingNode : containingNode.querySelector(".block_container"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4784 max = parseInt(container.getAttribute("data-max"), 10);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4785 off = parseInt(container.getAttribute("data-off"), 10);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4786 llabel = containingNode.querySelector(".block_needle.left > .block_handle.left");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4787 rlabel = containingNode.querySelector(".block_needle.right > .block_handle.right");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4788 left = parseInt(llabel.textContent, 10) - off - 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4789 right = parseInt(rlabel.textContent, 10) - off;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4790 return {"start": left + off, "end": right + off};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4791 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4792 </script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4793 <script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4794 function make_alpha_bg_table(alph, freqs) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4795 function colour_symbol(index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4796 var span = document.createElement("span");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4797 span.appendChild(document.createTextNode(alph.get_symbol(index)));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4798 span.style.color = alph.get_colour(index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4799 span.className = "alpha_symbol";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4800 return span;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4801 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4802 var table, thead, tbody, row, th, span, i;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4803 // create table
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4804 table = document.createElement("table");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4805 table.className = "alpha_bg_table";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4806 // create header
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4807 thead = document.createElement("thead");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4808 table.appendChild(thead);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4809 row = thead.insertRow(thead.rows.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4810 if (alph.has_complement()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4811 add_text_header_cell(row, "Name", "pop_alph_name");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4812 if (freqs != null) add_text_header_cell(row, "Freq.", "pop_alph_freq");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4813 if (alph.has_bg()) add_text_header_cell(row, "Bg.", "pop_alph_bg");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4814 add_text_header_cell(row, "");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4815 add_text_header_cell(row, "");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4816 add_text_header_cell(row, "");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4817 if (alph.has_bg()) add_text_header_cell(row, "Bg.", "pop_alph_bg");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4818 if (freqs != null) add_text_header_cell(row, "Freq.", "pop_alph_freq");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4819 add_text_header_cell(row, "Name", "pop_alph_name");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4820 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4821 add_text_header_cell(row, "");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4822 add_text_header_cell(row, "Name", "pop_alph_name");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4823 if (freqs != null) add_text_header_cell(row, "Freq.", "pop_alph_freq");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4824 if (alph.has_bg()) add_text_header_cell(row, "Bg.", "pop_alph_bg");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4825 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4826 // add alphabet entries
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4827 tbody = document.createElement("tbody");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4828 table.appendChild(tbody);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4829 if (alph.has_complement()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4830 for (i = 0; i < alph.get_size_core(); i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4831 var c = alph.get_complement(i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4832 if (i > c) continue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4833 row = tbody.insertRow(tbody.rows.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4834 add_text_cell(row, alph.get_name(i));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4835 if (freqs != null) add_text_cell(row, "" + freqs[i].toFixed(3));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4836 if (alph.has_bg()) add_text_cell(row, "" + alph.get_bg_freq(i).toFixed(3));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4837 add_cell(row, colour_symbol(i));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4838 add_text_cell(row, "~");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4839 add_cell(row, colour_symbol(c));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4840 if (alph.has_bg()) add_text_cell(row, "" + alph.get_bg_freq(c).toFixed(3));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4841 if (freqs != null) add_text_cell(row, "" + freqs[c].toFixed(3));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4842 add_text_cell(row, alph.get_name(c));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4843 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4844 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4845 for (i = 0; i < alph.get_size_core(); i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4846 row = tbody.insertRow(tbody.rows.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4847 add_cell(row, colour_symbol(i));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4848 add_text_cell(row, alph.get_name(i));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4849 if (freqs != null) add_text_cell(row, "" + freqs[i].toFixed(3));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4850 if (alph.has_bg()) add_text_cell(row, "" + alph.get_bg_freq(i).toFixed(3));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4851 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4852 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4853 return table;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4854 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4855
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4856 </script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4857 <script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4858 var current_motif = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4859 var meme_alphabet = new Alphabet(data.alphabet, data.background.freqs);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4860
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4861 var DelayLogoTask = function(logo, canvas) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4862 this.logo = logo;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4863 this.canvas = canvas;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4864 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4865
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4866 DelayLogoTask.prototype.run = function () {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4867 draw_logo_on_canvas(this.logo, this.canvas, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4868 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4869
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4870 function motif_pspm(index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4871 var motif, pwm, psm, name, ltrim, rtrim, nsites, evalue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4872 // get motif
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4873 motif = data["motifs"][index];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4874 // get motif paramters
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4875 pwm = motif["pwm"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4876 psm = motif["psm"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4877 name = "" + (index + 1); ltrim = 0; rtrim = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4878 nsites = motif["nsites"]; evalue = motif["evalue"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4879 // make pspm
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4880 return new Pspm(pwm, name, ltrim, rtrim, nsites, evalue, psm);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4881 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4882
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4883 function motif_count_matrix(index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4884 return motif_pspm(index).as_count_matrix();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4885 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4886
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4887 function motif_prob_matrix(index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4888 return motif_pspm(index).as_probability_matrix();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4889 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4890
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4891 function motif_minimal_meme(index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4892 return motif_pspm(index).as_meme({
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4893 "with_header": true,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4894 "with_pspm": true,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4895 "with_pssm": true,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4896 "version": data["version"],
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4897 "alphabet": meme_alphabet,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4898 "strands": (meme_alphabet.has_complement() && data.options.revcomp ? 2 : 1)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4899 });
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4900 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4901
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4902 function motif_fasta(index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4903 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4904 var motif, sites, site, seq, sequences, sequence, i, num, counter, out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4905 counter = {};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4906 sequences = data["sequence_db"]["sequences"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4907 motif = data["motifs"][index];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4908 sites = motif["sites"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4909 out = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4910 for (i = 0; i < sites.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4911 site = sites[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4912 seq = site["seq"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4913 sequence = sequences[seq];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4914 counter[seq] = (num = counter[seq]) ? (++num) : (num = 1); // inc counter
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4915 if (i !== 0) {out += "\n";}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4916 out += ">" + sequence["name"] + "_site_" + num + " offset= " + site["pos"] +
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4917 (site["rc"] ? " RC\n" : "\n");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4918 out += site["match"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4919 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4920 return out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4921 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4922
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4923 function motif_raw(index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4924 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4925 var sites, i, out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4926 sites = data["motifs"][index]["sites"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4927 out = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4928 for (i = 0; i < sites.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4929 if (i !== 0) {out += "\n";}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4930 out += sites[i]["match"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4931 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4932 return out;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4933 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4934
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4935 function clone_template(template) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4936 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4937 var node, help_btns, i, button;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4938 node = $(template).cloneNode(true);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4939 toggle_class(node, "template", false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4940 node.id = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4941 help_btns = node.querySelectorAll(".help");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4942 for (i = 0; i < help_btns.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4943 button = help_btns[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4944 if (button.hasAttribute("data-topic")) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4945 button.tabIndex = "0";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4946 button.addEventListener("click", __toggle_help, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4947 button.addEventListener("keydown", __toggle_help, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4948 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4949 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4950 return node;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4951 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4952
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4953 function set_tvar(template, tvar, value) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4954 var node;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4955 node = find_child(template, tvar);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4956 if (node === null) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4957 throw new Error("Template does not contain variable " + tvar);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4958 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4959 node.innerHTML = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4960 if (typeof value !== "object") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4961 node.appendChild(document.createTextNode(value));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4962 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4963 node.appendChild(value);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4964 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4965 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4966
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4967 function make_logo(alphabet, pspm, rc, offset, className) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4968 if (rc) pspm = pspm.copy().reverse_complement(alphabet);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4969 var logo = new Logo(alphabet, "");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4970 logo.add_pspm(pspm, offset);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4971 var canvas = document.createElement('canvas');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4972 canvas.height = 50;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4973 canvas.width = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4974 canvas.className = className;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4975 size_logo_on_canvas(logo, canvas, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4976 add_draw_task(canvas, new DelayLogoTask(logo, canvas));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4977 return canvas;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4978 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4979
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4980 function make_small_logo(alphabet, pspm, options) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4981 if (typeof options === "undefined") options = {};
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4982 if (options.rc) pspm = pspm.copy().reverse_complement(alphabet);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4983 var logo = new Logo(alphabet, {x_axis: false, y_axis: false});
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4984 logo.add_pspm(pspm, (typeof options.offset === "number" ? options.offset : 0));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4985 var canvas = document.createElement('canvas');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4986 if (typeof options.className === "string") canvas.className = options.className;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4987 if (typeof options.width === "number" && options.width > 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4988 canvas.height = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4989 canvas.width = options.width;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4990 draw_logo_on_canvas(logo, canvas, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4991 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4992 draw_logo_on_canvas(logo, canvas, false, 1/3);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4993 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4994 return canvas;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4995 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4996
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4997 function make_large_logo(alphabet, pspm, rc, offset, className) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4998 if (rc) pspm = pspm.copy().reverse_complement(alphabet);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4999 var logo = new Logo(alphabet, "");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5000 logo.add_pspm(pspm, offset);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5001 var canvas = document.createElement('canvas');
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5002 canvas.height = 200;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5003 canvas.width = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5004 canvas.className = className;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5005 size_logo_on_canvas(logo, canvas, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5006 add_draw_task(canvas, new DelayLogoTask(logo, canvas));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5007 return canvas;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5008 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5009
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5010 function make_sym_btn(symbol, title, action) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5011 var box;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5012 box = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5013 box.tabIndex = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5014 box.className = "sym_btn";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5015 box.appendChild(document.createTextNode(symbol));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5016 box.title = title;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5017 box.addEventListener('click', action, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5018 box.addEventListener('keydown', action, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5019 return box;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5020 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5021
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5022 function make_seq(alphabet, seq) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5023 var i, j, letter, lbox, sbox;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5024 sbox = document.createElement("span");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5025 for (i = 0; i < seq.length; i = j) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5026 letter = seq.charAt(i);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5027 for (j = i+1; j < seq.length; j++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5028 if (seq.charAt(j) !== letter) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5029 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5030 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5031 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5032 lbox = document.createElement("span");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5033 lbox.style.color = alphabet.get_colour(alphabet.get_index(letter));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5034 lbox.appendChild(document.createTextNode(seq.substring(i, j)));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5035 sbox.appendChild(lbox);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5036 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5037 return sbox;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5038 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5039
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5040 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5041 // make_pv_text
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5042 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5043 // Returns the string p-value, with the p italicised.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5044 ///
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5045 function make_pv_text() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5046 var pv_text = document.createElement("span");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5047 var pv_italic_text = document.createElement("span");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5048 pv_italic_text.appendChild(document.createTextNode("p"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5049 pv_italic_text.style.fontStyle = "italic";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5050 pv_text.appendChild(pv_italic_text);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5051 pv_text.appendChild(document.createTextNode("-value"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5052 return pv_text;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5053 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5054
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5055 function append_site_entries(tbody, motif, site_index, count) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5056 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5057 var i, end;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5058 var sites, site, sequences, sequence;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5059 var rbody;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5060 if (typeof count !== "number") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5061 count = 20;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5062 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5063 sequences = data["sequence_db"]["sequences"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5064 sites = motif["sites"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5065 end = Math.min(site_index + count, sites.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5066 for (i = site_index; i < end; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5067 site = sites[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5068 sequence = sequences[site["seq"]];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5069
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5070 rbody = tbody.insertRow(tbody.rows.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5071 add_text_cell(rbody, "" + (site["seq"] + 1) + ".", "site_num");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5072 add_text_cell(rbody, sequence["name"], "site_name");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5073 add_text_cell(rbody, site["rc"] ? "-" : "+", "site_strand");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5074 add_text_cell(rbody, site["pos"] + 1, "site_start");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5075 add_text_cell(rbody, site["pvalue"].toExponential(2), "site_pvalue");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5076 add_text_cell(rbody, site["lflank"], "site lflank");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5077 add_cell(rbody, make_seq(meme_alphabet, site["match"]), "site match");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5078 add_text_cell(rbody, site["rflank"], "site rflank");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5079 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5080 return i;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5081 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5082
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5083 function make_site_entries() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5084 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5085 var region;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5086 region = this;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5087 if (region.data_site_index >= region.data_motif["sites"].length) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5088 // all sites created
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5089 region.removeEventListener('scroll', make_site_entries, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5090 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5091 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5092 // if there's still 100 pixels to scroll than don't do anything yet
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5093 if (region.scrollHeight - (region.scrollTop + region.offsetHeight) > 100) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5094 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5095 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5096
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5097 region.data_site_index = append_site_entries(
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5098 find_child(region, "sites_tbl").tBodies[0],
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5099 region.data_motif, region.data_site_index, 20
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5100 );
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5101 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5102
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5103 function make_sites(motif) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5104 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5105 function add_site_header(row, title, nopad, help_topic, tag_class) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5106 var div, divcp, th;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5107 th = document.createElement("th");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5108 div = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5109 div.className = "sites_th_inner";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5110 if (typeof title !== "object") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5111 title = document.createTextNode("" + title);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5112 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5113 div.appendChild(title);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5114 if (help_topic) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5115 div.appendChild(document.createTextNode("\xA0"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5116 div.appendChild(help_button(help_topic));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5117 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5118 divcp = div.cloneNode(true);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5119 divcp.className = "sites_th_hidden";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5120 th.appendChild(div);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5121 th.appendChild(divcp);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5122 if (nopad) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5123 th.className = "nopad";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5124 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5125 if (tag_class) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5126 th.className += " " + tag_class;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5127 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5128 row.appendChild(th);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5129 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5130 var outer_tbl, inner_tbl, tbl, thead, tbody, rhead;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5131
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5132 outer_tbl = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5133 outer_tbl.className = "sites_outer";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5134
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5135 inner_tbl = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5136 inner_tbl.className = "sites_inner";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5137 outer_tbl.appendChild(inner_tbl);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5138
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5139 tbl = document.createElement("table");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5140 tbl.className = "sites_tbl";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5141 inner_tbl.appendChild(tbl);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5142
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5143 thead = document.createElement("thead");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5144 tbl.appendChild(thead);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5145 tbody = document.createElement("tbody");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5146 tbl.appendChild(tbody);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5147
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5148 rhead = thead.insertRow(thead.rows.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5149 add_site_header(rhead, "", true);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5150 add_site_header(rhead, "Name", false, "pop_seq_name");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5151 add_site_header(rhead, "Strand", false, "pop_site_strand", "site_strand_title");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5152 add_site_header(rhead, "Start", false, "pop_site_start");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5153 add_site_header(rhead, make_pv_text(), false, "pop_site_pvalue");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5154 add_site_header(rhead, "", false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5155 add_site_header(rhead, "Sites", true, "pop_site_match");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5156 add_site_header(rhead, "", false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5157
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5158 inner_tbl.data_motif = motif;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5159 inner_tbl.data_site_index = append_site_entries(tbody, motif, 0, 20);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5160 if (inner_tbl.data_site_index < motif["sites"].length) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5161 inner_tbl.addEventListener('scroll', make_site_entries, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5162 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5163 return outer_tbl;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5164 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5165
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5166 function make_motif_table_entry(row, alphabet, ordinal, motif, colw) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5167 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5168 function ev_sig(evalue_str) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5169 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5170 var ev_re, match, sig, exp, num;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5171 ev_re = /^(.*)e(.*)$/;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5172 if (match = ev_re.exec(evalue_str)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5173 sig = parseFloat(match[1]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5174 exp = parseInt(match[2]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5175 if (exp >= 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5176 return false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5177 } else if (exp <= -3) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5178 return true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5179 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5180 return sig * Math.pow(10, exp) <= 0.05;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5181 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5182 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5183 return true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5184 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5185 function make_preview(alphabet, motif) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5186 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5187 var pspm, preview, preview_rc;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5188 var box, btn_box, logo_box, btn_plus, btn_minus;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5189 if (motif["preview_logo"]) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5190 preview = motif["preview_logo"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5191 preview_rc = motif["preview_logo_rc"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5192 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5193 pspm = new Pspm(motif["pwm"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5194 preview = make_logo(alphabet, pspm);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5195 motif["preview_logo"] = preview;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5196 if (alphabet.has_complement()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5197 preview_rc = make_logo(alphabet, pspm, true, 0, "logo_rc");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5198 motif["preview_logo_rc"] = preview_rc;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5199 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5200 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5201 if (preview_rc) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5202 btn_plus = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5203 btn_plus.appendChild(document.createTextNode("+"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5204 btn_plus.className = "preview_btn plus";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5205 btn_plus.tabIndex = "0";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5206 btn_plus.addEventListener("click", action_btn_rc, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5207 btn_plus.addEventListener("keydown", action_btn_rc, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5208 btn_minus = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5209 btn_minus.appendChild(document.createTextNode("-"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5210 btn_minus.className = "preview_btn minus";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5211 btn_minus.tabIndex = "0";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5212 btn_minus.addEventListener("click", action_btn_rc, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5213 btn_minus.addEventListener("keydown", action_btn_rc, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5214 btn_box = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5215 btn_box.className = "preview_btn_box";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5216 btn_box.appendChild(btn_plus);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5217 btn_box.appendChild(btn_minus);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5218 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5219 logo_box = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5220 logo_box.className = "preview_logo_box";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5221 logo_box.appendChild(preview);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5222 if (preview_rc) logo_box.appendChild(preview_rc);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5223 box = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5224 box.className = "preview_box";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5225 if (preview_rc) box.appendChild(btn_box);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5226 box.appendChild(logo_box);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5227 if (preview_rc) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5228 if (motif["rc"]) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5229 btn_minus.className += " active";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5230 logo_box.className += " show_rc_logo";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5231 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5232 btn_plus.className += " active";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5233 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5234 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5235 return box;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5236 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5237 var pspm, preview, preview_rc, c;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5238 row.data_motif = motif;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5239 row.data_ordinal = ordinal;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5240 if (!ev_sig(motif["evalue"])) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5241 row.style.opacity = 0.4;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5242 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5243 add_text_cell(row, "" + ordinal + ".", "motif_ordinal");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5244 add_cell(row, make_preview(alphabet, motif), "motif_logo");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5245 add_text_cell(row, motif["evalue"], "motif_evalue");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5246 add_text_cell(row, motif["nsites"], "motif_nsites");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5247 add_text_cell(row, motif["len"], "motif_width");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5248 add_cell(row, make_sym_btn("\u21A7", "Show more information.",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5249 action_show_more), "motif_more");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5250 add_cell(row,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5251 make_sym_btn("\u21E2",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5252 "Submit the motif to another MEME Suite program or download it.",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5253 action_show_outpop),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5254 "motif_submit");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5255 if (colw) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5256 for (c = 0; c < row.cells.length; c++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5257 row.cells[c].style.minWidth = colw[c] + "px";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5258 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5259 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5260 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5261
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5262 function make_motifs_table(alphabet, start_ordinal, motifs, colw, stop_reason) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5263 var i, j;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5264 var tbl, thead, tbody, tfoot, row, preview;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5265 var motif, pspm;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5266
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5267 tbl = document.createElement("table");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5268
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5269 thead = document.createElement("thead");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5270 tbl.appendChild(thead);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5271 tbody = document.createElement("tbody");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5272 tbl.appendChild(tbody);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5273 tfoot = document.createElement("tfoot");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5274 tbl.appendChild(tfoot);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5275
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5276 row = thead.insertRow(thead.rows.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5277 add_text_header_cell(row, "", "", "motif_ordinal");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5278 add_text_header_cell(row, "Logo", "", "motif_logo");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5279 add_text_header_cell(row, "E-value", "pop_ev", "motif_evalue");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5280 add_text_header_cell(row, "Sites", "pop_sites", "motif_nsites");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5281 add_text_header_cell(row, "Width", "pop_width", "motif_width");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5282 add_text_header_cell(row, "More", "pop_more", "motif_more");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5283 add_text_header_cell(row, "Submit/Download", "pop_submit_dl", "motif_submit");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5284
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5285 for (i = 0; i < motifs.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5286 row = tbody.insertRow(tbody.rows.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5287 make_motif_table_entry(row, alphabet, start_ordinal + i, motifs[i], colw);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5288 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5289
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5290 row = tfoot.insertRow(tfoot.rows.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5291 add_text_header_cell(row, stop_reason, "", "stop_reason", "", 6);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5292
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5293 return tbl;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5294 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5295
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5296 function make_expanded_motif(alphabet, ordinal, motif, less_x, submit_x) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5297 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5298 var box, pspm, logo_box, large_logo, large_logo_rc, tab_logo, tab_logo_rc;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5299 var btn, offset, norc;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5300
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5301 box = clone_template("tmpl_motif_expanded");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5302 box.data_motif = motif;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5303 box.data_ordinal = ordinal;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5304
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5305 pspm = new Pspm(motif["pwm"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5306 if (typeof motif["rc"] !== "boolean") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5307 motif["rc"] = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5308 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5309 if (motif["large_logo"]) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5310 large_logo = motif["large_logo"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5311 large_logo_rc = motif["large_logo_rc"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5312 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5313 large_logo = make_large_logo(alphabet, pspm, false, 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5314 motif["large_logo"] = large_logo;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5315 if (alphabet.has_complement()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5316 large_logo_rc = make_large_logo(alphabet, pspm, true, 0, "logo_rc");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5317 motif["large_logo_rc"] = large_logo_rc;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5318 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5319 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5320 norc = (large_logo_rc == null);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5321 toggle_class(box, "norc", norc);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5322
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5323 logo_box = find_child(box, "tvar_logo");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5324 logo_box.appendChild(large_logo);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5325 if (large_logo_rc) logo_box.appendChild(large_logo_rc);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5326 toggle_class(logo_box, "show_rc_logo", motif["rc"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5327
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5328 tab_logo = find_child(box, "tvar_tab");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5329 tab_logo_rc = find_child(box, "tvar_tab_rc");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5330
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5331 toggle_class(tab_logo, "activeTab", !motif["rc"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5332 toggle_class(tab_logo_rc, "activeTab", motif["rc"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5333
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5334 tab_logo.addEventListener('click', action_rc_tab, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5335 tab_logo.addEventListener('keydown', action_rc_tab, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5336 tab_logo_rc.addEventListener('click', action_rc_tab, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5337 tab_logo_rc.addEventListener('keydown', action_rc_tab, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5338
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5339 set_tvar(box, "tvar_ordinal", ordinal);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5340 set_tvar(box, "tvar_evalue", motif["evalue"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5341 set_tvar(box, "tvar_width", motif["len"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5342 set_tvar(box, "tvar_site_count", motif["nsites"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5343 set_tvar(box, "tvar_llr", motif["llr"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5344 set_tvar(box, "tvar_ic", motif["ic"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5345 set_tvar(box, "tvar_re", motif["re"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5346 set_tvar(box, "tvar_bt", motif["bt"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5347 set_tvar(box, "tvar_sites", make_sites(motif));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5348
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5349 offset = 32; // 1* 5px padding + 2 * 10px padding + 2 * 2px border + 3px ??
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5350
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5351 btn = find_child(box, "tvar_less");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5352 btn.style.left = (less_x - offset) + "px";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5353 btn.addEventListener('click', action_show_less, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5354 btn.addEventListener('keydown', action_show_less, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5355 btn = find_child(box, "tvar_submit");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5356 btn.style.left = (submit_x - offset) + "px";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5357 btn.addEventListener('click', action_show_outpop, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5358 btn.addEventListener('keydown', action_show_outpop, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5359 return box;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5360 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5361
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5362
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5363 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5364 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5365 ///
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5366 function make_motifs() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5367 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5368 function pixel_value(str_in) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5369 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5370 var px_re, match;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5371 px_re = /^(\d+)px$/;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5372 if (match = px_re.exec(str_in)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5373 return parseInt(match[1], 10);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5374 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5375 return 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5376 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5377 var container, tbl;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5378 var colw, r, row, c, cell, cell_style, pad_left, pad_right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5379
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5380 // make the motifs table
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5381 container = $("motifs");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5382 container.innerHTML = ""; // clear content
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5383
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5384 tbl = make_motifs_table(meme_alphabet, 1, data["motifs"], colw, data["stop_reason"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5385 container.appendChild(tbl);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5386
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5387 // measure table column widths
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5388 colw = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5389 row = tbl.tBodies[0].rows[0];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5390 for (c = 0; c < row.cells.length; c++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5391 var padLeft, padRight;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5392 cell = row.cells[c];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5393 cell_style = window.getComputedStyle(cell, null);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5394 pad_left = pixel_value(cell_style.getPropertyValue("padding-left"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5395 pad_right = pixel_value(cell_style.getPropertyValue("padding-right"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5396 colw[c] = cell.clientWidth - pad_left - pad_right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5397 if (typeof colw[c] !== "number" || colw[c] < 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5398 colw[c] = 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5399 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5400 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5401
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5402 // set minimum table column widths on each row so later when we remove rows it still aligns
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5403 for (r = 0; r < tbl.tBodies[0].rows.length; r++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5404 row = tbl.tBodies[0].rows[r];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5405 for (c = 0; c < row.cells.length; c++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5406 row.cells[c].style.minWidth = colw[c] + "px";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5407 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5408 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5409
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5410 // store the table column widths so we can create rows latter with the same minimums
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5411 container.data_colw = colw;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5412
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5413 // calculate the x offset for the buttons
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5414 row = tbl.tBodies[0].rows[0];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5415 container.data_more_x = coords(find_child(find_child(row, "motif_more"), "sym_btn"))[0];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5416 container.data_submit_x = coords(find_child(find_child(row, "motif_submit"), "sym_btn"))[0];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5417
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5418 draw_on_screen();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5419 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5420
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5421 function make_meme_block(container, max_seq_len, is_scan, site) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5422 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5423 var motif = data.motifs[site.motif];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5424 var block = make_block(container, max_seq_len, site.pos, motif.len,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5425 site.pvalue, site.rc, site.motif, is_scan);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5426 var handler = (is_scan ?
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5427 make_scan_popup(site, motif, block) :
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5428 make_block_popup(site, motif, block));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5429 block.addEventListener("mouseover", handler, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5430 block.addEventListener("mouseout", handler, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5431 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5432
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5433 function append_blocks_entries(tbody, seq_index, count) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5434 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5435 var i, end, j;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5436 var max_pvalue, max_block_height, max_seq_len, sequences;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5437 var sequence, sites, scans, scan;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5438 var container, plus, minus, rule, row;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5439 // define some constants
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5440 max_seq_len = data.sequence_db.max_length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5441 // determine how many to load
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5442 end = Math.min(seq_index + count, data.sequence_db.sequences.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5443 for (i = seq_index; i < end; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5444 // get the sequence
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5445 sequence = data.sequence_db.sequences[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5446 // make the containers for the block diagram
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5447 container = make_block_container(meme_alphabet.has_complement(),
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5448 data.options.revcomp, max_seq_len, sequence.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5449 // create blocks for the motif sites
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5450 sites = sequence["sites"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5451 for (j = 0; j < sites.length; j++)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5452 make_meme_block(container, max_seq_len, false, sites[j]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5453 // create blocks for the scanned sites
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5454 scan = data.scan[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5455 for (j = 0; j < scan.sites.length; j++)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5456 make_meme_block(container, max_seq_len, true, scan.sites[j]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5457 // create a row for the sequence
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5458 row = tbody.insertRow(tbody.rows.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5459 toggle_class(row, "empty_seq", sites.length == 0 && scan.sites.length == 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5460 toggle_class(row, "only_scan", sites.length == 0 && scan.sites.length > 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5461 add_text_cell(row, (i + 1) + ".", "blockdiag_num");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5462 add_text_cell(row, sequence["name"], "blockdiag_name");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5463 add_text_cell(row, scan["pvalue"].toExponential(2), "blockdiag_pvalue");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5464 add_cell(row, container, "block_td");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5465 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5466 return end;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5467 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5468
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5469 function make_blocks_entries() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5470 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5471 var region;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5472 region = this;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5473 if (region.data_blocks_index >= data["sequence_db"]["sequences"].length) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5474 // all sites created
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5475 region.removeEventListener('scroll', make_blocks_entries, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5476 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5477 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5478 // if there's still 100 pixels to scroll than don't do anything yet
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5479 if (region.scrollHeight - (region.scrollTop + region.offsetHeight) > 100) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5480 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5481 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5482
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5483 region.data_blocks_index = append_blocks_entries(
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5484 find_child(region, "blocks_tbl").tBodies[0],
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5485 region.data_blocks_index, 20
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5486 );
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5487 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5488
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5489 function make_blocks() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5490 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5491 function add_seqs_filter(container, id, checked, label_text, help_topic) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5492 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5493 var label, radio;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5494 radio = document.createElement("input");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5495 radio.type = "radio";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5496 radio.name = "seqs_display";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5497 radio.id = id;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5498 radio.checked = checked;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5499 radio.addEventListener('click', action_seqs_filter, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5500 label = document.createElement("label");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5501 label.appendChild(document.createTextNode(label_text));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5502 label.htmlFor = id;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5503 container.appendChild(radio);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5504 container.appendChild(label);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5505 if (help_topic) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5506 container.appendChild(document.createTextNode("\xA0"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5507 container.appendChild(help_button(help_topic));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5508 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5509 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5510 function add_blocks_header(row, title, nopad, help_topic) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5511 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5512 var div, divcp, th;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5513 th = document.createElement("th");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5514 div = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5515 div.className = "blocks_th_inner";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5516 if (typeof title !== "object") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5517 title = document.createTextNode("" + title);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5518 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5519 div.appendChild(title);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5520 if (help_topic) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5521 div.appendChild(document.createTextNode("\xA0"));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5522 div.appendChild(help_button(help_topic));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5523 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5524 divcp = div.cloneNode(true);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5525 divcp.className = "blocks_th_hidden";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5526 th.appendChild(div);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5527 th.appendChild(divcp);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5528 if (nopad) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5529 th.className = "nopad";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5530 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5531 row.appendChild(th);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5532 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5533 var container;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5534 var page, view_height, outer_tbl, inner_tbl, tbl, thead, tbody, rhead;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5535 var in_view, i, seq_count;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5536
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5537 page = (document.compatMode === "CSS1Compat") ? document.documentElement : document.body;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5538 view_height = Math.max(page.clientHeight - 300, 300);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5539
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5540 container = $("blocks");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5541 toggle_class(container, "hide_empty_seqs", true);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5542 toggle_class(container, "hide_only_scan", true);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5543 container.innerHTML = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5544 add_seqs_filter(container, "rdo_sites_only", true, "Only Motif Sites", "pop_motif_sites");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5545 add_seqs_filter(container, "rdo_sites_and_scan", false, "Motif Sites+Scanned Sites", "pop_scanned_sites");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5546 add_seqs_filter(container, "rdo_all_seqs", false, "All Sequences", "pop_all_sequences");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5547
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5548 outer_tbl = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5549 outer_tbl.className = "blocks_outer";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5550
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5551 inner_tbl = document.createElement("div");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5552 inner_tbl.id = "blocks_scroll";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5553 inner_tbl.className = "blocks_inner";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5554 inner_tbl.style.maxHeight = view_height + "px";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5555 outer_tbl.appendChild(inner_tbl);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5556
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5557 tbl = document.createElement("table");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5558 tbl.className = "blocks_tbl";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5559 inner_tbl.appendChild(tbl);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5560
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5561 thead = document.createElement("thead");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5562 tbl.appendChild(thead);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5563 tbody = document.createElement("tbody");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5564 tbl.appendChild(tbody);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5565
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5566 rhead = thead.insertRow(thead.rows.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5567 add_blocks_header(rhead, "", true);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5568 add_blocks_header(rhead, "Name", false, "pop_seq_name");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5569 add_blocks_header(rhead, make_pv_text(), false, "pop_seq_pvalue");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5570 add_blocks_header(rhead, "Motif Location", false, "pop_motif_location");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5571
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5572 container.appendChild(outer_tbl);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5573
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5574
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5575 seq_count = data["sequence_db"]["sequences"].length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5576 in_view = Math.max(Math.ceil(view_height / 25), 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5577 i = append_blocks_entries(tbody, 0, in_view);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5578
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5579 while (i < seq_count && inner_tbl.scrollHeight - (inner_tbl.scrollTop + inner_tbl.offsetHeight) < 400) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5580 i = append_blocks_entries(tbody, i, 20);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5581 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5582 inner_tbl.data_blocks_index = i;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5583 if (i < seq_count) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5584 inner_tbl.addEventListener('scroll', make_blocks_entries, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5585 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5586 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5587
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5588 function make_scan_popup(site, motif) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5589 return function (e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5590 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5591 var pop, xy, padding, edge_padding, pop_left, pop_top, page_width;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5592 var lflank, match, rflank, pspm;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5593 if (!e) var e = window.event;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5594 pop = make_scan_popup.pop;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5595 if (e.type === "mouseover") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5596 if (pop) return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5597 pop = clone_template("tmpl_scan_info");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5598 pspm = new Pspm(motif.pwm);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5599 if (site.rc) pspm.reverse_complement(meme_alphabet);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5600 set_tvar(pop, "tvar_logo", make_small_logo(meme_alphabet, pspm, {"className": "scan_logo"}));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5601 set_tvar(pop, "tvar_motif", motif.id);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5602 set_tvar(pop, "tvar_pvalue", site.pvalue.toExponential(2));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5603 set_tvar(pop, "tvar_start", site.pos + 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5604 set_tvar(pop, "tvar_end", site.pos + motif.len);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5605
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5606 document.body.appendChild(pop);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5607 position_popup(this, pop);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5608 make_scan_popup.pop = pop;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5609 } else if (e.type === "mouseout") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5610 if (pop) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5611 pop.parentNode.removeChild(pop);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5612 make_scan_popup.pop = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5613 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5614 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5615 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5616 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5617
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5618 function make_block_popup(site, motif, block) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5619 return function (e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5620 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5621 var pop;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5622 var lflank, match, rflank, pspm, ruler, match_seq, match_width;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5623 if (!e) var e = window.event;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5624 pop = make_block_popup.pop;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5625 if (e.type === "mouseover") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5626 if (pop) return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5627 pop = clone_template("tmpl_block_info");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5628 pspm = new Pspm(motif.pwm);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5629 if (site.rc) { // must be dna
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5630 pspm.reverse_complement(meme_alphabet);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5631 lflank = meme_alphabet.invcomp_seq(site.rflank);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5632 match = meme_alphabet.invcomp_seq(site.match);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5633 rflank = meme_alphabet.invcomp_seq(site.lflank);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5634 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5635 lflank = site.lflank;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5636 match = site.match;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5637 rflank = site.rflank;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5638 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5639 ruler = document.getElementById("measure_match");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5640 match_seq = make_seq(meme_alphabet, match);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5641 ruler.innerHTML = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5642 ruler.appendChild(match_seq);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5643 match_width = ruler.clientWidth;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5644 ruler.removeChild(match_seq);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5645 set_tvar(pop, "tvar_lflank", lflank);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5646 set_tvar(pop, "tvar_match", match_seq);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5647 set_tvar(pop, "tvar_rflank", rflank);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5648 set_tvar(pop, "tvar_logo_pad", lflank);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5649 set_tvar(pop, "tvar_logo", make_small_logo(meme_alphabet, pspm, {"width": match_width}));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5650 set_tvar(pop, "tvar_motif", motif.id);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5651 set_tvar(pop, "tvar_pvalue", site.pvalue.toExponential(2));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5652 set_tvar(pop, "tvar_start", site.pos + 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5653 set_tvar(pop, "tvar_end", site.pos + motif.len);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5654
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5655 document.body.appendChild(pop);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5656 position_popup(block, pop);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5657 make_block_popup.pop = pop;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5658 } else if (e.type === "mouseout") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5659 if (pop) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5660 pop.parentNode.removeChild(pop);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5661 make_block_popup.pop = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5662 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5663 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5664 };
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5665 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5666
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5667 function update_outpop_format(index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5668 switch(parseInt($("text_format").value)) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5669 case 0: // count matrix
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5670 $("outpop_text").value = motif_count_matrix(index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5671 $("text_name").value = "motif_" + (index + 1) + "_counts.txt";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5672 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5673 case 1: // prob matrix
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5674 $("outpop_text").value = motif_prob_matrix(index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5675 $("text_name").value = "motif_" + (index + 1) + "_freqs.txt";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5676 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5677 case 2: // minimal meme
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5678 $("outpop_text").value = motif_minimal_meme(index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5679 $("text_name").value = "motif_" + (index + 1) + ".txt";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5680 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5681 case 3: // fasta
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5682 $("outpop_text").value = motif_fasta(index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5683 $("text_name").value = "motif_" + (index + 1) + "_fasta.txt";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5684 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5685 case 4: // raw
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5686 $("outpop_text").value = motif_raw(index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5687 $("text_name").value = "motif_" + (index + 1) + "_raw.txt";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5688 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5689 default:
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5690 throw new Error("Unknown motif format");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5691 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5692 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5693
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5694 function update_outpop_motif(index) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5695 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5696 var motifs, motif, pspm, logo, canvas, num;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5697 motifs = data["motifs"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5698 if (index < 0 || index >= motifs.length) {return;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5699 current_motif = index;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5700 motif = motifs[index];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5701 pspm = new Pspm(motif["pwm"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5702 logo = new Logo(meme_alphabet, "");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5703 logo.add_pspm(pspm, 0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5704 canvas = $("outpop_logo");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5705 canvas.width = canvas.width; // clear canvas
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5706 draw_logo_on_canvas(logo, canvas, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5707 if (meme_alphabet.has_complement()) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5708 pspm.reverse_complement(meme_alphabet);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5709 logo = new Logo(meme_alphabet, "");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5710 canvas = $("outpop_logo_rc");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5711 canvas.width = canvas.width; // clear canvas
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5712 draw_logo_on_canvas(logo, canvas, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5713 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5714 num = $("outpop_num");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5715 num.innerHTML = "";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5716 num.appendChild(document.createTextNode("" + (index + 1)));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5717 update_outpop_format(index);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5718 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5719
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5720 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5721 // action_show_more
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5722 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5723 // Show more information on the motif.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5724 ///
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5725 function action_show_more(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5726 var node, tr, tbody, table, container, motif, ordinal;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5727 var expanded_motif;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5728 if (!e) e = window.event;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5729 if (e.type === "keydown") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5730 if (e.keyCode !== 13 && e.keyCode !== 32) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5731 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5732 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5733 // stop a submit or something like that
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5734 e.preventDefault();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5735 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5736 // find the row that contains the cell
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5737 node = this;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5738 do {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5739 if (node.tagName === "TR") break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5740 } while (node = node.parentNode);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5741 if (!node) throw new Error("Expected to find row!?");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5742 tr = node;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5743 // get info
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5744 motif = tr.data_motif;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5745 ordinal = tr.data_ordinal;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5746 // find tbody
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5747 do {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5748 if (node.tagName === "TBODY") break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5749 } while (node = node.parentNode);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5750 if (!node) throw new Error("Expected to find tbody!?");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5751 tbody = node;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5752 // find table
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5753 do {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5754 if (node.tagName === "TABLE") break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5755 } while (node = node.parentNode);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5756 if (!node) throw new Error("Expected to find table!?");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5757 table = node;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5758 // find container
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5759 container = node.parentNode;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5760 // make a expanded motif
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5761 motif["expanded"] = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5762 expanded_motif = make_expanded_motif(meme_alphabet, ordinal, motif,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5763 container.data_more_x, container.data_submit_x);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5764 // now determine how to place it
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5765 if (tbody.rows.length === 1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5766 // only us in the table so the table can be replaced
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5767 container.replaceChild(expanded_motif, table);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5768 } else if (tbody.rows[0] === tr) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5769 // first row, so remove and insert an expanded motif before
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5770 table.deleteRow(tr.rowIndex);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5771 container.insertBefore(expanded_motif, table);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5772 } else if (tbody.rows[tbody.rows.length -1] === tr) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5773 // last row, so remove and insert an expanded motif after
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5774 table.deleteRow(tr.rowIndex);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5775 container.insertBefore(expanded_motif, table.nextSibling);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5776 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5777 var table2, tbody2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5778 table2 = table.cloneNode(false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5779 table2.appendChild(table.tHead.cloneNode(true));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5780 tbody2 = table.tBodies[0].cloneNode(false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5781 table2.appendChild(tbody2);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5782 container.insertBefore(table2, table.nextSibling);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5783 for (i = tbody.rows.length - 1; i >= 0; i--) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5784 row = tbody.rows[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5785 row.parentNode.removeChild(row);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5786 if (row === tr) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5787 break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5788 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5789 tbody2.insertBefore(row, tbody2.rows[0]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5790 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5791 container.insertBefore(expanded_motif, table2);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5792 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5793 find_child(expanded_motif, "tvar_less").focus();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5794 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5795
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5796 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5797 // action_show_less
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5798 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5799 // Show less information on the motif.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5800 ///
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5801 function action_show_less(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5802 var btn;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5803 var expanded_motif, container, motif, ordinal, colw, focus_target;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5804 var table, tbody, tbody2, row, table_before, table_after;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5805 if (!e) e = window.event;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5806 if (e.type === "keydown") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5807 if (e.keyCode !== 13 && e.keyCode !== 32) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5808 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5809 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5810 // stop a submit or something like that
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5811 e.preventDefault();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5812 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5813 btn = this;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5814 // find expanded motif
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5815 expanded_motif = find_parent(btn, "expanded_motif");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5816 if (!expanded_motif) throw new Error("Expected expanded motif.");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5817 // find the container
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5818 container = expanded_motif.parentNode;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5819 // get data
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5820 motif = expanded_motif.data_motif;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5821 ordinal = expanded_motif.data_ordinal;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5822 colw = container.data_colw;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5823 // get the table before
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5824 table_before = expanded_motif.previousSibling;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5825 if (table_before && table_before.tagName !== "TABLE") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5826 table_before = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5827 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5828 // get the table after
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5829 table_after = expanded_motif.nextSibling;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5830 if (table_after && table_after.tagName !== "TABLE") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5831 table_after = null;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5832 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5833 // see if there is a table below or above that we can put this in.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5834 // if there is a table both below and above then add this motif and
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5835 // all ones below to the above table
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5836 motif["expanded"] = false;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5837 if (table_before && table_after) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5838 tbody = table_before.tBodies[0];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5839 row = tbody.insertRow(tbody.rows.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5840 make_motif_table_entry(row, meme_alphabet, ordinal, motif, colw);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5841 focus_target = find_child(row.cells[5], "sym_btn");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5842 container.removeChild(expanded_motif);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5843 tbody2 = table_after.tBodies[0];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5844 while (tbody2.rows.length > 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5845 row = tbody2.rows[0];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5846 row.parentNode.removeChild(row);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5847 tbody.appendChild(row);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5848 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5849 container.removeChild(table_after);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5850 } else if (table_before) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5851 tbody = table_before.tBodies[0];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5852 row = tbody.insertRow(tbody.rows.length);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5853 make_motif_table_entry(row, meme_alphabet, ordinal, motif, colw);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5854 focus_target = find_child(row.cells[5], "sym_btn");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5855 container.removeChild(expanded_motif);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5856 } else if (table_after) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5857 tbody = table_after.tBodies[0];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5858 row = tbody.insertRow(0);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5859 make_motif_table_entry(row, meme_alphabet, ordinal, motif, colw);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5860 focus_target = find_child(row.cells[5], "sym_btn");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5861 container.removeChild(expanded_motif);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5862 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5863 //no table above or below!
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5864 // make a new table
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5865 table = make_motifs_table(meme_alphabet, ordinal, [motif], colw, data["stop_reason"]);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5866 focus_target = find_child(table.tBodies[0].rows[0].cells[5], "sym_btn");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5867 container.replaceChild(table, expanded_motif);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5868 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5869 focus_target.focus();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5870 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5871
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5872 function action_show_outpop(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5873 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5874 function init() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5875 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5876 var close_btn, next_btn, prev_btn, cancel_btn, do_btn;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5877 var tab1, tab2, tab3;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5878 var pnl1, pnl2, pnl3;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5879 var format_list;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5880 var tbl_submit, inputs, i, default_prog;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5881 close_btn = $("outpop_close");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5882 close_btn.addEventListener("click", action_hide_outpop, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5883 close_btn.addEventListener("keydown", action_hide_outpop, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5884 next_btn = $("outpop_next");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5885 next_btn.addEventListener("click", action_outpop_next, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5886 next_btn.addEventListener("keydown", action_outpop_next, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5887 prev_btn = $("outpop_prev");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5888 prev_btn.addEventListener("click", action_outpop_prev, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5889 prev_btn.addEventListener("keydown", action_outpop_prev, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5890 cancel_btn = $("outpop_cancel");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5891 cancel_btn.addEventListener("click", action_hide_outpop, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5892 do_btn = $("outpop_do");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5893 do_btn.addEventListener("click", action_outpop_submit, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5894 tab1 = $("outpop_tab_1");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5895 tab1.tabIndex = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5896 tab1.addEventListener("click", action_outpop_tab, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5897 tab1.addEventListener("keydown", action_outpop_tab, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5898 tab2 = $("outpop_tab_2");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5899 tab2.tabIndex = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5900 tab2.addEventListener("click", action_outpop_tab, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5901 tab2.addEventListener("keydown", action_outpop_tab, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5902 tab3 = $("outpop_tab_3");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5903 tab3.tabIndex = 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5904 tab3.addEventListener("click", action_outpop_tab, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5905 tab3.addEventListener("keydown", action_outpop_tab, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5906 pnl1 = $("outpop_pnl_1");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5907 pnl2 = $("outpop_pnl_2");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5908 pnl3 = $("outpop_pnl_3");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5909 toggle_class(tab1, "activeTab", true);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5910 toggle_class(tab2, "activeTab", false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5911 toggle_class(tab3, "activeTab", false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5912 pnl1.style.display = "block";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5913 pnl2.style.display = "none";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5914 pnl3.style.display = "none";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5915 format_list = $("text_format");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5916 format_list.addEventListener("change", action_outpop_format, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5917 // setup program selection
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5918 tbl_submit = $("programs");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5919 // when not dna, hide the inputs for programs that require dna motifs
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5920 toggle_class(tbl_submit, "alphabet_dna", meme_alphabet.has_complement());//TODO FIXME alphabet_dna is a bad name for a field when allowing custom alphabets
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5921 // add a click listener for the radio buttons
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5922 inputs = tbl_submit.querySelectorAll("input[type='radio']");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5923 for (i = 0; i < inputs.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5924 inputs[i].addEventListener("click", action_outpop_program, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5925 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5926 // ensure that a default program option is selected for DNA and Protein
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5927 default_prog = document.getElementById(meme_alphabet.has_complement() ? "submit_tomtom" : "submit_fimo"); //TODO FIXME Tomtom might require a more strict definition of DNA
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5928 default_prog.checked = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5929 action_outpop_program.call(default_prog);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5930 // disable reverse-complement when not DNA
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5931 $("logo_rc_option").disabled = !meme_alphabet.has_complement();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5932 // set errorbars on when ssc is on
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5933 $("logo_ssc").addEventListener("change", action_outpop_ssc, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5934 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5935 var node;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5936 // store the focused element
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5937 action_hide_outpop.last_active = document.activeElement;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5938 if (!e) e = window.event;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5939 if (e.type === "keydown") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5940 if (e.keyCode !== 13 && e.keyCode !== 32) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5941 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5942 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5943 // stop a submit or something like that
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5944 e.preventDefault();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5945 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5946 // hide the help popup
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5947 help_popup();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5948 // on first load initilize the popup
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5949 if (!action_show_outpop.ready) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5950 init();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5951 action_show_outpop.ready = true;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5952 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5953 // load the motif logo
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5954 node = this;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5955 do {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5956 if (/\bexpanded_motif\b/.test(node.className) || node.tagName === "TR") break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5957 } while (node = node.parentNode);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5958 if (node === null) throw new Error("Expected node!");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5959 update_outpop_motif(node.data_ordinal - 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5960 // display the download popup
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5961 $("grey_out_page").style.display = "block";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5962 $("download").style.display = "block";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5963 $("outpop_close").focus();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5964 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5965
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5966 function action_hide_outpop(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5967 if (!e) e = window.event;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5968 if (e.type === "keydown") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5969 if (e.keyCode !== 13 && e.keyCode !== 32) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5970 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5971 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5972 // stop a submit or something like that
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5973 e.preventDefault();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5974 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5975 $("download").style.display = "none";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5976 $("grey_out_page").style.display = "none";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5977 if (typeof action_hide_outpop.last_active !== "undefined") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5978 action_hide_outpop.last_active.focus();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5979 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5980 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5981
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5982 function action_outpop_next(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5983 if (!e) e = window.event;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5984 if (e.type === "keydown") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5985 if (e.keyCode !== 13 && e.keyCode !== 32) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5986 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5987 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5988 // stop a submit or something like that
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5989 e.preventDefault();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5990 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5991 update_outpop_motif(current_motif + 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5992 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5993
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5994 function action_outpop_prev(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5995 if (!e) e = window.event;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5996 if (e.type === "keydown") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5997 if (e.keyCode !== 13 && e.keyCode !== 32) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5998 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5999 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6000 // stop a submit or something like that
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6001 e.preventDefault();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6002 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6003 update_outpop_motif(current_motif - 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6004 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6005
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6006 function action_outpop_program() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6007 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6008 var table, tr, rows, i;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6009 tr = find_parent_tag(this, "TR");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6010 table = find_parent_tag(tr, "TABLE");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6011 rows = table.querySelectorAll("tr");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6012 for (i = 0; i < rows.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6013 toggle_class(rows[i], "selected", rows[i] === tr);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6014 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6015 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6016
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6017 function action_outpop_ssc() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6018 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6019 $("logo_err").value = $("logo_ssc").value;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6020 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6021
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6022 function action_outpop_submit(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6023 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6024 var form, input, program, motifs;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6025 // find out which program is selected
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6026 var radios, i;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6027 radios = document.getElementsByName("program");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6028 program = "fimo"; // default to fimo, since it works with all alphabet types
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6029 for (i = 0; i < radios.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6030 if (radios[i].checked) program = radios[i].value;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6031 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6032
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6033 motifs = motif_minimal_meme(current_motif);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6034 form = document.createElement("form");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6035 form.setAttribute("method", "post");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6036 form.setAttribute("action", site_url + "/tools/" + program);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6037
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6038 input = document.createElement("input");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6039 input.setAttribute("type", "hidden");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6040 input.setAttribute("name", "motifs_embed");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6041 input.setAttribute("value", motifs);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6042 form.appendChild(input);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6043
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6044 document.body.appendChild(form);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6045 form.submit();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6046 document.body.removeChild(form);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6047 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6048
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6049 function action_outpop_download_motif(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6050 $("text_form").submit();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6051 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6052
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6053 function action_outpop_download_logo(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6054 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6055 $("logo_motifs").value = motif_minimal_meme(current_motif);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6056 $("logo_form").submit();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6057 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6058
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6059 function action_btn_rc(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6060 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6061 var node, tr, motif, box, logo_box, tab_st, tab_rc, rc;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6062 if (!e) e = window.event;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6063 if (e.type === "keydown") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6064 if (e.keyCode !== 13 && e.keyCode !== 32) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6065 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6066 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6067 // stop a submit or something like that
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6068 e.preventDefault();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6069 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6070 node = this;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6071 do {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6072 if (node.tagName === "TR") break;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6073 } while (node = node.parentNode);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6074 if (!node) throw new Error("Expected to find row!?");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6075 tr = node;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6076 // get info
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6077 motif = tr.data_motif;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6078 box = find_parent(this, "preview_box");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6079 logo_box = find_child(box, "preview_logo_box");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6080 tab_st = find_child(box, "plus");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6081 tab_rc = find_child(box, "minus");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6082 rc = (this === tab_rc);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6083 motif["rc"] = rc;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6084 toggle_class(logo_box, "show_rc_logo", rc);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6085 toggle_class(tab_st, "active", !rc);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6086 toggle_class(tab_rc, "active", rc);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6087 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6088
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6089 function action_rc_tab(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6090 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6091 var box, logo_box, tab_st, tab_rc, rc;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6092 if (!e) e = window.event;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6093 if (e.type === "keydown") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6094 if (e.keyCode !== 13 && e.keyCode !== 32) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6095 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6096 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6097 // stop a submit or something like that
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6098 e.preventDefault();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6099 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6100 box = find_parent(this, "expanded_motif");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6101 logo_box = find_child(box, "tvar_logo");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6102 tab_st = find_child(box, "tvar_tab");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6103 tab_rc = find_child(box, "tvar_tab_rc");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6104 rc = (this === tab_rc);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6105 box.data_motif["rc"] = rc;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6106 toggle_class(logo_box, "show_rc_logo", rc);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6107 toggle_class(tab_st, "activeTab", !rc);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6108 toggle_class(tab_rc, "activeTab", rc);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6109 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6110
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6111 function action_outpop_tab(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6112 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6113 var tab1, tab2, tab3, pnl1, pnl2, pnl3, do_btn;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6114 if (!e) e = window.event;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6115 if (e.type === "keydown") {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6116 if (e.keyCode !== 13 && e.keyCode !== 32) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6117 return;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6118 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6119 // stop a submit or something like that
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6120 e.preventDefault();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6121 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6122 tab1 = $("outpop_tab_1");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6123 tab2 = $("outpop_tab_2");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6124 tab3 = $("outpop_tab_3");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6125 pnl1 = $("outpop_pnl_1");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6126 pnl2 = $("outpop_pnl_2");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6127 pnl3 = $("outpop_pnl_3");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6128 do_btn = $("outpop_do");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6129
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6130 toggle_class(tab1, "activeTab", (this === tab1));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6131 toggle_class(tab2, "activeTab", (this === tab2));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6132 toggle_class(tab3, "activeTab", (this === tab3));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6133 pnl1.style.display = ((this === tab1) ? "block" : "none");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6134 pnl2.style.display = ((this === tab2) ? "block" : "none");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6135 pnl3.style.display = ((this === tab3) ? "block" : "none");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6136 do_btn.value = ((this === tab1) ? "Submit" : "Download");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6137 do_btn.removeEventListener("click", action_outpop_submit, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6138 do_btn.removeEventListener("click", action_outpop_download_logo, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6139 do_btn.removeEventListener("click", action_outpop_download_motif, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6140 if (this === tab1) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6141 do_btn.addEventListener("click", action_outpop_submit, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6142 } else if (this === tab2) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6143 do_btn.addEventListener("click", action_outpop_download_motif, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6144 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6145 do_btn.addEventListener("click", action_outpop_download_logo, false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6146 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6147 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6148
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6149 function action_seqs_filter() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6150 "use strict";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6151 var block_container;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6152 block_container = $("blocks");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6153 if ($("rdo_all_seqs").checked) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6154 toggle_class(block_container, "hide_empty_seqs", false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6155 toggle_class(block_container, "hide_only_scan", false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6156 } else if ($("rdo_sites_and_scan").checked) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6157 toggle_class(block_container, "hide_empty_seqs", true);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6158 toggle_class(block_container, "hide_only_scan", false);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6159 } else if ($("rdo_sites_only").checked) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6160 toggle_class(block_container, "hide_empty_seqs", true);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6161 toggle_class(block_container, "hide_only_scan", true);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6162 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6163 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6164
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6165 function action_outpop_format() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6166 update_outpop_format(current_motif);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6167 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6168
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6169 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6170 // page_loaded
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6171 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6172 // Called when the page has loaded for the first time.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6173 ///
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6174 function page_loaded() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6175 post_load_setup();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6176 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6177
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6178 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6179 // page_loaded
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6180 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6181 // Called when a cached page is reshown.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6182 ///
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6183 function page_shown(e) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6184 if (e.persisted) post_load_setup();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6185 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6186
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6187 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6188 // page_loaded
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6189 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6190 // Called when the page is resized
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6191 ///
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6192 function page_resized() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6193 var page, blocks_scroll;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6194 update_scroll_pad();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6195 page = (document.compatMode === "CSS1Compat") ? document.documentElement : document.body;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6196 blocks_scroll = $("blocks_scroll");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6197 if (blocks_scroll) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6198 blocks_scroll.style.maxHeight = Math.max(page.clientHeight - 300, 300) + "px";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6199 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6200 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6201
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6202 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6203 // pre_load_setup
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6204 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6205 // Run before the page is displayed
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6206 ///
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6207 function pre_load_setup() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6208 var start, hue, sat, light, divisions;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6209 var i, j, motifs, motif, sites, site, sequences, sequence;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6210 var max_seq_len;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6211 motifs = data["motifs"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6212 sequences = data["sequence_db"]["sequences"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6213 max_seq_len = 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6214 for (i = 0; i < sequences.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6215 sequence = sequences[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6216 sequence["sites"] = [];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6217 if (sequence["length"] > max_seq_len) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6218 max_seq_len = sequence["length"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6219 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6220 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6221 data["sequence_db"]["max_length"] = max_seq_len;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6222 // use hsl colours
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6223 start = 0; //red
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6224 sat = 100;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6225 light = 50;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6226 for (i = 0; i < motifs.length; i++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6227 motif = motifs[i];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6228 // give the motif a colour
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6229 divisions = 1 << Math.ceil(Math.log(i + 1) / Math.LN2);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6230 hue = start + (360 / divisions) * ((i - (divisions >> 1)) * 2 + 1);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6231 motif["colour"] = "hsl(" + hue + ", " + sat + "%, " + light + "%)";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6232 // associate sites with sequences as well
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6233 // to make generating the block diagram easier
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6234 sites = motif["sites"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6235 for (j = 0; j < sites.length; j++) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6236 site = sites[j];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6237 sequence = sequences[site["seq"]];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6238 // record the motif index
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6239 site["motif"] = i;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6240 // add the site to the sequence
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6241 sequence["sites"].push(site);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6242 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6243 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6244 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6245
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6246 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6247 // post_load_setup
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6248 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6249 // Run when the page has loaded, or been reloaded.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6250 //
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6251 function post_load_setup() {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6252 update_scroll_pad();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6253 if (data["motifs"].length > 0) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6254 make_motifs();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6255 make_blocks();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6256 } else {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6257 $("motifs").innerHTML = "<p>No significant motifs found!</p>"; // clear content
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6258 $("motifs").innerHTML += "<p><b>" + data["stop_reason"] + "</b></p>";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6259 $("blocks").innerHTML = "<p>No significant motifs found!</p>";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6260 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6261 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6262
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6263 pre_load_setup();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6264 </script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6265 <style>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6266 /* The following is the content of meme.css */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6267 body { background-color:white; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6268
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6269 div.help {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6270 display: inline-block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6271 margin: 0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6272 padding: 0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6273 width: 12px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6274 height: 13px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6275 cursor: pointer;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6276 background-image: url(data:image/gif;base64,R0lGODlhDAANAIABANR0AP///yH5BAEAAAEALAAAAAAMAA0AAAIdhI8Xy22MIFgv1DttrrJ7mlGNNo4c+aFg6SQuUAAAOw==);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6277 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6278
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6279 div.help:hover {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6280 background-image: url(data:image/gif;base64,R0lGODlhDAANAKEAANR0AP///9R0ANR0ACH+EUNyZWF0ZWQgd2l0aCBHSU1QACH5BAEAAAIALAAAAAAMAA0AAAIdDGynCe3PgoxONntvwqz2/z2K2ImjR0KhmSIZUgAAOw==);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6281 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6282
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6283 p.spaced { line-height: 1.8em;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6284
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6285 span.citation { font-family: "Book Antiqua", "Palatino Linotype", serif; color: #004a4d;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6286
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6287 p.pad { padding-left: 30px; padding-top: 5px; padding-bottom: 10px;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6288
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6289 td.jump { font-size: 13px; color: #ffffff; background-color: #00666a;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6290 font-family: Georgia, "Times New Roman", Times, serif;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6291
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6292 a.jump { margin: 15px 0 0; font-style: normal; font-variant: small-caps;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6293 font-weight: bolder; font-family: Georgia, "Times New Roman", Times, serif;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6294
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6295 h2.mainh {font-size: 1.5em; font-style: normal; margin: 15px 0 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6296 font-variant: small-caps; font-family: Georgia, "Times New Roman", Times, serif;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6297
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6298 h2.line {border-bottom: 1px solid #CCCCCC; font-size: 1.5em; font-style: normal;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6299 margin: 15px 0 0; padding-bottom: 3px; font-variant: small-caps;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6300 font-family: Georgia, "Times New Roman", Times, serif;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6301
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6302 h4 {border-bottom: 1px solid #CCCCCC; font-size: 1.2em; font-style: normal;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6303 margin: 10px 0 0; padding-bottom: 3px; font-family: Georgia, "Times New Roman", Times, serif;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6304
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6305 h5 {margin: 0px}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6306
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6307 a.help { font-size: 9px; font-style: normal; text-transform: uppercase;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6308 font-family: Georgia, "Times New Roman", Times, serif;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6309
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6310 div.pad { padding-left: 30px; padding-top: 5px; padding-bottom: 10px;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6311
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6312 div.pad1 { margin: 10px 5px;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6313
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6314 div.pad2 { margin: 25px 5px 5px;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6315 h2.pad2 { padding: 25px 5px 5px;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6316
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6317 div.pad3 { padding: 5px 0px 10px 30px;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6318
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6319 div.box { border: 2px solid #CCCCCC; padding:10px; overflow: hidden;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6320
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6321 div.bar { border-left: 7px solid #00666a; padding:5px; margin-top:25px; }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6322
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6323 div.subsection {margin:25px 0px;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6324
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6325 img {border:0px none;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6326
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6327 th.majorth {text-align:left;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6328 th.minorth {font-weight:normal; text-align:left; width:8em; padding: 3px 0px;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6329 th.actionth {font-weight:normal; text-align:left;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6330
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6331 .explain h5 {font-size:1em; margin-left: 1em;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6332
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6333 div.doc {margin-left: 2em; margin-bottom: 3em;}
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6334
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6335 th.trainingset {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6336 border-bottom: thin dashed black;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6337 font-weight:normal;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6338 padding:0px 10px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6339 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6340 div.pop_content {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6341 position:absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6342 z-index:50;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6343 width:300px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6344 padding: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6345 background: #E4ECEC;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6346 font-size: 12px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6347 font-family: Arial;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6348 border-style: double;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6349 border-width: 3px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6350 border-color: #AA2244;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6351 display:none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6352 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6353
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6354 div.pop_content > *:first-child {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6355 margin-top: 0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6356 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6357
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6358 div.pop_content h1, div.pop_content h2, div.pop_content h3, div.pop_content h4,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6359 div.pop_content h5, div.pop_content h6, div.pop_content p {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6360 margin: 0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6361 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6362
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6363 div.pop_content p + h1, div.pop_content p + h2, div.pop_content p + h3,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6364 div.pop_content p + h4, div.pop_content p + h5, div.pop_content p + h6 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6365 margin-top: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6366 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6367
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6368 div.pop_content p + p {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6369 margin-top: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6370 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6371
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6372 div.pop_content > *:last-child {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6373 margin-bottom: 0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6374 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6375
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6376 div.pop_content div.pop_close {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6377 /* old definition */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6378 float:right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6379 bottom: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6380 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6381
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6382 div.pop_content span.pop_close, div.pop_content span.pop_back {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6383 display: inline-block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6384 border: 2px outset #661429;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6385 background-color: #CCC;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6386 padding-left: 1px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6387 padding-right: 1px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6388 padding-top: 0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6389 padding-bottom: 0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6390 cursor: pointer;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6391 color: #AA2244; /*#661429;*/
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6392 font-weight: bold;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6393 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6394
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6395 div.pop_content span.pop_close:active, div.pop_content span.pop_back:active {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6396 border-style: inset;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6397 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6398
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6399 div.pop_content span.pop_close {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6400 float:right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6401 /*border: 2px outset #AA002B;*/
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6402 /*color: #AA2244;*/
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6403 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6404
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6405 div.pop_content:not(.nested) .nested_only {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6406 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6407 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6408
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6409 div.pop_back_sec {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6410 margin-bottom: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6411 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6412
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6413 div.pop_close_sec {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6414 margin-top: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6415 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6416
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6417 table.hide_advanced tr.advanced {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6418 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6419 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6420 span.show_more {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6421 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6422 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6423 table.hide_advanced span.show_more {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6424 display: inline;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6425 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6426 table.hide_advanced span.show_less {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6427 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6428 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6429
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6430
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6431 /*****************************************************************************
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6432 * Program logo styling
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6433 ****************************************************************************/
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6434 div.prog_logo {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6435 border-bottom: 0.25em solid #0f5f60;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6436 height: 4.5em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6437 width: 24em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6438 display:inline-block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6439 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6440 div.prog_logo img {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6441 float:left;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6442 width: 4em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6443 border-style: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6444 margin-right: 0.2em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6445 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6446 div.prog_logo h1, div.prog_logo h1:hover, div.prog_logo h1:active, div.prog_logo h1:visited {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6447 margin:0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6448 padding:0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6449 font-family: Arial, Helvetica, sans-serif;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6450 font-size: 3.2em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6451 line-height: 1em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6452 vertical-align: top;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6453 display: block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6454 color: #026666;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6455 letter-spacing: -0.06em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6456 text-shadow: 0.04em 0.06em 0.05em #666;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6457 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6458 div.prog_logo h2, div.prog_logo h2:hover, div.prog_logo h2:active, div.prog_logo h2:visited {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6459 display: block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6460 margin:0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6461 padding:0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6462 font-family: Helvetica, sans-serif;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6463 font-size: 0.9em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6464 line-height: 1em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6465 letter-spacing: -0.06em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6466 color: black;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6467 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6468
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6469 div.big.prog_logo {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6470 font-size: 18px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6471 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6472
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6473 </style>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6474 <style>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6475 .block_td {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6476 height:25px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6477 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6478 .block_container {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6479 position:relative;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6480 box-sizing: border-box;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6481 height: 25px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6482 padding: 0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6483 margin: 0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6484 margin-left: 1em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6485 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6486 .block_label {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6487 position: absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6488 display: inline-block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6489 padding: 3px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6490 z-index: 4;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6491 top: 6px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6492 height: 12px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6493 line-height: 12px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6494 font-size: 12px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6495 background-color: white;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6496 border: 1px solid black;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6497 -moz-border-radius: 12px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6498 -webkit-border-radius: 12px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6499 border-radius: 12px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6500 transform: translateX(-50%);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6501 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6502 .block_motif {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6503 position: absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6504 z-index: 3;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6505 top: 0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6506 box-sizing: border-box;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6507 border: 1px solid black;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6508 height: 12px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6509 background-color: cyan;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6510 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6511 .block_motif.top {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6512 border-bottom-width: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6513 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6514 .block_motif.bottom {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6515 border-top-width: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6516 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6517 .block_motif.scanned_site {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6518 opacity: 0.3;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6519 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6520 .block_motif.scanned_site.active {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6521 opacity: 0.9;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6522 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6523 .block_region {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6524 position:absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6525 z-index:6;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6526 height:25px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6527 top:0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6528 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6529 .block_region.main {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6530 z-index:8;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6531 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6532 .block_region.scanned_site {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6533 z-index:5;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6534 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6535 .block_region.scanned_site.main {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6536 z-index:7;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6537 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6538 .block_region.top {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6539 height:13px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6540 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6541 .block_region.bottom {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6542 height:13px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6543 top:12px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6544 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6545 .block_rule {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6546 position:absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6547 z-index:2;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6548 width:100%;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6549 height:1px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6550 top:12px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6551 left:0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6552 background-color:gray;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6553 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6554 .block_plus_sym {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6555 position:absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6556 z-index:4;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6557 line-height:12px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6558 top:0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6559 left:-1em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6560 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6561 .block_minus_sym {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6562 position:absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6563 z-index:4;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6564 line-height:12px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6565 top:13px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6566 left:-1em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6567 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6568
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6569 .tic_major {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6570 position:absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6571 top:0em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6572 height:0.5em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6573 width: 2px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6574 margin-left: -1px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6575 background-color: blue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6576 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6577 .tic_minor {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6578 position:absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6579 top:0em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6580 height:0.2em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6581 width: 1px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6582 margin-left: -0.5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6583 background-color: blue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6584 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6585 .tic_label {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6586 position:absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6587 display: inline-block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6588 top:0.5em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6589 height: 1em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6590 color: blue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6591 transform: translateX(-50%);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6592 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6593
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6594 .block_needle {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6595 position:absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6596 z-index:4;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6597 height:30px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6598 width:1px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6599 top:-2px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6600 background-color:gray;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6601 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6602 .block_needle.right {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6603 height: 60px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6604 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6605 .block_handle {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6606 position: absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6607 display: inline-block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6608 z-index: 5;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6609 top: 27px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6610 min-width: 3ex;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6611 text-align: center;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6612 font-size: 12px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6613 line-height: 12px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6614 transform: translateX(-50%);
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6615 background-color: LightGrey;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6616 border:3px outset grey;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6617 cursor: pointer;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6618 -webkit-user-select: none; /* Chrome/Safari */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6619 -moz-user-select: none; /* Firefox */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6620 -ms-user-select: none; /* IE10+ */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6621 /* Rules below not implemented in browsers yet */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6622 -o-user-select: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6623 user-select: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6624 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6625 .block_handle.right {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6626 top: 47px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6627 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6628
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6629 .legend_container {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6630 text-align: right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6631 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6632 .legend_entry {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6633 display: inline-block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6634 padding: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6635 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6636 div.legend_swatch {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6637 box-sizing: border-box;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6638 width: 15px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6639 height: 15px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6640 border: 1px solid black;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6641 background-color: cyan;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6642 float: left;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6643 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6644 div.legend_swatch input {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6645 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6646 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6647 .legend_text {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6648 line-height: 15px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6649 margin-left: 20px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6650 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6651 </style>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6652 <style>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6653 /* meme output specific css */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6654
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6655 div.pop_block {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6656 position:absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6657 z-index:5;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6658 padding: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6659 border: 1px solid black;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6660 display: inline-block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6661 background-color: white;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6662 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6663
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6664 #measure_match {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6665 position: absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6666 visibility: hidden;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6667 height: auto;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6668 width: auto;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6669 white-space: nowrap;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6670 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6671
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6672 div.template {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6673 position: absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6674 z-index: 1;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6675 left: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6676 top: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6677 visibility: hidden;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6678 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6679
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6680 table.block_information {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6681 margin-left: auto;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6682 margin-right: auto;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6683 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6684
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6685 table.block_information * th {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6686 text-align: right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6687 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6688
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6689 *.hide_empty_seqs * tr.empty_seq {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6690 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6691 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6692
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6693 *.hide_only_scan * tr.only_scan {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6694 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6695 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6696
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6697 *.hide_only_scan * div.scanned_site {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6698 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6699 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6700
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6701 td.symaction {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6702 text-align: center;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6703 text-decoration: underline;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6704 font-size: 20px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6705 cursor: pointer;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6706 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6707 div.sym_btn {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6708 display:inline-block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6709 text-decoration: underline;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6710 cursor: pointer;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6711 font-size: 20px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6712 line-height:20px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6713 text-align: center;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6714 width: 20px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6715 height: 20px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6716 color: blue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6717 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6718 div.sym_btn:hover {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6719 color: white;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6720 background-color: blue;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6721 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6722
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6723 div.sym_btn.positioned {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6724 position: absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6725 top: 0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6726 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6727
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6728 div.actionbutton {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6729 display:inline-block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6730 cursor: pointer;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6731 font-size: 18px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6732 line-height:20px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6733 padding: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6734 margin: 10px 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6735 border: 1px solid black;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6736 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6737
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6738 div.actionbutton:hover {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6739 color:#FFF;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6740 background-color:#000;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6741 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6742
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6743 div.param_box {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6744 display: inline-block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6745 margin-right: 20px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6746 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6747
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6748 span.param {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6749 font-weight: bold;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6750 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6751
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6752 div.box + div.box {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6753 margin-top: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6754 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6755
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6756 div.sites_outer {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6757 position: relative;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6758 padding-top: 20px; /* height of header */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6759 display: inline-block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6760 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6761
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6762 div.sites_inner {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6763 overflow-x: hidden;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6764 overflow-y: auto;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6765 max-height: 200px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6766 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6767 table.sites_tbl {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6768 border-collapse: collapse;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6769 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6770
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6771 div.sites_th_inner {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6772 position: absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6773 top: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6774 line-height: 20px; /* height of header */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6775 text-align: left;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6776 padding-left: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6777 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6778 th.nopad div.sites_th_inner {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6779 padding-left: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6780 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6781 div.sites_th_hidden {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6782 visibility: hidden;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6783 height: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6784 padding: 0 10px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6785 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6786 th.nopad div.sites_th_hidden {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6787 padding: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6788 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6789 div.sites_inner * th {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6790 height: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6791 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6792
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6793 table.sites_tbl {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6794 overflow-x: hidden;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6795 overflow-y: auto;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6796 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6797
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6798 .site_num {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6799 text-align: right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6800 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6801 .site_name {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6802 padding:0px 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6803 text-align:left;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6804 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6805 .site_strand {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6806 padding:0px 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6807 text-align:center;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6808 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6809 .norc .site_strand, .norc .site_strand_title {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6810 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6811 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6812 .site_start {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6813 padding:0px 15px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6814 text-align: right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6815 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6816 .site_pvalue {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6817 text-align:center;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6818 padding:0px 15px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6819 text-align:right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6820 white-space: nowrap;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6821 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6822 .lflank, .rflank, .match, .alpha_symbol {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6823 font-weight:bold;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6824 font-size:15px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6825 font-family: 'Courier New', Courier, monospace;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6826 color:gray;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6827 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6828
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6829 .site.lflank {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6830 text-align:right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6831 padding-right:5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6832 color:gray;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6833 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6834 .site.match {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6835 text-align:center;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6836 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6837 .site.rflank {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6838 text-align:left;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6839 padding-left:5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6840 padding-right: 20px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6841 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6842
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6843 th.stop_reason {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6844 text-align: left;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6845 padding-right: 10px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6846 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6847
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6848 th.motif_ordinal {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6849
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6850 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6851 td.motif_ordinal {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6852 text-align: right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6853 padding-right: 10px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6854 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6855 th.motif_logo {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6856 padding-right: 10px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6857 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6858 td.motif_logo {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6859 padding-right: 10px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6860 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6861 th.motif_evalue {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6862 text-align:right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6863 padding-right: 10px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6864 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6865 td.motif_evalue {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6866 text-align: right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6867 white-space: nowrap;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6868 padding-right: 20px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6869 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6870 th.motif_nsites {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6871 text-align: right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6872 padding-right: 10px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6873 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6874 td.motif_nsites {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6875 text-align: right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6876 padding-right: 20px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6877 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6878 th.motif_width {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6879 text-align: right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6880 padding-right: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6881 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6882 td.motif_width {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6883 text-align: right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6884 padding-right: 15px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6885 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6886 th.motif_more {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6887 padding: 0 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6888 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6889 td.motif_more {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6890 text-align: center;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6891 padding: 0 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6892 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6893 th.motif_submit {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6894 padding: 0 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6895 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6896 td.motif_submit {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6897 text-align: center;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6898 padding: 0 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6899 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6900 th.motif_download {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6901 padding-left: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6902 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6903 td.motif_download {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6904 text-align: center;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6905 padding-left: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6906 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6907
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6908
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6909 div.tabArea {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6910 font-size: 80%;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6911 font-weight: bold;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6912 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6913
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6914 .norc div.tabArea {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6915 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6916 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6917
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6918 span.tab, span.tab:visited {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6919 cursor: pointer;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6920 color: #888;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6921 background-color: #ddd;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6922 border: 2px solid #ccc;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6923 padding: 2px 1em;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6924 text-decoration: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6925 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6926 span.tab.middle {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6927 border-left-width: 0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6928 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6929 div.tabArea.base span.tab {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6930 border-top-width: 0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6931 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6932 div.tabArea.top span.tab {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6933 border-bottom-width: 0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6934 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6935
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6936 span.tab:hover {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6937 background-color: #bbb;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6938 border-color: #bbb;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6939 color: #666;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6940 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6941 span.tab.activeTab, span.tab.activeTab:hover, span.tab.activeTab:visited {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6942 background-color: white;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6943 color: black;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6944 cursor: default;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6945 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6946 div.tabMain {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6947 border: 2px solid #ccc;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6948 background-color: white;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6949 padding: 10px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6950 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6951 div.tabMain.base {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6952 margin-top: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6953 display: inline-block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6954 max-width: 98%;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6955 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6956
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6957 div.tabMain.top {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6958 margin-bottom: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6959 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6960
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6961 div.tabCenter {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6962 max-width: 100%;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6963 overflow-x: auto;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6964 height: 200px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6965 overflow-y: hidden;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6966 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6967
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6968 canvas.logo_rc {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6969 display:none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6970 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6971 .show_rc_logo > canvas {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6972 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6973 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6974 .show_rc_logo > canvas.logo_rc {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6975 display: block;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6976 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6977
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6978 canvas.scan_logo {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6979 margin-left: 10px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6980 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6981
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6982 div.blocks_outer {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6983 position: relative;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6984 padding-top: 20px; /* height of header */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6985 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6986
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6987 div.blocks_inner {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6988 overflow-x: hidden;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6989 overflow-y: auto;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6990 max-height: 200px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6991 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6992 table.blocks_tbl {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6993 border-collapse: collapse;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6994 width: 100%;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6995 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6996
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6997 div.blocks_th_inner {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6998 position: absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6999 top: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7000 line-height: 20px; /* height of header */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7001 text-align: left;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7002 padding-left: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7003 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7004 th.nopad div.blocks_th_inner {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7005 padding-left: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7006 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7007 div.blocks_th_hidden {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7008 visibility: hidden;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7009 height: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7010 padding: 0 10px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7011 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7012 th.nopad div.blocks_th_hidden {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7013 padding: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7014 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7015 div.blocks_inner * th {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7016 height: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7017 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7018
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7019 table.blocks_tbl {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7020 overflow-x: hidden;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7021 overflow-y: auto;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7022 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7023 td.block_td {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7024 width: 99%;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7025 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7026
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7027 *.blockdiag_num {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7028 text-align: right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7029 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7030
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7031 td.blockdiag_name {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7032 text-align: left;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7033 padding:0px 10px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7034 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7035
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7036 td.blockdiag_pvalue {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7037 padding:0px 10px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7038 text-align:right;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7039 white-space: nowrap;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7040 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7041
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7042 div.preview_btn {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7043 border: 2px solid white;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7044 height: 16px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7045 width: 16px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7046 font-size: 12px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7047 line-height: 16px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7048 text-align: center;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7049 cursor: pointer;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7050 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7051 div.preview_btn + div.preview_btn {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7052 margin-top: 3px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7053 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7054
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7055 div.preview_btn.active {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7056 border: 2px solid black;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7057 cursor: default;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7058 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7059
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7060 div.preview_btn:hover {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7061 background-color: black;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7062 color: white;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7063 border-color: black;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7064 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7065
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7066 div.preview_btn.active:hover {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7067 background-color: white;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7068 color: black;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7069 border-color: black;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7070 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7071
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7072
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7073 div.preview_btn_box {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7074 position: absolute;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7075 left: 0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7076 top: 0px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7077 padding: 3px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7078 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7079
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7080 div.preview_logo_box {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7081 height: 50px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7082 overflow-y: hidden;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7083 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7084
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7085 div.preview_btn_box + div.preview_logo_box {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7086 margin-left: 25px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7087 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7088
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7089 div.preview_box {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7090 position: relative;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7091 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7092
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7093 div.grey_background {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7094 position:fixed;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7095 z-index: 8;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7096 background-color: #000;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7097 -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7098 opacity: 0.5;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7099 left: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7100 top: 0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7101 width: 100%;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7102 height: 100%;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7103 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7104
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7105 div.popup_wrapper {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7106 position:fixed;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7107 z-index:9;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7108 width:100%;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7109 height:0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7110 top:50%;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7111 left:0;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7112 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7113
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7114 div.popup {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7115 width: 600px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7116 z-index:9;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7117 margin-left: auto;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7118 margin-right: auto;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7119 padding: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7120 background-color: #FFF;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7121 border-style: double;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7122 border-width: 5px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7123 border-color: #00666a;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7124 position:relative;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7125 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7126 div.close {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7127 cursor: pointer;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7128 border: 1px solid black;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7129 width:15px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7130 height:15px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7131 line-height:15px; /* this causes vertical centering */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7132 text-align:center;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7133 background-color:#FFF;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7134 color:#000;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7135 font-size:15px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7136 font-family:monospace;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7137 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7138
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7139 div.close:hover {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7140 color:#FFF;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7141 background-color:#000;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7142 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7143
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7144 div.navnum {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7145 width:100%;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7146 height:20px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7147 line-height:20px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7148 text-align:center;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7149 font-size:medium;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7150 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7151
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7152 div.navarrow {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7153 font-size: 30px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7154 text-decoration:none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7155 cursor: pointer;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7156 -moz-user-select: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7157 -webkit-user-select: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7158 -ms-user-select: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7159 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7160
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7161 div.navarrow > span.inactive {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7162 display: inline;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7163 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7164 div.navarrow > span.active {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7165 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7166 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7167
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7168 div.navarrow:hover > span.active {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7169 display: inline;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7170 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7171 div.navarrow:hover > span.inactive {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7172 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7173 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7174
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7175 table.programs {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7176 width: 100%;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7177 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7178
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7179 table.programs tr {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7180 background-color: #EFE;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7181 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7182
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7183 table.programs tr.selected {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7184 background-color: #262;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7185 color: #FFF;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7186 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7187
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7188 table.programs tr.dna_only {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7189 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7190 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7191
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7192 table.programs.alphabet_dna tr.dna_only {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7193 display: table-row;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7194 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7195
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7196 div.programs_scroll {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7197 width: 100%;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7198 height: 90px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7199 overflow-y: auto;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7200 overflow-x: hidden;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7201 margin: 0 auto;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7202 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7203 table.inputs, table.alpha_bg_table {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7204 margin-top: 20px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7205 border-collapse:collapse;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7206 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7207 table.inputs * td, table.inputs * th, table.alpha_bg_table * td, table.alpha_bg_table * th {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7208 padding-left: 15px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7209 padding-right: 15px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7210 padding-top: 1px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7211 padding-bottom: 1px;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7212 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7213
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7214 table.hide_psp td.col_psp, table.hide_psp th.col_psp {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7215 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7216 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7217
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7218 /* program settings */
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7219 span.mod_oops, span.mod_zoops, span.mod_anr {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7220 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7221 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7222 td.oops span.mod_oops,td.zoops span.mod_zoops, td.anr span.mod_anr {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7223 display: inline;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7224 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7225 span.strand_none, span.strand_given, span.strand_both {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7226 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7227 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7228 td.none span.strand_none, td.given span.strand_given, td.both span.strand_both {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7229 display: inline;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7230 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7231 span.spmap_uni, span.spmap_pam {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7232 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7233 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7234 td.uni span.spmap_uni, td.pam span.spmap_pam {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7235 display: inline;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7236 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7237 span.prior_dirichlet, span.prior_dmix, span.prior_mega, span.prior_megap, span.prior_addone {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7238 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7239 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7240 td.dirichlet span.prior_dirichlet, td.dmix span.prior_dmix, td.mega span.prior_mega,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7241 td.megap span.prior_megap, td.addone span.prior_addone {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7242 display: inline;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7243 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7244 span.noendgaps_on, span.noendgaps_off {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7245 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7246 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7247 td.on span.noendgaps_on, td.off span.noendgaps_off {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7248 display: inline;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7249 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7250 span.substring_on, span.substring_off {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7251 display: none;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7252 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7253 td.on span.substring_on, td.off span.substring_off {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7254 display: inline;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7255 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7256 </style>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7257 </head>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7258 <body onload="page_loaded()" onpageshow="page_shown(event)" onresize="page_resized()">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7259 <!-- -->
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7260 <div id="grey_out_page" class="grey_background" style="display:none;">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7261 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7262 <!-- Help popups -->
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7263 <div class="pop_content" id="pop_">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7264 <p>Help poup.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7265 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7266 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7267 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7268 <div class="pop_content" id="pop_ev">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7269 <p>The statistical significance of the motif. MEME usually finds the most
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7270 statistically significant (low E-value) motifs first. It is unusual to
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7271 consider a motif with an E-value larger than 0.05 significant so, as an
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7272 additional indicator, MEME displays these partially transparent.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7273 <p>The E-value of a motif is based on its log likelihood ratio, width,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7274 sites, the background letter frequencies (given in the command line
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7275 summary), and the size of the training set.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7276 <p>The E-value is an estimate of the expected number of motifs with the
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7277 given log likelihood ratio (or higher), and with the same width and site
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7278 count, that one would find in a similarly sized set of random
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7279 sequences (sequences where each position is independent and letters are
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7280 chosen according to the background letter frequencies).</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7281 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7282 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7283 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7284 <div class="pop_content" id="pop_sites">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7285 <p>The number of sites contributing to the construction of the motif.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7286 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7287 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7288 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7289 <div class="pop_content" id="pop_width">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7290 <p>The width of the motif. Each motif describes a pattern of a fixed
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7291 width, as no gaps are allowed in MEME motifs.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7292 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7293 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7294 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7295 <div class="pop_content" id="pop_more">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7296 <p>Click on the blue symbol below to reveal more information about this motif.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7297 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7298 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7299 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7300 <div class="pop_content" id="pop_submit_dl">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7301 <p>Click on the blue symbol below to reveal options allowing you
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7302 to submit this motif to another MEME Suite motif analysis program, to download this
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7303 motif in various text formats, or to download a sequence "logo" of
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7304 this motif PNG or EPS format.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7305 <h5>Supported Programs</h5>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7306 <dl>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7307 <dt>Tomtom</dt>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7308 <dd>Tomtom is a tool for searching for similar known motifs.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7309 [<a href="http://meme-suite.org/doc/tomtom.html?man_type=web">manual</a>]</dd>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7310 <dt>MAST</dt>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7311 <dd>MAST is a tool for searching biological sequence databases for
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7312 sequences that contain one or more of a group of known motifs.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7313 [<a href="http://meme-suite.org/doc/mast.html?man_type=web">manual</a>]</dd>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7314 <dt>FIMO</dt>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7315 <dd>FIMO is a tool for searching biological sequence databases for
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7316 sequences that contain one or more known motifs.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7317 [<a href="http://meme-suite.org/doc/fimo.html?man_type=web">manual</a>]</dd>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7318 <dt>GOMO</dt>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7319 <dd>GOMO is a tool for identifying possible roles (Gene Ontology
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7320 terms) for DNA binding motifs.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7321 [<a href="http://meme-suite.org/doc/gomo.html?man_type=web">manual</a>]</dd>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7322 <dt>SpaMo</dt>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7323 <dd>SpaMo is a tool for inferring possible transcription factor
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7324 complexes by finding motifs with enriched spacings.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7325 [<a href="http://meme-suite.org/doc/spamo.html?man_type=web">manual</a>]</dd>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7326 </dl>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7327 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7328 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7329 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7330 <div class="pop_content" id="pop_llr">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7331 <p>The log likelihood ratio of the motif.The log likelihood ratio is the
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7332 logarithm of the ratio of the probability of the occurrences of the motif
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7333 given the motif model (likelihood given the motif) versus their
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7334 probability given the background model (likelihood given the null model).
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7335 (Normally the background model is a 0-order Markov model using the
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7336 background letter frequencies, but higher order Markov models may be
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7337 specified via the -bfile option to MEME.).</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7338 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7339 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7340 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7341 <div class="pop_content" id="pop_ic">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7342 <p>The information content of the motif in bits. It is equal to the sum
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7343 of the uncorrected information content, R(), in the columns of the pwm.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7344 This is equal relative entropy of the motif relative to a uniform
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7345 background frequency model.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7346 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7347 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7348 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7349 <div class="pop_content" id="pop_re">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7350 <p>The relative entropy of the motif.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7351
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7352 <p style="font-family: monospace;">re = llr / (sites * ln(2))</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7353 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7354 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7355 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7356 <div class="pop_content" id="pop_bt">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7357 <p>The Bayes Threshold.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7358 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7359 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7360 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7361 <div class="pop_content" id="pop_site_strand">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7362 <p>The strand used for the motif site.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7363 <dl>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7364 <dt>+</dt>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7365 <dd>The motif site was found in the sequence as it was supplied.</dd>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7366 <dt>-</dt>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7367 <dd>The motif site was found in the reverse complement of the supplied sequence.</dd>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7368 </dl>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7369 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7370 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7371 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7372 <div class="pop_content" id="pop_site_start">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7373 <p>The position in the sequence where the motif site starts. If a motif
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7374 started right at the begining of a sequence it would be described as
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7375 starting at position 1.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7376 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7377 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7378 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7379 <div class="pop_content" id="pop_site_pvalue">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7380 <p>The probability that an equal or better site would be found in a
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7381 random sequence of the same length conforming to the background letter
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7382 frequencies.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7383 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7384 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7385 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7386 <div class="pop_content" id="pop_site_match">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7387 <p>A motif site with the 10 flanking letters on either side.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7388 <p>When the site is not on the given strand then the site
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7389 and both flanks are reverse complemented so they align.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7390 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7391 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7392 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7393
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7394 <div class="pop_content" id="pop_seq_name">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7395 <p>The name of the sequences as given in the FASTA file.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7396 <p>The number to the left of the sequence name is the ordinal
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7397 of the sequence.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7398 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7399 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7400 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7401
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7402 <div class="pop_content" id="pop_motif_sites">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7403 <p>These are the motif sites predicted by MEME and used to build the motif.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7404 <p>These sites are shown in solid color and hovering the cursor
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7405 over a site will reveal details about the site. Only sequences
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7406 that contain a motif site are shown.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7407 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7408 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7409 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7410
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7411 <div class="pop_content" id="pop_scanned_sites">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7412 <p>These are the motif sites predicted by MEME plus
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7413 any additional sites detected using a motif scanning
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7414 algorithm.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7415 <p>These MEME sites are shown in solid color and
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7416 additional scanned sites are shown in transparent color.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7417 Hovering the cursor over a site will reveal details about the site.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7418 Only sequences containing a predicted or scanned motif site are shown.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7419 <p>The scanned sites are predicted using a
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7420 log-odds scoring matrix constructed from the MEME sites.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7421 Only scanned sites with position <i>p</i>-values less
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7422 than 0.0001 are shown.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7423 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7424 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7425 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7426
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7427 <div class="pop_content" id="pop_all_sequences">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7428 <p>These are the same sites as shown by selecting the
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7429 "Motif Sites + Scanned Sites" button except that all
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7430 sequences, including those with no sites, are included
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7431 in the diagram.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7432 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7433 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7434 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7435
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7436 <div class="pop_content" id="pop_seq_pvalue">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7437 <p>This is the combined match <i>p</i>-value.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7438 <p>The combined match <i>p</i>-value is defined as the probability that a
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7439 random sequence (with the same length and conforming to the background)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7440 would have position <i>p</i>-values such that the product is smaller
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7441 or equal to the value calulated for the sequence under test.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7442 <p>The position <i>p</i>-value is defined as the probability that a
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7443 random sequence (with the same length and conforming to the background)
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7444 would have a match to the motif under test with a score greater or equal
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7445 to the largest found in the sequence under test.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7446 <p>Hovering your mouse over a motif site in the motif location
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7447 block diagram will show its position <i>p</i>-value and other information
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7448 about the site.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7449
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7450 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7451 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7452 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7453 <div class="pop_content" id="pop_motif_location">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7454 <p>This diagram shows the location of motif sites.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7455 <p>Each block shows the position and strength of a motif
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7456 site. The height of a block gives an indication of the
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7457 significance of the site as taller blocks are more significant.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7458 The height is calculated to be proportional to the negative
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7459 logarithm of the <i>p</i>-value of the site, truncated at
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7460 the height for a <i>p</i>-value of 1e-10.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7461 <p>For complementable alphabets (like DNA), sites on the
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7462 positive strand are shown above the line,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7463 sites on the negative strand are shown below.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7464 <p>Placing the cursor
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7465 over a motif site will reveal more information about the site
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7466 including its position <i>p</i>-value. (See the help
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7467 for the <i>p</i>-value column for an explanation of position
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7468 <i>p</i>-values.)</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7469 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7470 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7471 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7472
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7473 <div class="pop_content" id="pop_seq_source">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7474 <p>The name of the file of sequences input to MEME.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7475 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7476 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7477 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7478 <div class="pop_content" id="pop_psp_source">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7479 <p>The position specific priors file used by MEME to find the motifs.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7480 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7481 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7482 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7483 <div class="pop_content" id="pop_seq_alph">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7484 <p>The alphabet used by the sequences.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7485 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7486 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7487 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7488 <div class="pop_content" id="pop_seq_count">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7489 <p>The number of sequences provided as input to MEME.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7490 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7491 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7492 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7493
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7494 <div class="pop_content" id="pop_alph_name">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7495 <p>The name of the alphabet symbol.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7496 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7497 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7498 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7499 <div class="pop_content" id="pop_alph_freq">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7500 <p>The frequency of the alphabet symbol in the dataset with a pseudocount
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7501 so it is never zero.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7502 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7503 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7504 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7505 <div class="pop_content" id="pop_alph_bg">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7506 <p>The frequency of the alphabet symbol as defined by the background model.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7507 <div style="float:right; bottom:0px;">[
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7508 <a href="javascript:help_popup()">close</a> ]</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7509 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7510
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7511 <!-- templates -->
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7512 <div id="measure_match" class="match"></div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7513 <div class="template pop_block" id="tmpl_block_info">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7514 <div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7515 <span class="tvar_logo_pad lflank" style="visibility:hidden;"></span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7516 <span class="tvar_logo"></span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7517 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7518 <div class="block_sequence_fragment">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7519 <span class="tvar_lflank lflank"></span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7520 <span class="tvar_match match"></span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7521 <span class="tvar_rflank rflank"></span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7522 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7523 <table class="block_information">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7524 <tr><th>Motif</th><td class="tvar_motif">1</td></tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7525 <tr><th><i>p</i>-value</th><td class="tvar_pvalue">8.23e-7</td></tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7526 <tr><th>Start</th><td class="tvar_start">23</td></tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7527 <tr><th>End</th><td class="tvar_end">33</td></tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7528 </table>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7529 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7530
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7531 <div class="template pop_block" id="tmpl_scan_info">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7532 <h5>Scanned Site</h5>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7533 <div class="tvar_logo"></div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7534 <table class="block_information">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7535 <tr><th>Motif</th><td class="tvar_motif">1</td></tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7536 <tr><th><i>p</i>-value</th><td class="tvar_pvalue">8.23e-7</td></tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7537 <tr><th>Start</th><td class="tvar_start">23</td></tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7538 <tr><th>End</th><td class="tvar_end">33</td></tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7539 </table>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7540 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7541
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7542 <div class="template box expanded_motif" id="tmpl_motif_expanded">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7543 <div style="position: relative; min-height: 20px">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7544 <div class="param_box">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7545 <span class="param"><span class="tvar_ordinal"></span>.</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7546 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7547 <div class="sym_btn positioned tvar_less" tabindex="0"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7548 title="Show less information.">&#8613;</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7549 <div class="sym_btn positioned tvar_submit" tabindex="0"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7550 title="Submit the motif to another MEME Suite program or download it.">&#8674;</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7551 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7552 <div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7553 <div class="param_box">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7554 <span class="param"><i>E</i>-value:</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7555 <span class="tvar_evalue"></span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7556 <div class="help" data-topic="pop_ev"></div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7557 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7558 <div class="param_box">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7559 <span class="param">Site Count:</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7560 <span class="tvar_site_count"></span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7561 <div class="help" data-topic="pop_sites"></div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7562 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7563 <div class="param_box">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7564 <span class="param">Width:</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7565 <span class="tvar_width"></span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7566 <div class="help" data-topic="pop_width"></div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7567 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7568 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7569 <div class="tabMain base">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7570 <div class="tabCenter tvar_logo"></div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7571 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7572 <div class="tabArea base">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7573 <span class="tvar_tab tab" tabindex="0">Standard</span><span
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7574 class="tvar_tab_rc tab middle" tabindex="0">Reverse
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7575 Complement</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7576 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7577 <div style="padding: 10px 0">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7578 <div class="param_box">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7579 <span class="param">Log Likelihood Ratio:</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7580 <span class="tvar_llr"></span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7581 <div class="help" data-topic="pop_llr"></div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7582 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7583 <div class="param_box">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7584 <span class="param">Information Content:</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7585 <span class="tvar_ic"></span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7586 <div class="help" data-topic="pop_ic"></div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7587 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7588 <div class="param_box">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7589 <span class="param">Relative Entropy:</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7590 <span class="tvar_re"></span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7591 <div class="help" data-topic="pop_re"></div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7592 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7593 <div class="param_box">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7594 <span class="param">Bayes Threshold:</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7595 <span class="tvar_bt"></span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7596 <div class="help" data-topic="pop_bt"></div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7597 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7598 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7599 <div class="tvar_sites"></div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7600 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7601
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7602
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7603 <div class="popup_wrapper">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7604 <div class="popup" style="display:none; top: -150px;" id="download">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7605 <div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7606 <div style="float:right; ">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7607 <div id="outpop_close" class="close" tabindex="0">x</div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7608 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7609 <h2 class="mainh" style="margin:0; padding:0;">Submit or Download</h2>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7610 <div style="clear:both"></div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7611 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7612 <div style="height:100px">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7613 <div style="float:right; width: 30px;">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7614 <div id="outpop_prev" class="navarrow" tabindex="0">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7615 <span class="inactive">&#8679;</span><span class="active">&#11014;</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7616 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7617 <div id="outpop_num" class="navnum"></div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7618 <div id="outpop_next" class="navarrow" tabindex="0">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7619 <span class="inactive">&#8681;</span><span class="active">&#11015;</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7620 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7621 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7622 <div id="logo_box" style="height: 100px; margin-right: 40px;">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7623 <canvas id="outpop_logo" height="100" width="580"></canvas>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7624 <canvas id="outpop_logo_rc" class="logo_rc" height="100" width="580"></canvas>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7625 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7626 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7627 <div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7628 <!-- tabs start -->
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7629 <div class="tabArea top">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7630 <span id="outpop_tab_1" class="tab">Submit Motif</span><span
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7631 id="outpop_tab_2" class="tab middle">Download Motif</span><span
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7632 id="outpop_tab_3" class="tab middle">Download Logo</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7633 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7634 <div class="tabMain top">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7635 <!-- Submit to another program -->
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7636 <div id="outpop_pnl_1">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7637 <h4 class="compact">Submit to program</h4>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7638 <table id="programs" class="programs">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7639 <tr class="dna_only">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7640 <td><input type="radio" name="program" value="tomtom" id="submit_tomtom"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7641 <td><label for="submit_tomtom">Tomtom</label></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7642 <td><label for="submit_tomtom">Find similar motifs in
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7643 published libraries or a library you supply.</label></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7644 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7645 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7646 <td><input type="radio" name="program" value="fimo" id="submit_fimo"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7647 <td><label for="submit_fimo">FIMO</label></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7648 <td><label for="submit_fimo">Find motif occurrences in
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7649 sequence data.</label></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7650 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7651 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7652 <td><input type="radio" name="program" value="mast" id="submit_mast"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7653 <td><label for="submit_mast">MAST</label></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7654 <td><label for="submit_mast">Rank sequences by affinity to
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7655 groups of motifs.</label></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7656 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7657 <tr class="dna_only">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7658 <td><input type="radio" name="program" value="gomo" id="submit_gomo"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7659 <td><label for="submit_gomo">GOMo</label></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7660 <td><label for="submit_gomo">Identify possible roles (Gene
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7661 Ontology terms) for motifs.</label></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7662 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7663 <tr class="dna_only">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7664 <td><input type="radio" name="program" value="spamo" id="submit_spamo"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7665 <td><label for="submit_spamo">SpaMo</label></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7666 <td><label for="submit_spamo">Find other motifs that are
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7667 enriched at specific close spacings which might imply the existance of a complex.</label></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7668 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7669 </table>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7670 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7671 <!-- download text format -->
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7672 <div id="outpop_pnl_2">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7673 <div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7674 <label for="text_format">Format:</label>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7675 <select id="text_format">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7676 <option value="0">Count Matrix</option>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7677 <option value="1">Probability Matrix</option>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7678 <option value="2">Minimal MEME</option>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7679 <option value="3">FASTA</option>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7680 <option value="4">Raw</option>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7681 </select>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7682 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7683 <form id="text_form" method="post" action="">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7684 <script>$("text_form").action = site_url + "/utilities/save_generated_file";</script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7685 <input type="hidden" id="text_name" name="name" value="motif.txt">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7686 <input type="hidden" name="mime_type" value="text/plain">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7687 <textarea id="outpop_text" name="content"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7688 style="width:99%; white-space: pre; word-wrap: normal; overflow-x: scroll;"
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7689 rows="8" readonly="readonly" wrap="off"></textarea>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7690 </form>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7691 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7692 <!-- download logo format -->
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7693 <div id="outpop_pnl_3">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7694 <form id="logo_form" method="post" action="">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7695 <script>$("logo_form").action = site_url + "/utilities/generate_logo";</script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7696 <input type="hidden" name="program" value="MEME"/>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7697 <input type="hidden" id="logo_motifs" name="motifs" value=""/>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7698 <table>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7699 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7700 <td><label for="logo_format">Format:</label></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7701 <td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7702 <select id="logo_format" name="png">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7703 <option value="1">PNG (for web)</option>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7704 <option value="0">EPS (for publication)</option>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7705 </select>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7706 </td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7707 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7708 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7709 <td><label for="logo_rc">Orientation:</label></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7710 <td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7711 <select id="logo_rc" name="rc1">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7712 <option value="0">Normal</option>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7713 <option value="1" id="logo_rc_option">Reverse Complement</option>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7714 </select>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7715 </td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7716 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7717 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7718 <td><label for="logo_ssc">Small Sample Correction:</label></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7719 <td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7720 <input type="hidden" id="logo_err" name="errbars" value="0"/>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7721 <select id="logo_ssc" name="ssc">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7722 <option value="0">Off</option>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7723 <option value="1">On</option>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7724 </select>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7725 </td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7726 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7727 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7728 <td><label for="logo_width">Width:</label></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7729 <td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7730 <input type="text" id="logo_width" size="4" placeholder="default" name="width"/>&nbsp;cm
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7731 </td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7732 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7733 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7734 <td><label for="logo_height">Height:</label></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7735 <td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7736 <input type="text" id="logo_height" size="4" placeholder="default" name="height"/>&nbsp;cm
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7737 </td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7738 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7739 </table>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7740 </form>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7741 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7742 <!-- Buttons -->
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7743 <div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7744 <div style="float:left;">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7745 <input type="button" id="outpop_do" value="Submit" />
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7746 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7747 <div style="float:right;">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7748 <input id="outpop_cancel" type="button" value="Cancel" />
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7749 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7750 <div style="clear:both;"></div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7751 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7752 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7753 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7754 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7755 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7756
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7757
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7758
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7759 <!-- Page starts here -->
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7760 <div id="top" class="pad1">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7761 <div class="prog_logo big">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7762 <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAABGCAYAAACUsCfoAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1FB9wLHAInL7an9JAAAA8eSURBVHja7ZpZbxv3ucZ/s3AZ7qQkypZELZS3WHKiRJbTFnHqOjZcGzCQBf0A7cUB8glOb89dz30vChRp7xK0aZo4TYq6dtKqSew6iuJWpmPJlrVFFCmKI+7LLJw5F81MFZyec5rTILJaP8AAnAty+Pzf933ebeAhHuIhHuIhHmJPo6TpaeGLfimTydhLS0sUCgWazSbVahXDMOh0Ong8HiKRCAMDAxw+fJhHH31UeFDJ/91/bHp62r558ya6rmOaJuvr6+TzeYrFIoZhAOD1epFlmWAwSDqdZnR0lCNHjjA+Ps7+/fuFPUU8k8nYV69epVKpEA6HuXPnDrOzs7RaLbxeL93d3fj9foLBIB6Ph0ajQaVSAUBRFNLpNI888ggHDhzg3Llzwp4g/vbbb9szMzPE43FyuRwffPAB2WyWnp4ehoaGiMVi2LZNvV6n3W7j8/mIRqN4vV4ajQa1Wo2trS0OHTqEaZo89dRTfO973xMeaOKvvfaaffv2bcLhMCsrK/z+979HVVWOHz/O0NAQxWIRVVVRVRW/348oihiGgSiKxGIxurq6CAQCBINB3n//fcbGxiiXyxw7dowXX3yx1Nvbm3igiBcKhY9u3rw5OTMzQzgc5vbt23zwwQfIsszExAS2bZPP55EkiVAoRCQSIRwOI8sy5XKZ7e1tWq0WnU6HTqfD4OAggUAAVVXpdDo0m01GRkb44Q9/KDxQxH/729/as7Oz+Hw+Pv30U37zm9/g9Xrp6emht7eXYDCI3+/H6/UiCALtdhvLsuh0OkiSRCAQQJZl6vU65XKZ1dVV+vv7SSQS5PN5vF4vhUKBgwcP8qMf/WjXyIs7b+7cuWMvLi4iCAL1ep133nkHXdcZHh4mlUoRDofp7+8nHo9jGAaCIBCPx+nr6yOdTtPX14fH40HTNGRZpqenh76+PrLZLMVikYGBARRFwTRN5ubm+PGPf2zvFnF5583c3BzlchlZlrl16xa1Wo2xsTGi0SiDg4OutUzTJBKJIIoiXq+XQCBAIpEgFAphmiaqqlIoFKjVaoyOjhKJRFhfXycajRKNRunp6WFhYYG33nqLQqHwUTKZPP5VE5ecD5cvX7bv37+Poijkcjl++ctfMjo6ytDQEMlkEo/HQ7lcpt1u4/F4kGUZQRDw+Xz09fVx4MABRkZGSKVSdHV10el0KJVK1Ot14vE4kiRRKpVQFIV4PI5t23z66ad0Op2+K1eu/MeuWVxVVUzTRNd17t27RzKZJJFIEI1GEUWRdruNaZqIoogkSYiiiCiK+P1+AoEA0WiUQ4cOCQCbm5vb5XI5Xi6XWVtbw7ZtZFnG7/e7D1YUhWAwSLVaJZvN2v39/cJXHuOLi4t2sVhEEAS2t7eZn59n//79JBIJwuEwlmXRbDbRdR1BEBAEAcuysCwL2/5LmIriX+Wit7c3EY/HSSQSeDweDMPA4/EQCoWwbRvbtgmFQoTDYUqlErlcbnfE7f79+64gbWxs0G63icViRCIRBEHANE0Mw0CSJLxer0vSUfVKpUKxWGRtbc12UmKr1cI0TQD3t4PBoHtwgUAAv99Ps9kkn8/vjrjlcjlkWabdbrO8vEx3dzfhcJhoNEq9XkfTNERRxOfz4fV6sW0bSZJcBS+VSqytrdFqtbh+/bq9sLBALpdje3sbXddd4jutLwh/8WzLslBVdXeI12o1RFFkc3PTLTFjsRixWAxVVbEsC1mWkSTJdVXnMgyDarWKrusUi0X8fj+WZVGtVimXyxiGgW3bblh4PB78fj/tdhvbthFF0a3tv3Liuq4jiiKFQgFZlolEInR3d6MoConEXytLp1Bx0Ol0sG0bXdfRdZ1arYYgCNi2jaZptFot1zOcQ3LSnxMGzsHvCnHH/RqNBtFoFEmSCIfDAAwNDWFZFu12m0ajgaZpWJbl/oDH4/ncoTii5xBz1N+2bTqdDrIs4/P53MxgWRaapu2exQOBgHsAnU6HdrvN5uYmgUCASCRCJBIhkUhgmibNZpNarUaj0XAt71jfET1RFN1YliTJfUa73SaZTLK1tUWtVkPTNKampnaHuFNGyrKM1+t141bTNGq1GrVazS1EIpEI8XjcLWJqtdrnYthNF58pv23beL1eJEly1VzXder1Oq1Wi2AwiK7ru0PcSSs73bBYLBIMBpEkCdM0qVQq6LpOq9UiHA673Vmn08E0TfdyRM85CNM08Xq9bkoMhULugRqGgd/v3z1Xl2X5c24aDodRVZV4PO7W406/raoqtVqNYDCIz+dDURQ3vp3LuXeEz4nlTqdDOBxG13U3TBRF2b0mJRAI0Gg0EAQBTdPw+/2Uy2VXoJzRkkPEifNWq0UgEHCLEsedLcty1X1nzIdCIRRFoVQqUSqVsCyLYDBIPB7fncotlUq5JaWu6xiGgWmabG1tuanINE0EQXAPwSlk6vU6zWaTdruNpmnud3eWsk6fnkwmMU2Tzc1NVFVFURSi0SjpdHp3iB89ehRRFOnt7XWHCNFolFwu58ar08AYhuEWNH6/H4/H8zlL71R4J5XJskwgECAWi5HP51lZWaHVajE8PEw8Hufw4cO7Q3zfvn0C4E5MNU2jq6uLarVKPp//nPA5hYgzcYlEIoRCIfcQHLd3SDvEPR4PHo+HfD5PPp9HEARGRkYIhUIMDQ0Ju0Ic4NixY3g8Hnp7e8lms8RiMcLhMNlsFk3TXHW3bZtgMOjmfScEvF6vW8s7qczxgGazSSAQ4M9//jOqqlKpVHj88cfx+XyMjY3t7ujp1KlTQrlcdicupVKJkZER1tbWuHfvHqqqEolEiMVitNtt6vW6q+iNRoNms4kkSfh8PtfC0WgURVHo7+9nc3OTjY0N3n33XQYGBkilUiSTSU6ePCnsKnGA559/nkqlwtGjR8nn8/j9fh5//HEsy+LWrVvMz8+j6zqhUAifz4dhGG7z0mq1UFUVXdeJRCIEg0F32loqlbh37x53796lq6sLRVGIRCJMTEzs2pT1c8Qfe+wxYWpqyv1j2WyWVCpFIpGgUqkwNzfHnTt33JTnDCUlSaK7u5v+/n66u7vxeDxun16r1SgUCly/fp3bt29z+vRpBgcHqdVqRKPRB2uh8LOf/cyemZlhYWGBYDBIJBIBoFgs0mw2CYfDxONxfD4fg4ODros7vXWhUKDT6bg5/v3332dlZYWhoSHS6TSnTp1i3759VKtVzpw5w1c9dvpfNymvvPKKff36dbLZLIqiuBVWs9mk0WhgWZbbn4fDYURRRNM0AoEAvb29+Hw+Go0Gly9fZmNjg4mJCcbGxti/f787mJyfn6darTI5OcmJEyeEB4J4sVj8wfT09L/Pzs6SzWbdpWEikXBJGoZBs9kkGo0iyzKmabrLhtXVVTKZDJubm5w9e5YjR44wMDDAd7/7XWF2dtZeXFzkyJEj7pZm//79pFIpenp6vhIP+D8f8NZbb9nr6+ssLy+ztbXl1t5er9fdhxeLRSRJoquri0qlQiaTYXt7m0gkwpkzZ5BlmbGxMV544QX3eR9//LE9Pz/PsWPHuHHjBouLi0iSxMDAAMePH2dqakrYVeIAKysr9u3bt1leXnZn65qmoeu6W9AYhkGj0aBYLGKaJocOHeLRRx8lkUgwOTnpjp4d5HI5++OPP6ZcLjM+Ps61a9dYWFig2Wzi9Xp5/vnnOX36tLCrxHfi1q1b9tLSkuv+9XrdbTEVRSEWi5FMJhkdHWV4eJiDBw/+j8/Y2tr6+WuvvfYdwzBIpVJIkoSqqszPz1Ov17lw4QJf+9rXziYSiau7TvxvoVQqpUul0n2n2/oibz+899579k9/+lPC4TCnTp3i61//Orlcjp/85CdomsbTTz/NiRMn/pvH/CMotrQfyF/GD8Xj8aX/7yEePnx4dnx8fPJ3v/sdiqIwODjI5OSkcOPGDfvNN9/kypUr5PN5MpmMPT4+/qWQ71Z835fZZSSTyeMrKyt2vV7n7t27vPrqq1y7ds1+8sknhT/+8Y/2pUuXuHnzJs1mk6WlJTudTn8p5EUeAAwPDwvPPfccBw4cYHV1lc+KJ3t0dPTVixcvcvDgQebn53n55ZeZmZn5h1fLalv/twfqTaRMJmP/4he/YH19nSNHjnDhwgVisRj37t3jnXfeYWFhgQMHDnD+/HmeeuopYc9b3MH4+LjwrW99C0EQuHXrFtPT09RqNfr7+zlx4gTpdJqNjQ3efPNN3njjDbtYLP5gV1X9y8bly5ft119/nUqlwsmTJzl9+jQej4ePPvqITz75hLW1NYLBIJOTk5w7d46+vr4vzEN+EImfO3dOuHr1qv3666/z3nvvoWkaZ8+e5YknnnBXU5qmcfPmTQzDYG1tzR4cHBT2vMUdTE9P25cuXaJQKDA5OcmFCxfQdZ3Z2VkWFhbY2NhAURRSqRTPPvssY2Njwp62uINvfvObwp/+9Cf7V7/6FTdu3KDT6XD+/HmmpqbcoaaqqszOzmIYxhfK9Q80cYCJiQlhbm7OFgSBubk5vF4vzzzzDBMTE+7CMRgMsrCwwEsvvcS1a9fsb3zjG8KedvWd+OSTT+y3336bubk5JicnOXnyJJZl8eGHH7K2tkahUKDRaLBv3z4uXrzI2bNnhT1tcQdHjx4VMpmM3el0WFxcJBQKMTU1xbFjx6hWqwC0221WVlb49a9/zY0bN+wnn3xS2BN5/O/J88899xzDw8NkMhnm5uaIx+M8/fTT9PT0YFkWg4ODrK6u8sorrzA/P2/veVffidXVVfvdd99lenqa8+fPMzo6iqZp/OEPf2BhYYFWq4Usy4yMjHDx4kX+luXlvUh8aGhImJmZsS3L4vr165imSSqVYt++fbTbbWq1GtVqlWq1yt27d7l//749Ojoq7HniAFNTU8LS0pJdLpe5e/cu6+vrRCIRhoeHqVarrK6uous66+vrZLNZSqVS+rP2eW8TB0in00I2m3XVHqCvr49YLEYikXBfRiqXy+Ryufs7Q1tkj6O/v1/49re/zTPPPIMgCMzPz7sraJ/Ph9/vd/d3pVIp/U9hcQdOnX7p0iU7k8kgiqK76lIUxX19dKerC/wTYXt7+8zm5uaV5eVlNjY2iMfj+P1+hoeH6enpmd35evg/FXEHm1uF7ZXltXgg6EcSPSR7u/+zO9H1ff6VsFWq/pyHeIiHeIh/FfwXjVDdIW9O2PAAAAAASUVORK5CYII=" alt="MEME Logo">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7763 <h1>MEME</h1>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7764 <h2>Multiple Em for Motif Elicitation</h2>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7765 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7766 <p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7767 For further information on how to interpret these results or to get a
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7768 copy of the MEME software please access
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7769 <a href="http://meme-suite.org/">http://meme-suite.org</a>.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7770 </p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7771 <p>If you use MEME in your research, please cite the following paper:<br />
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7772 <span class="citation">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7773 Timothy L. Bailey and Charles Elkan,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7774 "Fitting a mixture model by expectation maximization to discover motifs in biopolymers",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7775 <em>Proceedings of the Second International Conference on Intelligent Systems
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7776 for Molecular Biology</em>, pp. 28-36, AAAI Press, Menlo Park, California, 1994.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7777 <a href="http://meme-suite.org/doc/ismb94.pdf">[pdf]</a>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7778 </span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7779 </p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7780 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7781 <!-- navigation -->
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7782 <div class="pad2">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7783 <a class="jump" href="#motifs_sec">Discovered Motifs</a>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7784 &nbsp;&nbsp;|&nbsp;&nbsp;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7785 <a class="jump" href="#sites_sec">Motif Locations</a>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7786 &nbsp;&nbsp;|&nbsp;&nbsp;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7787 <a class="jump" href="#inputs_sec">Inputs &amp; Settings</a>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7788 &nbsp;&nbsp;|&nbsp;&nbsp;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7789 <a class="jump" href="#info_sec">Program information</a>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7790 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7791 <!-- alert the user when their browser is not up to the task -->
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7792 <noscript><h1 style="color:red">Javascript is required to view these results!</h1></noscript>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7793 <h1 id="html5_warning" style="color:red; display:none;">Your browser does not support canvas!</h1>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7794 <script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7795 if (!window.HTMLCanvasElement) $("html5_warning").style.display = "block";
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7796 </script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7797 <h2 class="mainh pad2" id="motifs_sec">Discovered Motifs</h2>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7798 <div id="motifs" class="box">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7799 <p>Please wait... Loading...</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7800 <p>If the page has fully loaded and this message does not disappear then an error may have occurred.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7801 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7802 <h2 class="mainh pad2" id="sites_sec">Motif Locations</h2>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7803 <div id="blocks" class="box">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7804 <p>Please wait... Loading...</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7805 <p>If the page has fully loaded and this message does not disappear then an error may have occurred.</p>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7806 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7807 <h2 class="mainh pad2" id="inputs_sec">Inputs &amp; Settings</h2>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7808 <div class="box">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7809 <h4>Sequences</h4>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7810 <table id="seq_info" class="inputs">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7811 <tr><th>Source <div class="help" data-topic="pop_seq_source"></div></th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7812 <th class="col_psp">PSP Source <div class="help" data-topic="pop_psp_source"></div></th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7813 <th>Alphabet <div class="help" data-topic="pop_seq_alph"></div></th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7814 <th>Sequence Count <div class="help" data-topic="pop_seq_count"></div></th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7815 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7816 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7817 <td id="ins_seq_source"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7818 <td id="ins_seq_psp" class="col_psp"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7819 <td id="ins_seq_alphabet"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7820 <td id="ins_seq_count"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7821 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7822 </table>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7823 <script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7824 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7825 var db = data.sequence_db;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7826 $("ins_seq_source").innerHTML = db.source;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7827 $("ins_seq_alphabet").innerHTML = meme_alphabet.get_alphabet_name();
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7828 $("ins_seq_count").innerHTML = db.sequences.length;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7829 if (db.psp) {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7830 $("ins_seq_psp").innerHTML = db.psp;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7831 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7832 toggle_class($("seq_info"), "hide_psp", !(db.psp));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7833 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7834 </script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7835 <h4>Background</h4>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7836 <span id="alpha_bg"></span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7837 <script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7838 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7839 $("alpha_bg").appendChild(make_alpha_bg_table(meme_alphabet, data.sequence_db.freqs));
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7840 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7841 </script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7842 <h4>Other Settings</h4>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7843 <table id="tbl_settings" class="inputs hide_advanced">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7844 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7845 <th>Motif Site Distribution</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7846 <td id="opt_mod">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7847 <span class="mod_zoops">ZOOPS: Zero or one site per sequence</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7848 <span class="mod_oops">OOPS: Exactly one site per sequence</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7849 <span class="mod_anr">ANR: Any number of sites per sequence</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7850 </td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7851 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7852 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7853 <th>Site Strand Handling</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7854 <td id="opt_strand">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7855 <span class="strand_none">This alphabet only has one strand</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7856 <span class="strand_given">Sites must be on the given strand</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7857 <span class="strand_both">Sites may be on either strand</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7858 </td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7859 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7860 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7861 <th>Maximum Number of Motifs</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7862 <td id="opt_nmotifs"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7863 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7864 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7865 <th>Motif E-value Threshold</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7866 <td id="opt_evt"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7867 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7868 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7869 <th>Minimum Motif Width</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7870 <td id="opt_minw"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7871 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7872 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7873 <th>Maximum Motif Width</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7874 <td id="opt_maxw"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7875 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7876 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7877 <th>Minimum Sites per Motif</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7878 <td id="opt_minsites"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7879 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7880 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7881 <th>Maximum Sites per Motif</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7882 <td id="opt_maxsites"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7883 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7884 <tr class="advanced">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7885 <th>Bias on Number of Sites</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7886 <td id="opt_wnsites"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7887 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7888 <tr class="advanced">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7889 <th>Sequence Prior</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7890 <td id="opt_prior">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7891 <span class="prior_dirichlet">Simple Dirichlet</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7892 <span class="prior_dmix">Dirichlets Mix</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7893 <span class="prior_mega">Mega-weight Dirichlets Mix</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7894 <span class="prior_megap">Mega-weight Dirichlets Mix Plus</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7895 <span class="prior_addone">Add One</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7896 </td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7897 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7898 <tr class="advanced">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7899 <th>Sequence Prior Strength</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7900 <td id="opt_b"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7901 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7902 <tr class="advanced">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7903 <th>EM Starting Point Source</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7904 <td id="opt_substring">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7905 <span class="substring_on">From substrings in input sequences</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7906 <span class="substring_off">From strings on command line (-cons)</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7907 </td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7908 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7909 <tr class="advanced">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7910 <th>EM Starting Point Map Type</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7911 <td id="opt_spmap">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7912 <span class="spmap_uni">Uniform</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7913 <span class="spmap_pam">Point Accepted Mutation</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7914 </td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7915 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7916 <tr class="advanced">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7917 <th>EM Starting Point Fuzz</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7918 <td id="opt_spfuzz"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7919 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7920 <tr class="advanced">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7921 <th>EM Maximum Iterations</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7922 <td id="opt_maxiter"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7923 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7924 <tr class="advanced">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7925 <th>EM Improvement Threshold</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7926 <td id="opt_distance"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7927 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7928 <tr class="advanced">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7929 <th>Trim Gap Open Cost</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7930 <td id="opt_wg"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7931 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7932 <tr class="advanced">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7933 <th>Trim Gap Extend Cost</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7934 <td id="opt_ws"></td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7935 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7936 <tr class="advanced">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7937 <th>End Gap Treatment</th>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7938 <td id="opt_noendgaps">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7939 <span class="noendgaps_on">No cost</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7940 <span class="noendgaps_off">Same cost as other gaps</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7941 </td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7942 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7943 <tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7944 <td colspan="2" style="text-align: center">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7945 <a href="javascript:toggle_class(document.getElementById('tbl_settings'), 'hide_advanced')">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7946 <span class="show_more">Show Advanced Settings</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7947 <span class="show_less">Hide Advanced Settings</span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7948 </a>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7949 </td>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7950 </tr>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7951 </table>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7952 <script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7953 {
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7954 $("opt_mod").className = data.options.mod;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7955 $("opt_strand").className = (meme_alphabet.has_complement() ? (data.options.revcomp ? "both" : "given") : "none");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7956 $("opt_nmotifs").textContent = data.options.nmotifs;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7957 $("opt_evt").textContent = (typeof data.options.evt === "number" ? data.options.evt : "no limit");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7958 $("opt_minw").textContent = data.options.minw;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7959 $("opt_maxw").textContent = data.options.maxw;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7960 $("opt_minsites").textContent = data.options.minsites;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7961 $("opt_maxsites").textContent = data.options.maxsites;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7962 $("opt_wnsites").textContent = data.options.wnsites;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7963 $("opt_spmap").className = data.options.spmap;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7964 $("opt_spfuzz").textContent = data.options.spfuzz;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7965 $("opt_prior").className = data.options.prior;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7966 $("opt_b").textContent = data.options.b;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7967 $("opt_maxiter").textContent = data.options.maxiter;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7968 $("opt_distance").textContent = data.options.distance;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7969 $("opt_wg").textContent = data.options.wg;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7970 $("opt_ws").textContent = data.options.ws;
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7971 $("opt_noendgaps").className = (data.options.noendgaps ? "on" : "off");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7972 $("opt_substring").className = (data.options.substring ? "on" : "off");
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7973 }
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7974 </script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7975 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7976 <!-- list information on this program -->
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7977 <div id="info_sec" class="bar">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7978 <div class="subsection">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7979 <h5 id="version">MEME version</h5>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7980 <span id="ins_version"></span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7981 (Release date: <span id="ins_release"></span>)<br>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7982 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7983 <script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7984 $("ins_version").innerHTML = data["version"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7985 $("ins_release").innerHTML = data["release"];
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7986 </script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7987 <div class="subsection">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7988 <h5 id="reference">Reference</h5>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7989 <span class="citation">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7990 Timothy L. Bailey and Charles Elkan,
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7991 "Fitting a mixture model by expectation maximization to discover motifs in biopolymers",
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7992 <em>Proceedings of the Second International Conference on Intelligent Systems
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7993 for Molecular Biology</em>, pp. 28-36, AAAI Press, Menlo Park, California, 1994.
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7994 </span>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7995 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7996 <div class="subsection">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7997 <h5 id="command">Command line</h5>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7998 <textarea id="cmd" rows="5" style="width:100%;" readonly="readonly">
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7999 </textarea>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
8000 <script>$("cmd").value = data["cmd"].join(" ");</script>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
8001 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
8002 </div>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
8003
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
8004 </body>
cb8a2242bf03 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
8005 </html>