annotate test-data/meme_output_test2.html @ 13:57e5d9382f36 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:10:48 -0400
parents
children 3f0dd362b755
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1 <!DOCTYPE HTML>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2 <html>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3 <head>
57e5d9382f36 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">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5 <title>MEME</title>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6 <script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7 // @JSON_VAR data
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
8 var data = {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
9 "program": "MEME",
57e5d9382f36 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",
57e5d9382f36 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",
57e5d9382f36 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.",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
13 "cmd": [
57e5d9382f36 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_test2_out", "-nostatus",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
15 "-maxsize", "1000000", "-sf", "Galaxy_FASTA_Input", "-dna", "-mod",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
16 "zoops", "-nmotifs", "1", "-wnsites", "0.8", "-minw", "8", "-maxw",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
17 "50", "-wg", "11", "-ws", "1", "-maxiter", "50", "-distance",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
18 "0.001", "-prior", "dirichlet", "-b", "0.01", "-plib",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
19 "prior30.plib", "-spmap", "uni", "-spfuzz", "0.5"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
20 ],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
21 "options": {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
22 "mod": "zoops",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
23 "revcomp": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
24 "nmotifs": 1,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
25 "minw": 8,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
26 "maxw": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
27 "minsites": 2,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
28 "maxsites": 30,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
29 "wnsites": 0.8,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
30 "spmap": "uni",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
31 "spfuzz": 0.5,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
32 "maxwords": -1,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
33 "prior": "dirichlet",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
34 "b": 0.01,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
35 "maxiter": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
36 "distance": 0.001,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
37 "wg": 11,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
38 "ws": 1,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
39 "noendgaps": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
40 "substring": true
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
41 },
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
42 "alphabet": {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
43 "name": "DNA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
44 "like": "dna",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
45 "ncore": 4,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
46 "symbols": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
47 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
48 "symbol": "A",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
49 "name": "Adenine",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
50 "colour": "CC0000",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
51 "complement": "T"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
52 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
53 "symbol": "C",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
54 "name": "Cytosine",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
55 "colour": "0000CC",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
56 "complement": "G"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
57 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
58 "symbol": "G",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
59 "name": "Guanine",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
60 "colour": "FFB300",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
61 "complement": "C"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
62 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
63 "symbol": "T",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
64 "aliases": "U",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
65 "name": "Thymine",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
66 "colour": "008000",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
67 "complement": "A"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
68 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
69 "symbol": "N",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
70 "aliases": "X.",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
71 "name": "Any base",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
72 "equals": "ACGT"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
73 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
74 "symbol": "V",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
75 "name": "Not T",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
76 "equals": "ACG"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
77 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
78 "symbol": "H",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
79 "name": "Not G",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
80 "equals": "ACT"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
81 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
82 "symbol": "D",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
83 "name": "Not C",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
84 "equals": "AGT"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
85 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
86 "symbol": "B",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
87 "name": "Not A",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
88 "equals": "CGT"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
89 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
90 "symbol": "M",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
91 "name": "Amino",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
92 "equals": "AC"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
93 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
94 "symbol": "R",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
95 "name": "Purine",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
96 "equals": "AG"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
97 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
98 "symbol": "W",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
99 "name": "Weak",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
100 "equals": "AT"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
101 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
102 "symbol": "S",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
103 "name": "Strong",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
104 "equals": "CG"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
105 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
106 "symbol": "Y",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
107 "name": "Pyrimidine",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
108 "equals": "CT"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
109 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
110 "symbol": "K",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
111 "name": "Keto",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
112 "equals": "GT"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
113 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
114 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
115 },
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
116 "background": {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
117 "freqs": [0.294, 0.231, 0.257, 0.217]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
118 },
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
119 "sequence_db": {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
120 "source": "Galaxy_FASTA_Input",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
121 "psp_source": "prior30.plib",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
122 "freqs": [0.294, 0.231, 0.257, 0.217],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
123 "sequences": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
124 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
125 "name": "chr21_19617074_19617124_+",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
126 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
127 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
128 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
129 "name": "chr21_26934381_26934431_+",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
130 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
131 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
132 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
133 "name": "chr21_28217753_28217803_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
134 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
135 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
136 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
137 "name": "chr21_31710037_31710087_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
138 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
139 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
140 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
141 "name": "chr21_31744582_31744632_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
142 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
143 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
144 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
145 "name": "chr21_31768316_31768366_+",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
146 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
147 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
148 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
149 "name": "chr21_31914206_31914256_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
150 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
151 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
152 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
153 "name": "chr21_31933633_31933683_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
154 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
155 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
156 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
157 "name": "chr21_31962741_31962791_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
158 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
159 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
160 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
161 "name": "chr21_31964683_31964733_+",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
162 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
163 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
164 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
165 "name": "chr21_31973364_31973414_+",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
166 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
167 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
168 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
169 "name": "chr21_31992870_31992920_+",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
170 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
171 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
172 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
173 "name": "chr21_32185595_32185645_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
174 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
175 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
176 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
177 "name": "chr21_32202076_32202126_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
178 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
179 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
180 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
181 "name": "chr21_32253899_32253949_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
182 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
183 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
184 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
185 "name": "chr21_32410820_32410870_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
186 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
187 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
188 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
189 "name": "chr21_36411748_36411798_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
190 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
191 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
192 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
193 "name": "chr21_37838750_37838800_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
194 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
195 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
196 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
197 "name": "chr21_45705687_45705737_+",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
198 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
199 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
200 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
201 "name": "chr21_45971413_45971463_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
202 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
203 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
204 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
205 "name": "chr21_45978668_45978718_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
206 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
207 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
208 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
209 "name": "chr21_45993530_45993580_+",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
210 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
211 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
212 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
213 "name": "chr21_46020421_46020471_+",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
214 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
215 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
216 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
217 "name": "chr21_46031920_46031970_+",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
218 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
219 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
220 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
221 "name": "chr21_46046964_46047014_+",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
222 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
223 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
224 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
225 "name": "chr21_46057197_46057247_+",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
226 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
227 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
228 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
229 "name": "chr21_46086869_46086919_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
230 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
231 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
232 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
233 "name": "chr21_46102103_46102153_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
234 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
235 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
236 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
237 "name": "chr21_47517957_47518007_+",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
238 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
239 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
240 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
241 "name": "chr21_47575506_47575556_-",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
242 "length": 50,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
243 "weight": 1.000000
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
244 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
245 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
246 },
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
247 "motifs": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
248 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
249 "db": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
250 "id": "GGSRTATAAAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
251 "alt": "MEME-1",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
252 "len": 11,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
253 "nsites": 30,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
254 "evalue": "5.1e-040",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
255 "ic": 13.0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
256 "re": 12.2,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
257 "llr": 254,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
258 "bt": 5.2854,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
259 "time": 0.376000,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
260 "psm": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
261 [-14, -179, 114, -112], [3, -1155, 137, -270],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
262 [-114, 20, 86, -71], [3, -279, 122, -170],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
263 [-1155, -1155, -295, 215], [156, -179, -1155, -170],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
264 [-1155, -1155, -1155, 220], [172, -279, -1155, -1155],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
265 [125, -1155, -1155, 46], [167, -179, -1155, -1155],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
266 [144, -1155, -63, -270]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
267 ],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
268 "pwm": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
269 [0.266667, 0.066667, 0.566667, 0.100000],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
270 [0.300000, 0.000000, 0.666667, 0.033333],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
271 [0.133333, 0.266667, 0.466667, 0.133333],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
272 [0.300000, 0.033333, 0.600000, 0.066667],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
273 [0.000000, 0.000000, 0.033333, 0.966667],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
274 [0.866667, 0.066667, 0.000000, 0.066667],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
275 [0.000000, 0.000000, 0.000000, 1.000000],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
276 [0.966667, 0.033333, 0.000000, 0.000000],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
277 [0.700000, 0.000000, 0.000000, 0.300000],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
278 [0.933333, 0.066667, 0.000000, 0.000000],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
279 [0.800000, 0.000000, 0.166667, 0.033333]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
280 ],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
281 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
282 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
283 "seq": 24,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
284 "pos": 12,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
285 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
286 "pvalue": 4.51e-07,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
287 "lflank": "AAGGCCAGGA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
288 "match": "GGGGTATAAAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
289 "rflank": "GCCTGAGAGC"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
290 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
291 "seq": 23,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
292 "pos": 15,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
293 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
294 "pvalue": 2.22e-06,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
295 "lflank": "ATACCCAGGG",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
296 "match": "AGGGTATAAAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
297 "rflank": "CCTCAGCAGC"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
298 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
299 "seq": 13,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
300 "pos": 13,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
301 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
302 "pvalue": 2.74e-06,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
303 "lflank": "CCACCAGCTT",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
304 "match": "GAGGTATAAAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
305 "rflank": "AGCCCTGTAC"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
306 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
307 "seq": 25,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
308 "pos": 36,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
309 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
310 "pvalue": 4.86e-06,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
311 "lflank": "ACAGGCCCTG",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
312 "match": "GGCATATAAAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
313 "rflank": "GCC"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
314 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
315 "seq": 21,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
316 "pos": 7,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
317 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
318 "pvalue": 4.86e-06,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
319 "lflank": "CCAAGGA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
320 "match": "GGAGTATAAAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
321 "rflank": "GCCCCACAAA"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
322 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
323 "seq": 19,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
324 "pos": 9,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
325 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
326 "pvalue": 4.86e-06,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
327 "lflank": "CAGGCCCTG",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
328 "match": "GGCATATAAAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
329 "rflank": "GCCCCAGCAG"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
330 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
331 "seq": 9,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
332 "pos": 13,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
333 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
334 "pvalue": 4.86e-06,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
335 "lflank": "GATTCACTGA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
336 "match": "GGCATATAAAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
337 "rflank": "GGCCCTCTGC"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
338 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
339 "seq": 28,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
340 "pos": 32,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
341 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
342 "pvalue": 6.48e-06,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
343 "lflank": "CCGGCGGGGC",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
344 "match": "GGGGTATAAAG",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
345 "rflank": "GGGGCGG"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
346 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
347 "seq": 20,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
348 "pos": 4,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
349 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
350 "pvalue": 6.48e-06,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
351 "lflank": "CAGA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
352 "match": "GGGGTATAAAG",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
353 "rflank": "GTTCCGACCA"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
354 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
355 "seq": 12,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
356 "pos": 18,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
357 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
358 "pvalue": 6.48e-06,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
359 "lflank": "CACCAGAGCT",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
360 "match": "GGGATATATAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
361 "rflank": "AGAAGGTTCT"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
362 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
363 "seq": 15,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
364 "pos": 21,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
365 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
366 "pvalue": 1.38e-05,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
367 "lflank": "AATCACTGAG",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
368 "match": "GATGTATAAAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
369 "rflank": "GTCCCAGGGA"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
370 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
371 "seq": 11,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
372 "pos": 16,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
373 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
374 "pvalue": 1.38e-05,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
375 "lflank": "CACTATTGAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
376 "match": "GATGTATAAAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
377 "rflank": "TTTCATTTGC"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
378 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
379 "seq": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
380 "pos": 39,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
381 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
382 "pvalue": 1.41e-05,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
383 "lflank": "CCTCGGGACG",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
384 "match": "TGGGTATATAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
385 "rflank": ""
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
386 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
387 "seq": 6,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
388 "pos": 15,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
389 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
390 "pvalue": 1.61e-05,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
391 "lflank": "CCCACTACTT",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
392 "match": "AGAGTATAAAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
393 "rflank": "TCATTCTGAG"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
394 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
395 "seq": 22,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
396 "pos": 2,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
397 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
398 "pvalue": 1.95e-05,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
399 "lflank": "GA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
400 "match": "GACATATAAAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
401 "rflank": "GCCAACATCC"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
402 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
403 "seq": 14,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
404 "pos": 17,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
405 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
406 "pvalue": 1.95e-05,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
407 "lflank": "CCCACCAGCA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
408 "match": "AGGATATATAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
409 "rflank": "AAGCTCAGGA"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
410 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
411 "seq": 18,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
412 "pos": 37,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
413 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
414 "pvalue": 2.16e-05,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
415 "lflank": "CGTGGTCGCG",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
416 "match": "GGGGTATAACA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
417 "rflank": "GC"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
418 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
419 "seq": 29,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
420 "pos": 30,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
421 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
422 "pvalue": 3.04e-05,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
423 "lflank": "GCTGCCGGTG",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
424 "match": "AGCGTATAAAG",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
425 "rflank": "GCCCTGGCG"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
426 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
427 "seq": 4,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
428 "pos": 12,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
429 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
430 "pvalue": 3.04e-05,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
431 "lflank": "CAGGTCTAAG",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
432 "match": "AGCATATATAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
433 "rflank": "CTTGGAGTCC"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
434 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
435 "seq": 5,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
436 "pos": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
437 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
438 "pvalue": 3.67e-05,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
439 "lflank": "",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
440 "match": "AACGTATATAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
441 "rflank": "ATGGTCCTGT"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
442 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
443 "seq": 1,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
444 "pos": 27,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
445 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
446 "pvalue": 3.93e-05,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
447 "lflank": "AGTCACAAGT",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
448 "match": "GAGTTATAAAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
449 "rflank": "GGGTCGCACG"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
450 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
451 "seq": 7,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
452 "pos": 4,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
453 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
454 "pvalue": 5.65e-05,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
455 "lflank": "TCAG",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
456 "match": "AGTATATATAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
457 "rflank": "ATGTTCCTGT"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
458 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
459 "seq": 3,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
460 "pos": 14,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
461 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
462 "pvalue": 6.24e-05,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
463 "lflank": "CCCAGGTTTC",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
464 "match": "TGAGTATATAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
465 "rflank": "TCGCCGCACC"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
466 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
467 "seq": 16,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
468 "pos": 22,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
469 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
470 "pvalue": 7.15e-05,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
471 "lflank": "AGTTTCAGTT",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
472 "match": "GGCATCTAAAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
473 "rflank": "attatataac"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
474 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
475 "seq": 27,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
476 "pos": 36,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
477 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
478 "pvalue": 1.39e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
479 "lflank": "TGCCTGGGTC",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
480 "match": "CAGGTATAAAG",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
481 "rflank": "GCT"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
482 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
483 "seq": 26,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
484 "pos": 37,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
485 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
486 "pvalue": 1.39e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
487 "lflank": "TGCCTGGGCC",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
488 "match": "CAGGTATAAAG",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
489 "rflank": "GC"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
490 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
491 "seq": 17,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
492 "pos": 2,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
493 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
494 "pvalue": 4.81e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
495 "lflank": "ga",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
496 "match": "TGGTTTTATAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
497 "rflank": "ggggcctcac"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
498 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
499 "seq": 8,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
500 "pos": 13,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
501 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
502 "pvalue": 8.57e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
503 "lflank": "TATAACTCAG",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
504 "match": "GTTGGATAAAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
505 "rflank": "TAATTTGTAC"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
506 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
507 "seq": 10,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
508 "pos": 7,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
509 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
510 "pvalue": 1.47e-03,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
511 "lflank": "aaactta",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
512 "match": "AAACTCTATAA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
513 "rflank": "acttaaaact"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
514 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
515 "seq": 2,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
516 "pos": 26,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
517 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
518 "pvalue": 2.64e-03,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
519 "lflank": "GGTGGGGGTG",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
520 "match": "GGGGTTTCACT",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
521 "rflank": "GGTCCACTAT"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
522 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
523 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
524 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
525 ],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
526 "scan": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
527 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
528 "pvalue": 5.63e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
529 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
530 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
531 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
532 "pos": 39,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
533 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
534 "pvalue": 1.41e-05
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
535 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
536 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
537 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
538 "pvalue": 1.57e-03,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
539 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
540 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
541 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
542 "pos": 27,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
543 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
544 "pvalue": 3.93e-05
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
545 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
546 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
547 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
548 "pvalue": 1.00e-01,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
549 "sites": []
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
550 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
551 "pvalue": 2.49e-03,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
552 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
553 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
554 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
555 "pos": 14,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
556 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
557 "pvalue": 6.24e-05
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
558 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
559 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
560 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
561 "pvalue": 1.22e-03,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
562 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
563 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
564 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
565 "pos": 12,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
566 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
567 "pvalue": 3.04e-05
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
568 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
569 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
570 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
571 "pvalue": 1.47e-03,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
572 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
573 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
574 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
575 "pos": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
576 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
577 "pvalue": 3.67e-05
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
578 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
579 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
580 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
581 "pvalue": 6.45e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
582 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
583 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
584 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
585 "pos": 15,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
586 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
587 "pvalue": 1.61e-05
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
588 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
589 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
590 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
591 "pvalue": 2.26e-03,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
592 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
593 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
594 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
595 "pos": 4,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
596 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
597 "pvalue": 5.65e-05
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
598 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
599 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
600 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
601 "pvalue": 3.37e-02,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
602 "sites": []
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
603 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
604 "pvalue": 1.95e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
605 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
606 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
607 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
608 "pos": 13,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
609 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
610 "pvalue": 4.86e-06
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
611 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
612 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
613 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
614 "pvalue": 5.73e-02,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
615 "sites": []
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
616 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
617 "pvalue": 5.52e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
618 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
619 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
620 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
621 "pos": 16,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
622 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
623 "pvalue": 1.38e-05
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
624 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
625 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
626 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
627 "pvalue": 2.59e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
628 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
629 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
630 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
631 "pos": 18,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
632 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
633 "pvalue": 6.48e-06
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
634 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
635 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
636 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
637 "pvalue": 1.10e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
638 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
639 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
640 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
641 "pos": 13,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
642 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
643 "pvalue": 2.74e-06
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
644 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
645 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
646 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
647 "pvalue": 7.78e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
648 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
649 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
650 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
651 "pos": 17,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
652 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
653 "pvalue": 1.95e-05
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
654 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
655 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
656 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
657 "pvalue": 5.52e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
658 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
659 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
660 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
661 "pos": 21,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
662 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
663 "pvalue": 1.38e-05
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
664 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
665 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
666 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
667 "pvalue": 2.85e-03,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
668 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
669 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
670 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
671 "pos": 22,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
672 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
673 "pvalue": 7.15e-05
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
674 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
675 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
676 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
677 "pvalue": 1.90e-02,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
678 "sites": []
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
679 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
680 "pvalue": 8.63e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
681 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
682 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
683 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
684 "pos": 37,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
685 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
686 "pvalue": 2.16e-05
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
687 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
688 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
689 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
690 "pvalue": 1.95e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
691 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
692 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
693 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
694 "pos": 9,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
695 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
696 "pvalue": 4.86e-06
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
697 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
698 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
699 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
700 "pvalue": 2.59e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
701 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
702 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
703 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
704 "pos": 4,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
705 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
706 "pvalue": 6.48e-06
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
707 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
708 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
709 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
710 "pvalue": 1.95e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
711 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
712 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
713 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
714 "pos": 7,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
715 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
716 "pvalue": 4.86e-06
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
717 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
718 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
719 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
720 "pvalue": 7.78e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
721 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
722 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
723 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
724 "pos": 2,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
725 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
726 "pvalue": 1.95e-05
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
727 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
728 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
729 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
730 "pvalue": 8.89e-05,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
731 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
732 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
733 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
734 "pos": 15,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
735 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
736 "pvalue": 2.22e-06
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
737 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
738 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
739 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
740 "pvalue": 1.80e-05,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
741 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
742 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
743 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
744 "pos": 12,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
745 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
746 "pvalue": 4.51e-07
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
747 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
748 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
749 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
750 "pvalue": 1.95e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
751 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
752 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
753 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
754 "pos": 36,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
755 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
756 "pvalue": 4.86e-06
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
757 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
758 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
759 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
760 "pvalue": 5.54e-03,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
761 "sites": []
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
762 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
763 "pvalue": 5.54e-03,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
764 "sites": []
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
765 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
766 "pvalue": 2.59e-04,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
767 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
768 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
769 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
770 "pos": 32,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
771 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
772 "pvalue": 6.48e-06
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
773 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
774 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
775 }, {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
776 "pvalue": 1.22e-03,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
777 "sites": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
778 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
779 "motif": 0,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
780 "pos": 30,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
781 "rc": false,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
782 "pvalue": 3.04e-05
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
783 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
784 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
785 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
786 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
787 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
788 </script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
789 <script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
790 var site_url = "http://meme-suite.org";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
791 </script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
792 <script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
793
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
794 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
795 * $
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
796 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
797 * Shorthand function for getElementById
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
798 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
799 function $(el) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
800 return document.getElementById(el);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
801 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
802
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
803
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
804 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
805 * See http://stackoverflow.com/a/5450113/66387
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
806 * Does string multiplication like the perl x operator.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
807 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
808 function string_mult(pattern, count) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
809 if (count < 1) return '';
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
810 var result = '';
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
811 while (count > 1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
812 if (count & 1) result += pattern;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
813 count >>= 1, pattern += pattern;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
814 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
815 return result + pattern;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
816 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
817
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
818 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
819 * See http://stackoverflow.com/questions/814613/how-to-read-get-data-from-a-url-using-javascript
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
820 * Slightly modified with information from
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
821 * https://developer.mozilla.org/en/DOM/window.location
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
822 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
823 function parse_params() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
824 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
825 var search, queryStart, queryEnd, query, params, nvPairs, i, nv, n, v;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
826 search = window.location.search;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
827 queryStart = search.indexOf("?") + 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
828 queryEnd = search.indexOf("#") + 1 || search.length + 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
829 query = search.slice(queryStart, queryEnd - 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
830
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
831 if (query === search || query === "") return {};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
832
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
833 params = {};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
834 nvPairs = query.replace(/\+/g, " ").split("&");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
835
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
836 for (i = 0; i < nvPairs.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
837 nv = nvPairs[i].split("=");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
838 n = decodeURIComponent(nv[0]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
839 v = decodeURIComponent(nv[1]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
840 // allow a name to be used multiple times
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
841 // storing each value in the array
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
842 if (!(n in params)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
843 params[n] = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
844 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
845 params[n].push(nv.length === 2 ? v : null);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
846 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
847 return params;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
848 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
849
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
850 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
851 * coords
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
852 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
853 * Calculates the x and y offset of an element.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
854 * From http://www.quirksmode.org/js/findpos.html
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
855 * with alterations to take into account scrolling regions
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
856 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
857 function coords(elem) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
858 var myX = myY = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
859 if (elem.getBoundingClientRect) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
860 var rect;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
861 rect = elem.getBoundingClientRect();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
862 myX = rect.left + ((typeof window.pageXOffset !== "undefined") ?
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
863 window.pageXOffset : document.body.scrollLeft);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
864 myY = rect.top + ((typeof window.pageYOffset !== "undefined") ?
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
865 window.pageYOffset : document.body.scrollTop);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
866 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
867 // this fall back doesn't properly handle absolutely positioned elements
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
868 // inside a scrollable box
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
869 var node;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
870 if (elem.offsetParent) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
871 // subtract all scrolling
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
872 node = elem;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
873 do {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
874 myX -= node.scrollLeft ? node.scrollLeft : 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
875 myY -= node.scrollTop ? node.scrollTop : 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
876 } while (node = node.parentNode);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
877 // this will include the page scrolling (which is unwanted) so add it back on
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
878 myX += (typeof window.pageXOffset !== "undefined") ? window.pageXOffset : document.body.scrollLeft;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
879 myY += (typeof window.pageYOffset !== "undefined") ? window.pageYOffset : document.body.scrollTop;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
880 // sum up offsets
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
881 node = elem;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
882 do {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
883 myX += node.offsetLeft;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
884 myY += node.offsetTop;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
885 } while (node = node.offsetParent);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
886 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
887 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
888 return [myX, myY];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
889 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
890
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
891 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
892 * position_popup
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
893 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
894 * Positions a popup relative to an anchor element.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
895 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
896 * The avaliable positions are:
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
897 * 0 - Centered below the anchor.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
898 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
899 function position_popup(anchor, popup, position) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
900 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
901 var a_x, a_y, a_w, a_h, p_x, p_y, p_w, p_h;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
902 var a_xy, spacer, margin, scrollbar, page_w;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
903 // define constants
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
904 spacer = 5;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
905 margin = 15;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
906 scrollbar = 15;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
907 // define the positions and widths
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
908 a_xy = coords(anchor);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
909 a_x = a_xy[0];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
910 a_y = a_xy[1];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
911 a_w = anchor.offsetWidth;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
912 a_h = anchor.offsetHeight;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
913 p_w = popup.offsetWidth;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
914 p_h = popup.offsetHeight;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
915 page_w = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
916 if (window.innerWidth) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
917 page_w = window.innerWidth;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
918 } else if (document.body) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
919 page_w = document.body.clientWidth;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
920 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
921 // check the position type is defined
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
922 if (typeof position !== "number") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
923 position = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
924 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
925 // calculate the popup position
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
926 switch (position) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
927 case 1:
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
928 p_x = a_x + a_w + spacer;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
929 p_y = a_y + (a_h / 2) - (p_h / 2);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
930 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
931 case 0:
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
932 default:
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
933 p_x = a_x + (a_w / 2) - (p_w / 2);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
934 p_y = a_y + a_h + spacer;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
935 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
936 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
937 // constrain the popup position
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
938 if (p_x < margin) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
939 p_x = margin;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
940 } else if (page_w != null && (p_x + p_w) > (page_w - margin - scrollbar)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
941 p_x = page_w - margin - scrollbar - p_w;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
942 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
943 if (p_y < margin) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
944 p_y = margin;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
945 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
946 // position the popup
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
947 popup.style.left = p_x + "px";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
948 popup.style.top = p_y + "px";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
949 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
950
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
951 function lookup_help_popup(popup_id) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
952 var _body, pop, info;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
953 pop = document.getElementById(popup_id);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
954 if (pop == null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
955 _body = document.getElementsByTagName("body")[0];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
956 pop = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
957 pop.className = "pop_content";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
958 pop.id = popup_id;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
959 pop.style.backgroundColor = "#FFC";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
960 pop.style.borderColor = "black";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
961 info = document.createElement("p");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
962 info.style.fontWeight = "bold";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
963 info.appendChild(document.createTextNode("Error: No popup for topic \"" + popup_id + "\"."));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
964 pop.appendChild(info);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
965 // this might cause problems with the menu, but as this only happens
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
966 // when something is already wrong I don't think that's too much of a problem
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
967 _body.insertBefore(pop, _body.firstChild);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
968 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
969 if (document.getElementsByTagName('body')[0].hasAttribute("data-autobtns")) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
970 if (!/\bauto_buttons\b/.test(pop.className)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
971 pop.className += " auto_buttons";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
972 var back_btn_sec = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
973 back_btn_sec.className = "nested_only pop_back_sec";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
974 var back_btn = document.createElement("span");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
975 back_btn.className = "pop_back";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
976 back_btn.appendChild(document.createTextNode("<< back"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
977 back_btn.addEventListener("click", function(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
978 help_return();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
979 }, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
980 back_btn_sec.appendChild(back_btn);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
981 pop.insertBefore(back_btn_sec, pop.firstChild);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
982 var close_btn_sec = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
983 close_btn_sec.className = "pop_close_sec";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
984 var close_btn = document.createElement("span");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
985 close_btn.className = "pop_close";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
986 close_btn.appendChild(document.createTextNode("close"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
987 close_btn.addEventListener("click", function(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
988 help_popup();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
989 }, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
990 close_btn_sec.appendChild(close_btn);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
991 pop.appendChild(close_btn_sec);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
992 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
993 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
994 return pop;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
995 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
996
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
997 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
998 * help_popup
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
999 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1000 * Moves around help pop-ups so they appear
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1001 * below an activator.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1002 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1003 function help_popup(activator, popup_id) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1004 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1005 var pop;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1006 // set default values
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1007 if (typeof help_popup.popup === "undefined") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1008 help_popup.popup = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1009 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1010 if (typeof help_popup.activator === "undefined") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1011 help_popup.activator = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1012 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1013 var last_pop = (help_popup.popup.length > 0 ? help_popup.popup[help_popup.popup.length - 1] : null);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1014 if (typeof(activator) == "undefined") { // no activator so hide
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1015 if (last_pop != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1016 last_pop.style.display = 'none';
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1017 help_popup.popup = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1018 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1019 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1020 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1021 pop = lookup_help_popup(popup_id);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1022 if (pop == last_pop) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1023 if (activator == help_popup.activator) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1024 //hide popup (as we've already shown it for the current help button)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1025 last_pop.style.display = 'none';
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1026 help_popup.popup = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1027 return; // toggling complete!
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1028 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1029 } else if (last_pop != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1030 //activating different popup so hide current one
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1031 last_pop.style.display = 'none';
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1032 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1033 help_popup.popup = [pop];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1034 help_popup.activator = activator;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1035 toggle_class(pop, "nested", false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1036 //must make the popup visible to measure it or it has zero width
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1037 pop.style.display = 'block';
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1038 position_popup(activator, pop);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1039 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1040
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1041 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1042 * help_refine
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1043 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1044 * Intended for links within a help popup. Stores a stack of state so
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1045 * you can go back.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1046 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1047 function help_refine(popup_id) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1048 if (help_popup.popup == null || help_popup.popup.length == 0 || help_popup.activator == null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1049 throw new Error("Can not refine a help popup when one is not shown!");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1050 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1051 var pop = lookup_help_popup(popup_id);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1052 var last_pop = help_popup.popup[help_popup.popup.length - 1];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1053 if (pop == last_pop) return; // slightly odd, but no real cause for alarm
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1054 help_popup.popup.push(pop);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1055 toggle_class(pop, "nested", true);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1056 last_pop.style.display = "none";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1057 //must make the popup visible to measure it or it has zero width
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1058 pop.style.display = "block";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1059 position_popup(help_popup.activator, pop);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1060 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1061
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1062 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1063 * help_return
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1064 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1065 * Intended for links within a help popup. Stores a stack of state so
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1066 * you can go back.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1067 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1068 function help_return() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1069 if (help_popup.popup == null || help_popup.popup.length == 0 || help_popup.activator == null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1070 throw new Error("Can not return to a earlier help popup when one is not shown!");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1071 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1072 var last_pop = help_popup.popup.pop();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1073 last_pop.style.display = "none";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1074 var pop = (help_popup.popup.length > 0 ? help_popup.popup[help_popup.popup.length - 1] : null);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1075 if (pop != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1076 toggle_class(pop, "nested", help_popup.popup.length > 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1077 pop.style.display = "block";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1078 position_popup(help_popup.activator, pop);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1079 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1080 help_popup.activator = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1081 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1082 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1083
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1084 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1085 * update_scroll_pad
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1086 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1087 * Creates padding at the bottom of the page to allow
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1088 * scrolling of anything into view.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1089 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1090 function update_scroll_pad() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1091 var page, pad;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1092 page = (document.compatMode === "CSS1Compat") ? document.documentElement : document.body;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1093 pad = $("scrollpad");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1094 if (pad === null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1095 pad = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1096 pad.id = 'scrollpad';
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1097 document.getElementsByTagName('body')[0].appendChild(pad);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1098 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1099 pad.style.height = Math.abs(page.clientHeight - 100) + "px";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1100 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1101
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1102 function substitute_classes(node, remove, add) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1103 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1104 var list, all, i, cls, classes;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1105 list = node.className.split(/\s+/);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1106 all = {};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1107 for (i = 0; i < list.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1108 if (list[i].length > 0) all[list[i]] = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1109 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1110 for (i = 0; i < remove.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1111 if (all.hasOwnProperty(remove[i])) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1112 delete all[remove[i]];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1113 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1114 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1115 for (i = 0; i < add.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1116 all[add[i]] = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1117 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1118 classes = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1119 for (cls in all) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1120 classes += cls + " ";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1121 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1122 node.className = classes;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1123 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1124
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1125 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1126 * toggle_class
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1127 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1128 * Adds or removes a class from the node. If the parameter 'enabled' is not
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1129 * passed then the existence of the class will be toggled, otherwise it will be
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1130 * included if enabled is true.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1131 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1132 function toggle_class(node, cls, enabled) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1133 var classes = node.className;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1134 var list = classes.replace(/^\s+/, '').replace(/\s+$/, '').split(/\s+/);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1135 var found = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1136 for (var i = 0; i < list.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1137 if (list[i] == cls) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1138 list.splice(i, 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1139 i--;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1140 found = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1141 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1142 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1143 if (typeof enabled == "undefined") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1144 if (!found) list.push(cls);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1145 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1146 if (enabled) list.push(cls);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1147 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1148 node.className = list.join(" ");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1149 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1150
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1151 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1152 * find_child
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1153 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1154 * Searches child nodes in depth first order and returns the first it finds
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1155 * with the className specified.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1156 * TODO replace with querySelector
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1157 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1158 function find_child(node, className) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1159 var pattern;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1160 if (node == null || typeof node !== "object") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1161 return null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1162 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1163 if (typeof className === "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1164 pattern = new RegExp("\\b" + className + "\\b");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1165 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1166 pattern = className;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1167 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1168 if (node.nodeType == Node.ELEMENT_NODE &&
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1169 pattern.test(node.className)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1170 return node;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1171 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1172 var result = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1173 for (var i = 0; i < node.childNodes.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1174 result = find_child(node.childNodes[i], pattern);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1175 if (result != null) break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1176 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1177 return result;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1178 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1179 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1180
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1181 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1182 * find_parent
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1183 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1184 * Searches parent nodes outwards from the node and returns the first it finds
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1185 * with the className specified.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1186 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1187 function find_parent(node, className) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1188 var pattern;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1189 pattern = new RegExp("\\b" + className + "\\b");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1190 do {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1191 if (node.nodeType == Node.ELEMENT_NODE &&
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1192 pattern.test(node.className)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1193 return node;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1194 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1195 } while (node = node.parentNode);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1196 return null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1197 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1198
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1199 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1200 * find_parent_tag
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1201 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1202 * Searches parent nodes outwards from the node and returns the first it finds
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1203 * with the tag name specified. HTML tags should be specified in upper case.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1204 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1205 function find_parent_tag(node, tag_name) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1206 do {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1207 if (node.nodeType == Node.ELEMENT_NODE && node.tagName == tag_name) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1208 return node;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1209 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1210 } while (node = node.parentNode);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1211 return null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1212 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1213
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1214 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1215 * __toggle_help
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1216 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1217 * Uses the 'topic' property of the this object to
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1218 * toggle display of a help topic.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1219 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1220 * This function is not intended to be called directly.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1221 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1222 function __toggle_help(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1223 if (!e) e = window.event;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1224 if (e.type === "keydown") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1225 if (e.keyCode !== 13 && e.keyCode !== 32) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1226 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1227 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1228 // stop a submit or something like that
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1229 e.preventDefault();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1230 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1231
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1232 help_popup(this, this.getAttribute("data-topic"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1233 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1234
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1235 function setup_help_button(button) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1236 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1237 var topic;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1238 if (button.hasAttribute("data-topic")) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1239 topic = button.getAttribute("data-topic");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1240 if (document.getElementById(topic) != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1241 button.tabIndex = "0"; // make keyboard selectable
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1242 button.addEventListener("click", function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1243 help_popup(button, topic);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1244 }, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1245 button.addEventListener("keydown", function(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1246 // toggle only on Enter or Spacebar, let other keys do their thing
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1247 if (e.keyCode !== 13 && e.keyCode !== 32) return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1248 // stop a submit or something like that
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1249 e.preventDefault();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1250 help_popup(button, topic);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1251 }, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1252 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1253 button.style.visibility = "hidden";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1254 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1255 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1256 button.className += " active";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1257 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1258
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1259 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1260 * help_button
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1261 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1262 * Makes a help button for the passed topic.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1263 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1264 function help_button(topic) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1265 var btn = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1266 btn.className = "help";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1267 btn.setAttribute("data-topic", topic);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1268 setup_help_button(btn);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1269 return btn;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1270 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1271
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1272 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1273 * prepare_download
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1274 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1275 * Sets the attributes of a link to setup a file download using the given content.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1276 * If no link is provided then create one and click it.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1277 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1278 function prepare_download(content, mimetype, filename, link) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1279 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1280 // if no link is provided then create one and click it
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1281 var click_link = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1282 if (!link) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1283 link = document.createElement("a");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1284 click_link = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1285 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1286 try {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1287 // Use a BLOB to convert the text into a data URL.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1288 // We could do this manually with a base 64 conversion.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1289 // This will only be supported on modern browsers,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1290 // hence the try block.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1291 var blob = new Blob([content], {type: mimetype});
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1292 var reader = new FileReader();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1293 reader.onloadend = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1294 // If we're lucky the browser will also support the download
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1295 // attribute which will let us suggest a file name to save the link.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1296 // Otherwise it is likely that the filename will be unintelligible.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1297 link.setAttribute("download", filename);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1298 link.href = reader.result;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1299 if (click_link) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1300 // must add the link to click it
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1301 document.body.appendChild(link);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1302 link.click();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1303 document.body.removeChild(link);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1304 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1305 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1306 reader.readAsDataURL(blob);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1307 } catch (error) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1308 if (console && console.log) console.log(error);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1309 // probably an old browser
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1310 link.href = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1311 link.visible = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1312 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1313 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1314
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1315 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1316 * add_cell
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1317 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1318 * Add a cell to the table row.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1319 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1320 function add_cell(row, node, cls, click_action) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1321 var cell = row.insertCell(row.cells.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1322 if (node) cell.appendChild(node);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1323 if (cls && cls !== "") cell.className = cls;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1324 if (click_action) cell.addEventListener("click", click_action, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1325 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1326
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1327 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1328 * add_header_cell
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1329 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1330 * Add a header cell to the table row.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1331 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1332 function add_header_cell(row, node, help_topic, cls, colspan) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1333 var th = document.createElement("th");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1334 if (node) th.appendChild(node);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1335 if (help_topic && help_topic !== "") th.appendChild(help_button(help_topic));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1336 if (cls && cls !== "") th.className = cls;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1337 if (typeof colspan == "number" && colspan > 1) th.colSpan = colspan;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1338 row.appendChild(th);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1339 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1340
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1341 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1342 * add_text_cell
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1343 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1344 * Add a text cell to the table row.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1345 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1346 function add_text_cell(row, text, cls, action) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1347 var node = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1348 if (typeof(text) != 'undefined') node = document.createTextNode(text);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1349 add_cell(row, node, cls, action);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1350 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1351
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1352 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1353 * add_text_header_cell
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1354 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1355 * Add a text header cell to the table row.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1356 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1357 function add_text_header_cell(row, text, help_topic, cls, action, colspan) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1358 var node = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1359 if (typeof(text) != 'undefined') {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1360 var nbsp = (help_topic ? "\u00A0" : "");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1361 var str = "" + text;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1362 var parts = str.split(/\n/);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1363 if (parts.length === 1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1364 if (action) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1365 node = document.createElement("span");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1366 node.appendChild(document.createTextNode(str + nbsp));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1367 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1368 node = document.createTextNode(str + nbsp);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1369 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1370 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1371 node = document.createElement("span");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1372 for (var i = 0; i < parts.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1373 if (i !== 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1374 node.appendChild(document.createElement("br"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1375 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1376 node.appendChild(document.createTextNode(parts[i]));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1377 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1378 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1379 if (action) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1380 node.addEventListener("click", action, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1381 node.style.cursor = "pointer";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1382 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1383 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1384 add_header_cell(row, node, help_topic, cls, colspan);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1385 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1386
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1387 function setup_help() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1388 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1389 var help_buttons, i;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1390 help_buttons = document.querySelectorAll(".help:not(.active)");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1391 for (i = 0; i < help_buttons.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1392 setup_help_button(help_buttons[i]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1393 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1394 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1395
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1396 function setup_scrollpad() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1397 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1398 if (document.getElementsByTagName('body')[0].hasAttribute("data-scrollpad") && document.getElementById("scrollpad") == null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1399 window.addEventListener("resize", update_scroll_pad, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1400 update_scroll_pad();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1401 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1402 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1403
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1404 // anon function to avoid polluting global scope
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1405 (function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1406 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1407 window.addEventListener("load", function load(evt) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1408 window.removeEventListener("load", load, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1409 setup_help();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1410 setup_scrollpad();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1411 }, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1412 })();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1413
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1414 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1415 * make_link
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1416 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1417 * Creates a text node and if a URL is specified it surrounds it with a link.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1418 * If the URL doesn't begin with "http://" it automatically adds it, as
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1419 * relative links don't make much sense in this context.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1420 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1421 function make_link(text, url) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1422 var textNode = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1423 var link = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1424 if (typeof text !== "undefined" && text !== null) textNode = document.createTextNode(text);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1425 if (typeof url === "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1426 if (url.indexOf("//") == -1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1427 url = "http://" + url;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1428 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1429 link = document.createElement('a');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1430 link.href = url;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1431 if (textNode) link.appendChild(textNode);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1432 return link;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1433 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1434 return textNode;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1435 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1436 </script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1437 <script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1438 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1439 // return true if any part of the passed element is visible in the viewport
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1440 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1441 function element_in_viewport(elem) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1442 var rect;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1443 try {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1444 rect = elem.getBoundingClientRect();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1445 } catch (e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1446 return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1447 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1448 return (
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1449 rect.top < (window.innerHeight || document.body.clientHeight) &&
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1450 rect.bottom > 0 &&
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1451 rect.left < (window.innerWidth || document.body.clientWidth) &&
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1452 rect.right > 0
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1453 );
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1454 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1455
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1456 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1457 // Functions to delay a drawing task until it is required or it would not lag the display to do so
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1458 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1459
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1460 // a list of items still to be drawn
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1461 var drawable_list = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1462 // the delay between drawing objects that are not currently visible
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1463 var draw_delay = 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1464 // the delay after a user interaction
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1465 var user_delay = 300;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1466 // the delay after a user has stopped scrolling and is viewing the stuff drawn on the current page
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1467 var stop_delay = 300;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1468 // the timer handle; allows resetting of the timer after user interactions
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1469 var draw_timer = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1470
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1471 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1472 // Drawable
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1473 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1474 // elem - a page element which defines the position on the page that drawing is to be done
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1475 // task - an object with the method run which takes care of painting the object
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1476 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1477 var Drawable = function(elem, task) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1478 this.elem = elem;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1479 this.task = task;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1480 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1481
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1482 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1483 // Drawable.is_visible
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1484 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1485 // Determines if the element is visible in the viewport
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1486 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1487 Drawable.prototype.is_visible = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1488 return element_in_viewport(this.elem);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1489 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1490
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1491 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1492 // Drawable.run
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1493 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1494 // Run the task held by the drawable
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1495 Drawable.prototype.run = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1496 if (this.task) this.task.run();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1497 this.task = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1498 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1499
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1500 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1501 // Drawable.run
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1502 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1503 // Run the task iff visible
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1504 // returns true if the task ran or has already run
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1505 Drawable.prototype.run_visible = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1506 if (this.task) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1507 if (element_in_viewport(this.elem)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1508 this.task.run();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1509 this.task = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1510 return true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1511 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1512 return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1513 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1514 return true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1515 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1516 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1517
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1518 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1519 // draw_on_screen
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1520 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1521 // Checks each drawable object and draws those on screen.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1522 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1523 function draw_on_screen() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1524 var found = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1525 for (var i = 0; i < drawable_list.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1526 if (drawable_list[i].run_visible()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1527 drawable_list.splice(i--, 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1528 found = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1529 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1530 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1531 return found;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1532 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1533
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1534 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1535 // process_draw_tasks
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1536 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1537 // Called on a delay to process the next avaliable
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1538 // draw task.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1539 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1540 function process_draw_tasks() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1541 var delay = draw_delay;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1542 draw_timer = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1543 if (drawable_list.length == 0) return; //no more tasks
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1544 if (draw_on_screen()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1545 delay = stop_delay; //give the user a chance to scroll
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1546 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1547 //get next task
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1548 var drawable = drawable_list.shift();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1549 drawable.task.run();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1550 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1551 //allow UI updates between tasks
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1552 draw_timer = window.setTimeout("process_draw_tasks()", delay);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1553 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1554
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1555 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1556 // delayed_process_draw_tasks
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1557 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1558 // Call process_draw_tasks after a short delay.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1559 // The delay serves to group multiple redundant events.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1560 // Should be set as event handler for onscroll and onresize.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1561 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1562 function delayed_process_draw_tasks() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1563 //reset the timer
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1564 if (drawable_list.length > 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1565 if (draw_timer != null) clearTimeout(draw_timer);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1566 draw_timer = window.setTimeout("process_draw_tasks()", user_delay);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1567 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1568 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1569
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1570 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1571 // add_draw_task
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1572 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1573 // Add a drawing task to be called immediately if it is
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1574 // visible, or to be called on a delay to reduce stuttering
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1575 // effect on the web browser.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1576 function add_draw_task(elem, task) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1577 drawable = new Drawable(elem, task);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1578 if (drawable.is_visible()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1579 task.run();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1580 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1581 drawable_list.push(drawable);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1582 //reset timer
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1583 if (draw_timer != null) clearTimeout(draw_timer);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1584 draw_timer = window.setTimeout("process_draw_tasks()", user_delay);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1585 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1586 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1587
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1588 </script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1589 <script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1590 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1591 // start Alphabet object
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1592 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1593 var Alphabet = function(alphabet, background) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1594 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1595 var i, j, sym, aliases, complement, comp_e_sym, ambigs, generate_background;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1596 generate_background = (background == null);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1597 if (generate_background) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1598 background = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1599 for (i = 0; i < alphabet.ncore; i++) background[i] = 1.0 / alphabet.ncore;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1600 } else if (alphabet.ncore != background.length) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1601 throw new Error("The background length does not match the alphabet length.");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1602 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1603 this.name = alphabet.name;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1604 this.like = (alphabet.like != null ? alphabet.like.toUpperCase() : null);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1605 this.ncore = alphabet.ncore;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1606 this.symbols = alphabet.symbols;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1607 this.background = background;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1608 this.genbg = generate_background;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1609 this.encode = {};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1610 this.encode2core = {};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1611 this.complement = {};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1612 // check if all symbols are same case
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1613 var seen_uc = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1614 var seen_lc = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1615 var check_case = function (syms) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1616 var s, sym;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1617 if (typeof syms === "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1618 for (s = 0; s < syms.length; s++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1619 sym = syms.charAt(s);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1620 if (sym >= 'a' && sym <= 'z') seen_lc = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1621 else if (sym >= 'A' && sym <= 'Z') seen_uc = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1622 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1623 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1624 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1625 for (i = 0; i < this.symbols.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1626 check_case(this.symbols[i].symbol);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1627 check_case(this.symbols[i].aliases);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1628 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1629 // now map symbols to indexes
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1630 var update_array = function(array, syms, index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1631 var s, sym;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1632 if (typeof syms === "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1633 for (s = 0; s < syms.length; s++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1634 sym = syms.charAt(s);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1635 array[sym] = index;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1636 // when only a single case is used, then encode as case insensitive
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1637 if (seen_uc != seen_lc) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1638 if (sym >= 'a' && sym <= 'z') {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1639 array[sym.toUpperCase()] = index;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1640 } else if (sym >= 'A' && sym <= 'Z') {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1641 array[sym.toLowerCase()] = index;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1642 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1643 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1644 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1645 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1646 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1647 // map core symbols to index
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1648 for (i = 0; i < this.ncore; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1649 update_array(this.encode2core, this.symbols[i].symbol, i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1650 update_array(this.encode, this.symbols[i].symbol, i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1651 update_array(this.encode2core, this.symbols[i].aliases, i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1652 update_array(this.encode, this.symbols[i].aliases, i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1653 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1654 // map ambigous symbols to index
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1655 ambigs = {};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1656 for (i = this.ncore; i < this.symbols.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1657 update_array(this.encode, this.symbols[i].symbol, i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1658 update_array(this.encode, this.symbols[i].aliases, i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1659 ambigs[this.symbols[i].equals] = i;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1660 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1661 // determine complements
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1662 for (i = 0; i < this.ncore; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1663 complement = this.symbols[i].complement;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1664 if (typeof complement === "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1665 this.complement[i] = this.encode2core[complement];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1666 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1667 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1668 next_symbol:
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1669 for (i = this.ncore; i < this.symbols.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1670 complement = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1671 for (j = 0; j < this.symbols[i].equals.length; j++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1672 comp_e_sym = this.complement[this.encode2core[this.symbols[i].equals.charAt(j)]];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1673 if (typeof comp_e_sym !== "number") continue next_symbol;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1674 complement += this.symbols[comp_e_sym].symbol;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1675 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1676 complement = complement.split("").sort().join("");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1677 if (typeof ambigs[complement] === "number") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1678 this.complement[i] = ambigs[complement];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1679 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1680 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1681 // determine case insensitivity
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1682 this.case_insensitive = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1683 if (seen_uc == seen_lc) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1684 // when there is a mixture of cases it probably won't
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1685 // be case insensitive but we still need to check
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1686 loop:
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1687 for (i = 0; i < this.symbols.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1688 sym = this.symbols[i].symbol;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1689 if (sym >= 'A' && sym <= 'Z') {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1690 if (this.encode[sym.toLowerCase()] != i) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1691 this.case_insensitive = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1692 break loop;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1693 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1694 } else if (sym >= 'a' && sym <= 'z') {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1695 if (this.encode[sym.toUpperCase()] != i) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1696 this.case_insensitive = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1697 break loop;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1698 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1699 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1700 aliases = this.symbols[i].aliases;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1701 if (aliases != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1702 for (j = 0; j < aliases.length; j++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1703 sym = aliases.charAt(j);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1704 if (sym >= 'A' && sym <= 'Z') {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1705 if (this.encode[sym.toLowerCase()] != i) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1706 this.case_insensitive = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1707 break loop;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1708 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1709 } else if (sym >= 'a' && sym <= 'z') {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1710 if (this.encode[sym.toUpperCase()] != i) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1711 this.case_insensitive = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1712 break loop;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1713 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1714 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1715 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1716 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1717 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1718 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1719 // normalise aliases to remove the prime symbol and eliminate
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1720 // the alternate cases when the alphabet is case insensitive
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1721 var seen, out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1722 for (i = 0; i < this.symbols.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1723 sym = this.symbols[i].symbol;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1724 aliases = this.symbols[i].aliases;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1725 if (typeof aliases != "string") aliases = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1726 seen = {};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1727 out = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1728 if (this.case_insensitive) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1729 sym = sym.toUpperCase();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1730 aliases = aliases.toUpperCase();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1731 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1732 seen[sym] = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1733 for (j = 0; j < aliases.length; j++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1734 if (!seen[aliases.charAt(j)]) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1735 seen[aliases.charAt(j)] = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1736 out.push(aliases.charAt(j));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1737 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1738 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1739 this.symbols[i].aliases = out.sort().join("");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1740 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1741 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1742 // return the name of the alphabet
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1743 Alphabet.prototype.get_alphabet_name = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1744 return this.name;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1745 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1746 // return if the alphabet can be complemented
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1747 Alphabet.prototype.has_complement = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1748 return (typeof this.symbols[0].complement === "string");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1749 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1750 // return true if an uppercase letter has the same meaning as the lowercase form
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1751 Alphabet.prototype.is_case_insensitive = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1752 return this.case_insensitive;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1753 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1754 // return the information content of an alphabet letter
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1755 Alphabet.prototype.get_ic = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1756 return Math.log(this.ncore) / Math.LN2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1757 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1758 // return the count of the core alphabet symbols
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1759 Alphabet.prototype.get_size_core = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1760 return this.ncore;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1761 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1762 // return the count of all alphabet symbols
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1763 Alphabet.prototype.get_size_full = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1764 return this.symbols.length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1765 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1766 // return the symbol for the given alphabet index
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1767 Alphabet.prototype.get_symbol = function(alph_index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1768 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1769 if (alph_index < 0 || alph_index >= this.symbols.length) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1770 throw new Error("Alphabet index out of bounds");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1771 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1772 return this.symbols[alph_index].symbol;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1773 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1774 // return the aliases for the given alphabet index
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1775 Alphabet.prototype.get_aliases = function(alph_index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1776 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1777 if (alph_index < 0 || alph_index >= this.symbols.length) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1778 throw new Error("Alphabet index out of bounds");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1779 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1780 var sym_obj = this.symbols[alph_index];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1781 return (sym_obj.aliases != null ? sym_obj.aliases : "");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1782 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1783 // return the name for the given alphabet index
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1784 Alphabet.prototype.get_name = function(alph_index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1785 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1786 var sym;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1787 if (alph_index < 0 || alph_index >= this.symbols.length) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1788 throw new Error("Alphabet index out of bounds");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1789 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1790 sym = this.symbols[alph_index];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1791 return (typeof sym.name === "string" ? sym.name : sym.symbol);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1792 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1793 // return the alphabet it is like or null
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1794 Alphabet.prototype.get_like = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1795 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1796 return this.like;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1797 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1798 // return the index of the complement for the given alphabet index
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1799 Alphabet.prototype.get_complement = function(alph_index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1800 var comp_e_sym = this.complement[alph_index];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1801 if (typeof comp_e_sym === "number") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1802 return comp_e_sym;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1803 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1804 return -1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1805 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1806 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1807 // return a string containing the core symbols
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1808 Alphabet.prototype.get_symbols = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1809 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1810 var i, core_symbols;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1811 core_symbols = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1812 for (i = 0; i < this.ncore; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1813 core_symbols += this.symbols[i].symbol;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1814 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1815 return core_symbols;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1816 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1817 // return if the background was not a uniform generated background
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1818 Alphabet.prototype.has_bg = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1819 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1820 return !this.genbg;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1821 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1822 // get the background frequency for the index
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1823 Alphabet.prototype.get_bg_freq = function(alph_index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1824 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1825 var freq, i, symbols;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1826 if (alph_index >= 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1827 if (alph_index < this.ncore) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1828 return this.background[alph_index];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1829 } else if (alph_index < this.symbols.length) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1830 freq = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1831 symbols = this.symbols[alph_index].equals;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1832 for (i = 0; i < symbols.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1833 freq += this.background[this.encode2core[symbols.charAt(i)]];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1834 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1835 return freq;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1836 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1837 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1838 throw new Error("The alphabet index is out of range.");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1839 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1840 // get the colour of the index
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1841 Alphabet.prototype.get_colour = function(alph_index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1842 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1843 if (alph_index < 0 || alph_index >= this.symbols.length) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1844 throw new Error("BAD_ALPHABET_INDEX");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1845 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1846 if (typeof this.symbols[alph_index].colour != "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1847 return "black";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1848 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1849 return "#" + this.symbols[alph_index].colour;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1850 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1851 // get the rgb componets of the colour at the index
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1852 Alphabet.prototype.get_rgb = function(alph_index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1853 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1854 if (alph_index < 0 || alph_index >= this.symbols.length) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1855 throw new Error("BAD_ALPHABET_INDEX");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1856 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1857 if (typeof this.symbols[alph_index].colour != "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1858 return {"red": 0, "green": 0, "blue": 0};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1859 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1860 var colour = this.symbols[alph_index].colour;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1861 var red = parseInt(colour.substr(0, 2), 16) / 255;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1862 var green = parseInt(colour.substr(2, 2), 16) / 255;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1863 var blue = parseInt(colour.substr(4, 2), 16) / 255;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1864 return {"red": red, "green": green, "blue": blue};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1865 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1866 // convert a symbol into the index
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1867 Alphabet.prototype.get_index = function(letter) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1868 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1869 var alph_index;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1870 alph_index = this.encode[letter];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1871 if (typeof alph_index === "undefined") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1872 return -1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1873 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1874 return alph_index;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1875 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1876 // convert a symbol into the list of core indexes that it equals
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1877 Alphabet.prototype.get_indexes = function(letter) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1878 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1879 var alph_index, comprise_str, i, comprise_list;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1880 alph_index = this.encode[letter];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1881 if (typeof alph_index === "undefined") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1882 throw new Error("Unknown letter");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1883 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1884 comprise_str = this.symbols[alph_index].equals;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1885 comprise_list = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1886 if (typeof comprise_str == "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1887 for (i = 0; i < comprise_str.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1888 comprise_list.push(this.encode2core[comprise_str.charAt(i)]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1889 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1890 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1891 comprise_list.push(alph_index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1892 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1893 return comprise_list;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1894 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1895 // check if a symbol is the primary way of representing the symbol in the alphabet
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1896 Alphabet.prototype.is_prime_symbol = function(letter) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1897 var alph_index;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1898 alph_index = this.encode[letter];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1899 if (alph_index == null) return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1900 if (this.is_case_insensitive()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1901 return (this.symbols[alph_index].symbol.toUpperCase() == letter.toUpperCase());
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1902 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1903 return (this.symbols[alph_index].symbol == letter);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1904 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1905 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1906 // compare 2 alphabets
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1907 Alphabet.prototype.equals = function(other) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1908 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1909 var i, sym1, sym2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1910 // first check that it's actually an alphabet object
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1911 if (!(typeof other === "object" && other != null && other instanceof Alphabet)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1912 return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1913 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1914 // second shortcircuit if it's the same object
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1915 if (this === other) return true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1916 // compare
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1917 if (this.name !== other.name) return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1918 if (this.ncore !== other.ncore) return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1919 if (this.symbols.length !== other.symbols.length) return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1920 for (i = 0; i < this.symbols.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1921 sym1 = this.symbols[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1922 sym2 = other.symbols[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1923 if (sym1.symbol !== sym2.symbol) return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1924 if (sym1.aliases !== sym2.aliases) return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1925 if (sym1.name !== sym2.name) return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1926 if (typeof sym1.colour !== typeof sym2.colour ||
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1927 (typeof sym1.colour === "string" && typeof sym2.colour === "string" &&
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1928 parseInt(sym1.colour, 16) != parseInt(sym2.colour, 16))) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1929 return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1930 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1931 if (sym1.complement !== sym2.complement) return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1932 if (sym1.equals !== sym2.equals) return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1933 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1934 return true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1935 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1936 Alphabet.prototype.check_core_subset = function(super_alph) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1937 var complement_same = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1938 var seen_set = {};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1939 var sub_i, sub_symbol, super_i, super_symbol;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1940 for (sub_i = 0; sub_i < this.ncore; sub_i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1941 sub_symbol = this.symbols[sub_i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1942 super_i = super_alph.encode[sub_symbol.symbol];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1943 if (super_i == null) return 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1944 super_symbol = super_alph.symbols[super_i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1945 if (seen_set[super_i]) return 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1946 seen_set[super_i] = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1947 // check complement
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1948 if (sub_symbol.complement != null && super_symbol.complement != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1949 if (super_alph.encode[sub_symbol.complement] != super_alph.encode[super_symbol.complement]) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1950 complement_same = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1951 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1952 } else if (sub_symbol.complement != null || super_symbol.complement != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1953 complement_same = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1954 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1955 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1956 return (complement_same ? 1 : -1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1957 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1958 // convert a sequence to its reverse complement
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1959 Alphabet.prototype.invcomp_seq = function(seq) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1960 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1961 var syms, i, e_sym, comp_e_sym;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1962 if (!this.has_complement()) throw new Error("Alphabet must be complementable");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1963 syms = seq.split("");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1964 for (i = 0; i < syms.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1965 e_sym = this.encode[syms[i]];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1966 if (typeof e_sym === "undefined") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1967 e_sym = this.ncore; // wildcard
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1968 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1969 comp_e_sym = this.complement[e_sym];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1970 if (typeof comp_e_sym === "undefined") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1971 comp_e_sym = e_sym; // not complementable
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1972 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1973 syms[i] = this.symbols[comp_e_sym].symbol;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1974 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1975 return syms.reverse().join("");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1976 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1977 // convert the alphabet to the text version
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1978 Alphabet.prototype.as_text = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1979 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1980 function name_as_text(name) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1981 var i, c, out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1982 out = "\"";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1983 for (i = 0; i < name.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1984 c = name.charAt(i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1985 if (c == "\"") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1986 out += "\\\"";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1987 } else if (c == "/") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1988 out += "\\/";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1989 } else if (c == "\\") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1990 out += "\\\\";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1991 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1992 out += c;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1993 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1994 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1995 out += "\"";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1996 return out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1997 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1998 function symbol_as_text(sym) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
1999 var out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2000 out = sym.symbol;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2001 if (typeof sym.name === "string" && sym.name != sym.symbol) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2002 out += " " + name_as_text(sym.name);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2003 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2004 if (typeof sym.colour === "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2005 out += " " + sym.colour;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2006 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2007 return out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2008 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2009 var out, i, j, c, sym;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2010 out = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2011 // output core symbols with 2 way complements
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2012 for (i = 0; i < this.ncore; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2013 c = this.complement[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2014 if (typeof c === "number" && i < c && this.complement[c] === i) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2015 out += symbol_as_text(this.symbols[i]) + " ~ " + symbol_as_text(this.symbols[c]) + "\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2016 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2017 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2018 // output core symbols with no complement
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2019 for (i = 0; i < this.ncore; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2020 if (typeof this.complement[i] === "undefined") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2021 out += symbol_as_text(this.symbols[i]) + "\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2022 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2023 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2024 // output ambiguous symbols that have comprising characters
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2025 for (i = this.ncore; i < this.symbols.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2026 if (this.symbols[i].equals.length == 0) break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2027 out += symbol_as_text(this.symbols[i]) + " = " + this.symbols[i].equals + "\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2028 if (typeof this.symbols[i].aliases === "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2029 for (j = 0; j < this.symbols[i].aliases.length; j++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2030 if (this.symbols[i].aliases.charAt(j) == this.symbols[i].symbol) continue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2031 out += this.symbols[i].aliases.charAt(j) + " = " + this.symbols[i].equals + "\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2032 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2033 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2034 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2035 // output aliases of core symbols
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2036 for (i = 0; i < this.ncore; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2037 if (typeof this.symbols[i].aliases === "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2038 for (j = 0; j < this.symbols[i].aliases.length; j++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2039 if (this.symbols[i].aliases.charAt(j) == this.symbols[i].symbol) continue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2040 out += this.symbols[i].aliases.charAt(j) + " = " + this.symbols[i].symbol + "\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2041 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2042 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2043 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2044 // output gap symbols
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2045 i = this.symbols.length - 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2046 if (this.symbols[i].equals.length == 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2047 out += symbol_as_text(this.symbols[i]) + " =\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2048 if (typeof this.symbols[i].aliases === "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2049 for (j = 0; j < this.symbols[i].aliases.length; j++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2050 if (this.symbols[i].aliases.charAt(j) == this.symbols[i].symbol) continue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2051 out += this.symbols[i].aliases.charAt(j) + " =\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2052 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2053 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2054 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2055 return out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2056 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2057 // output the alphabet as it appears in minimal MEME format
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2058 Alphabet.prototype.as_meme = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2059 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2060 function name_as_text(name) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2061 var i, c, out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2062 out = "\"";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2063 for (i = 0; i < name.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2064 c = name.charAt(i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2065 if (c == "\"") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2066 out += "\\\"";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2067 } else if (c == "/") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2068 out += "\\/";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2069 } else if (c == "\\") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2070 out += "\\\\";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2071 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2072 out += c;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2073 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2074 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2075 out += "\"";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2076 return out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2077 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2078 if (this.equals(AlphStd.DNA)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2079 return "ALPHABET= ACGT\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2080 } else if (this.equals(AlphStd.PROTEIN)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2081 return "ALPHABET= ACDEFGHIKLMNPQRSTVWY\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2082 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2083 return "ALPHABET" +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2084 (this.name != null ? " " + name_as_text(this.name) : "") +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2085 (this.like != null ? " " + this.like + "-LIKE" : "") + "\n" +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2086 this.as_text() + "END ALPHABET\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2087 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2088 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2089
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2090 // Returns a table showing all the letters in the alphabet
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2091 Alphabet.prototype.as_table = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2092 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2093 var i, j, row, th, td, aliases, equals, sym;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2094 var table = document.createElement("table");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2095 // create the core symbol header
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2096 row = table.insertRow(table.rows.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2097 th = document.createElement("th");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2098 th.appendChild(document.createTextNode("Symbol(s)"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2099 row.appendChild(th);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2100 th = document.createElement("th");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2101 th.appendChild(document.createTextNode("Name"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2102 row.appendChild(th);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2103 th = document.createElement("th");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2104 if (this.has_complement()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2105 th.appendChild(document.createTextNode("Complement"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2106 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2107 row.appendChild(th);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2108 // list the core symbols
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2109 for (i = 0; i < this.ncore; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2110 row = table.insertRow(table.rows.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2111 td = document.createElement("td");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2112 if (this.symbols[i].colour != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2113 td.style.color = '#' + this.symbols[i].colour;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2114 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2115 td.appendChild(document.createTextNode(this.symbols[i].symbol));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2116 aliases = this.get_aliases(i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2117 if (aliases.length > 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2118 td.appendChild(document.createTextNode(' ' + aliases.split('').join(' ')));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2119 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2120 row.appendChild(td);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2121 td = document.createElement("td");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2122 if (this.symbols[i].name != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2123 td.appendChild(document.createTextNode(this.symbols[i].name));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2124 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2125 row.appendChild(td);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2126 td = document.createElement("td");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2127 if (this.symbols[i].complement != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2128 td.style.color = this.get_colour(this.get_index(this.symbols[i].complement));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2129 td.appendChild(document.createTextNode(this.symbols[i].complement));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2130 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2131 row.appendChild(td);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2132 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2133 // create the ambiguous symbol header
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2134 row = table.insertRow(table.rows.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2135 th = document.createElement("th");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2136 th.appendChild(document.createTextNode("Symbol(s)"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2137 row.appendChild(th);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2138 th = document.createElement("th");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2139 th.appendChild(document.createTextNode("Name"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2140 row.appendChild(th);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2141 th = document.createElement("th");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2142 th.appendChild(document.createTextNode("Matches"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2143 row.appendChild(th);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2144 // list the ambiguous symbols
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2145 for (i = this.ncore; i < this.symbols.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2146 row = table.insertRow(table.rows.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2147 td = document.createElement("td");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2148 if (this.symbols[i].colour != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2149 td.style.color = '#' + this.symbols[i].colour;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2150 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2151 td.appendChild(document.createTextNode(this.symbols[i].symbol));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2152 aliases = this.get_aliases(i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2153 if (aliases.length > 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2154 td.appendChild(document.createTextNode(' ' + aliases.split('').join(' ')));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2155 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2156 row.appendChild(td);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2157 td = document.createElement("td");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2158 if (this.symbols[i].name != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2159 td.appendChild(document.createTextNode(this.symbols[i].name));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2160 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2161 row.appendChild(td);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2162 td = document.createElement("td");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2163 equals = this.symbols[i].equals.split('');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2164 for (j = 0; j < equals.length; j++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2165 if (j != 0) td.appendChild(document.createTextNode(' '));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2166 sym = document.createElement("span");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2167 sym.style.color = this.get_colour(this.get_index(equals[j]));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2168 sym.appendChild(document.createTextNode(equals[j]));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2169 td.appendChild(sym);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2170 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2171 row.appendChild(td);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2172 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2173 return table;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2174 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2175
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2176 // returns a dictionary of the colours for EPS
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2177 Alphabet.prototype._as_eps_dict = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2178 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2179 var i, sym, rgb;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2180 var out = "/fullColourDict <<\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2181 for (i = 0; i < this.ncore; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2182 sym = this.get_symbol(i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2183 sym = sym.replace(/\\/g, "\\\\");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2184 sym = sym.replace(/\(/g, "\\(");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2185 sym = sym.replace(/\)/g, "\\)");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2186 rgb = this.get_rgb(i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2187 out += " (" + sym + ") [" + rgb.red.toFixed(4) + " " + rgb.green.toFixed(4) + " " + rgb.blue.toFixed(4) + "]\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2188 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2189 out += ">> def\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2190 out += "/mutedColourDict <<\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2191 for (i = 0; i < this.ncore; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2192 sym = this.get_symbol(i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2193 sym = sym.replace(/\\/g, "\\\\");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2194 sym = sym.replace(/\(/g, "\\(");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2195 sym = sym.replace(/\)/g, "\\)");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2196 rgb = Alphabet.lighten_colour(this.get_rgb(i));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2197 out += " (" + sym + ") [" + rgb.red.toFixed(4) + " " + rgb.green.toFixed(4) + " " + rgb.blue.toFixed(4) + "]\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2198 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2199 out += ">> def\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2200 return out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2201 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2202
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2203 // return the alphabet name or a list of primary symbols
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2204 Alphabet.prototype.toString = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2205 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2206 if (this.name != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2207 return this.name;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2208 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2209 return this.get_symbols();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2210 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2211 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2212
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2213 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2214 // Helper functions
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2215 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2216
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2217 // Convert a colour specified in RGB colourspace values into LAB colourspace
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2218 Alphabet.rgb2lab = function(rgb) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2219 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2220 var xyzHelper, labHelper;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2221 // XYZ helper
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2222 xyzHelper = function(value) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2223 if (value > 0.0445) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2224 value = (value + 0.055) / 1.055;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2225 value = Math.pow(value, 2.4);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2226 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2227 value /= 12.92;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2228 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2229 value *= 100;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2230 return value;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2231 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2232 // lab helper
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2233 labHelper = function(value) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2234 if (value > 0.008856) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2235 value = Math.pow(value, 1.0 / 3.0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2236 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2237 value = (7.787 * value) + (16.0 / 116.0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2238 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2239 return value;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2240 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2241 // convert into XYZ colourspace
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2242 var c1, c2, c3;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2243 if (typeof rgb == "number") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2244 c1 = xyzHelper(((rgb >> 16) & 0xFF) / 255.0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2245 c2 = xyzHelper(((rgb >> 8) & 0xFF) / 255.0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2246 c3 = xyzHelper((rgb & 0xFF) / 255.0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2247 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2248 c1 = xyzHelper(rgb.red);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2249 c2 = xyzHelper(rgb.green);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2250 c3 = xyzHelper(rgb.blue);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2251 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2252 var x = (c1 * 0.4124) + (c2 * 0.3576) + (c3 * 0.1805);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2253 var y = (c1 * 0.2126) + (c2 * 0.7152) + (c3 * 0.0722);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2254 var z = (c1 * 0.0193) + (c2 * 0.1192) + (c3 * 0.9505);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2255 // convert into Lab colourspace
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2256 c1 = labHelper(x / 95.047);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2257 c2 = labHelper(y / 100.0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2258 c3 = labHelper(z / 108.883);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2259 var l = (116.0 * c2) - 16;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2260 var a = 500.0 * (c1 - c2);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2261 var b = 200.0 * (c2 - c3);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2262 return {"l": l, "a": a, "b": b};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2263 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2264
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2265 // Convert a colour specified in HSV colourspace into RGB colourspace
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2266 Alphabet.hsv2rgb = function(hue, sat, value, output_object) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2267 // achromatic (grey)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2268 var r = value;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2269 var g = value;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2270 var b = value;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2271 if (sat != 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2272 var h = hue / 60.0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2273 var i = Math.floor(h);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2274 var f = h - i;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2275 var p = value * (1.0 - sat);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2276 var q = value * (1.0 - (sat * f));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2277 var t = value * (1.0 - (sat * (1.0 - f)));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2278 if (i == 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2279 r = value;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2280 g = t;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2281 b = p;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2282 } else if (i == 1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2283 r = q;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2284 g = value;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2285 b = p;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2286 } else if (i == 2) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2287 r = p;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2288 g = value;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2289 b = t;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2290 } else if (i == 3) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2291 r = p;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2292 g = q;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2293 b = value;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2294 } else if (i == 4) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2295 r = t;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2296 g = p;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2297 b = value;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2298 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2299 r = value;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2300 g = p;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2301 b = q;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2302 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2303 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2304 if (output_object) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2305 return {"red": r, "green": g, "blue": b};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2306 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2307 return (Math.floor(r * 255) << 15) | (Math.floor(g * 255) << 8) | (Math.floor(b * 255));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2308 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2309 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2310
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2311 // Calculate a distance score between two colours in LAB colourspace
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2312 Alphabet.lab_dist = function(lab1, lab2) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2313 var c1 = Math.sqrt((lab1.l * lab1.l) + (lab1.a * lab1.a));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2314 var c2 = Math.sqrt((lab2.l * lab2.l) + (lab2.a * lab2.a));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2315 var dc = c1 - c2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2316 var dl = lab1.l - lab2.l;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2317 var da = lab1.a - lab2.a;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2318 var db = lab1.b - lab2.b;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2319 // we don't want NaN due to rounding errors so fudge things a bit...
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2320 var dh = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2321 var dh_squared = (da * da) + (db * db) - (dc * dc);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2322 if (dh_squared > 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2323 dh = Math.sqrt(dh_squared);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2324 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2325 var first = dl;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2326 var second = dc / (1.0 + (0.045 * c1));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2327 var third = dh / (1.0 + (0.015 * c1));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2328 return Math.sqrt((first * first) + (second * second) + (third * third));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2329 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2330
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2331 // convert an RGB value into a HSL value
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2332 Alphabet.rgb2hsl = function(rgb) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2333 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2334 var min, max, delta, h, s, l, r, g, b;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2335 if (typeof rgb == "number") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2336 r = ((rgb >> 16) & 0xFF) / 255.0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2337 g = ((rgb >> 8) & 0xFF) / 255.0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2338 b = (rgb & 0xFF) / 255.0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2339 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2340 r = rgb.red;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2341 g = rgb.green;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2342 b = rgb.blue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2343 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2344 min = Math.min(r, g, b);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2345 max = Math.max(r, g, b);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2346 delta = max - min;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2347 l = min + (delta / 2);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2348 if (max == min) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2349 h = 0; // achromatic (grayscale)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2350 s = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2351 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2352 if (l > 0.5) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2353 s = delta / (2 - max - min);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2354 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2355 s = delta / (max + min);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2356 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2357 if (max == r) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2358 h = (g - b) / delta;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2359 if (g < b) h += 6;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2360 } else if (max == g) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2361 h = ((b - r) / delta) + 2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2362 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2363 h = ((r - g) / delta) + 4;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2364 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2365 h /= 6;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2366 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2367 return {"h": h, "s": s, "l": l};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2368 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2369
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2370 // convert a HSL value into an RGB value
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2371 Alphabet.hsl2rgb = function(hsl, output_object) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2372 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2373 function _hue(p, q, t) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2374 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2375 if (t < 0) t += 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2376 else if (t > 1) t -= 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2377 if (t < (1.0 / 6.0)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2378 return p + ((q - p) * 6.0 * t);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2379 } else if (t < 0.5) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2380 return q;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2381 } else if (t < (2.0 / 3.0)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2382 return p + ((q - p) * ((2.0 / 3.0) - t) * 6.0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2383 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2384 return p;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2385 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2386 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2387 var r, g, b, p, q;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2388 if (hsl.s == 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2389 // achromatic (grayscale)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2390 r = hsl.l;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2391 g = hsl.l;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2392 b = hsl.l;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2393 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2394 if (hsl.l < 0.5) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2395 q = hsl.l * (1 + hsl.s);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2396 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2397 q = hsl.l + hsl.s - (hsl.l * hsl.s);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2398 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2399 p = (2 * hsl.l) - q;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2400 r = _hue(p, q, hsl.h + (1.0 / 3.0));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2401 g = _hue(p, q, hsl.h);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2402 b = _hue(p, q, hsl.h - (1.0 / 3.0));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2403 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2404 if (output_object) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2405 return {"red": r, "green": g, "blue": b};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2406 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2407 return (Math.floor(r * 255) << 15) | (Math.floor(g * 255) << 8) | (Math.floor(b * 255));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2408 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2409 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2410
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2411 Alphabet.lighten_colour = function(rgb) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2412 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2413 var hsl = Alphabet.rgb2hsl(rgb);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2414 hsl.l += (1.0 - hsl.l) * 2 / 3;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2415 return Alphabet.hsl2rgb(hsl, typeof rgb != "number");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2416 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2417
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2418 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2419 // end Alphabet object
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2420 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2421
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2422 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2423 // start StandardAlphabet object
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2424 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2425
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2426 // an extension of the alphabet object to support some additional fields
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2427 // only present in standard alphabets.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2428 var StandardAlphabet = function(enum_code, enum_name, alphabet_data) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2429 Alphabet.apply(this, [alphabet_data]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2430 this.enum_code = enum_code;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2431 this.enum_name = enum_name;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2432 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2433 StandardAlphabet.prototype = Alphabet.prototype;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2434 StandardAlphabet.prototype.constructor = StandardAlphabet;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2435
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2436 // A unique code for this standard alphabet.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2437 // This code will be a power of 2 to enable creation of bitsets for
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2438 // a selection of standard alphabets.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2439 StandardAlphabet.prototype.get_code = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2440 return this.enum_code;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2441 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2442
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2443 // A unique name for this standard alphabet.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2444 // this name will be all upper case and the same as the property that
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2445 // refers to this alphabet in the AlphStd collection.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2446 StandardAlphabet.prototype.get_enum = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2447 return this.enum_name;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2448 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2449
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2450 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2451 // end StandardAlphabet object
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2452 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2453
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2454 // A collection of standard alphabets.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2455 var AlphStd = {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2456 RNA: new StandardAlphabet(1, "RNA", {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2457 "name": "RNA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2458 "like": "RNA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2459 "ncore": 4,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2460 "symbols": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2461 {"symbol": "A", "name": "Adenine", "colour": "CC0000"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2462 {"symbol": "C", "name": "Cytosine", "colour": "0000CC"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2463 {"symbol": "G", "name": "Guanine", "colour": "FFB300"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2464 {"symbol": "U", "name": "Uracil", "colour": "008000",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2465 "aliases": "T"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2466 {"symbol": "N", "name": "Any base", "equals": "ACGU", "aliases": "X."},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2467 {"symbol": "V", "name": "Not U", "equals": "ACG"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2468 {"symbol": "H", "name": "Not G", "equals": "ACU"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2469 {"symbol": "D", "name": "Not C", "equals": "AGU"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2470 {"symbol": "B", "name": "Not A", "equals": "CGU"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2471 {"symbol": "M", "name": "Amino", "equals": "AC"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2472 {"symbol": "R", "name": "Purine", "equals": "AG"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2473 {"symbol": "W", "name": "Weak", "equals": "AU"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2474 {"symbol": "S", "name": "Strong", "equals": "CG"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2475 {"symbol": "Y", "name": "Pyrimidine", "equals": "CU"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2476 {"symbol": "K", "name": "Keto", "equals": "GU"}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2477 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2478 }),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2479 DNA: new StandardAlphabet(2, "DNA", {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2480 "name": "DNA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2481 "like": "DNA",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2482 "ncore": 4,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2483 "symbols": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2484 {"symbol": "A", "name": "Adenine", "colour": "CC0000", "complement": "T"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2485 {"symbol": "C", "name": "Cytosine", "colour": "0000CC", "complement": "G"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2486 {"symbol": "G", "name": "Guanine", "colour": "FFB300", "complement": "C"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2487 {"symbol": "T", "name": "Thymine", "colour": "008000", "complement": "A",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2488 "aliases": "U"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2489 {"symbol": "N", "name": "Any base", "equals": "ACGT", "aliases": "X."},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2490 {"symbol": "V", "name": "Not T", "equals": "ACG"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2491 {"symbol": "H", "name": "Not G", "equals": "ACT"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2492 {"symbol": "D", "name": "Not C", "equals": "AGT"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2493 {"symbol": "B", "name": "Not A", "equals": "CGT"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2494 {"symbol": "M", "name": "Amino", "equals": "AC"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2495 {"symbol": "R", "name": "Purine", "equals": "AG"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2496 {"symbol": "W", "name": "Weak", "equals": "AT"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2497 {"symbol": "S", "name": "Strong", "equals": "CG"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2498 {"symbol": "Y", "name": "Pyrimidine", "equals": "CT"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2499 {"symbol": "K", "name": "Keto", "equals": "GT"}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2500 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2501 }),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2502 PROTEIN: new StandardAlphabet(4, "PROTEIN", {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2503 "name": "Protein",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2504 "like": "PROTEIN",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2505 "ncore": 20,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2506 "symbols": [
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2507 {"symbol": "A", "name": "Alanine", "colour": "0000CC"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2508 {"symbol": "C", "name": "Cysteine", "colour": "0000CC"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2509 {"symbol": "D", "name": "Aspartic acid", "colour": "FF00FF"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2510 {"symbol": "E", "name": "Glutamic acid", "colour": "FF00FF"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2511 {"symbol": "F", "name": "Phenylalanine", "colour": "0000CC"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2512 {"symbol": "G", "name": "Glycine", "colour": "FFB300"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2513 {"symbol": "H", "name": "Histidine", "colour": "FFCCCC"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2514 {"symbol": "I", "name": "Isoleucine", "colour": "0000CC"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2515 {"symbol": "K", "name": "Lysine", "colour": "CC0000"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2516 {"symbol": "L", "name": "Leucine", "colour": "0000CC"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2517 {"symbol": "M", "name": "Methionine", "colour": "0000CC"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2518 {"symbol": "N", "name": "Asparagine", "colour": "008000"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2519 {"symbol": "P", "name": "Proline", "colour": "FFFF00"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2520 {"symbol": "Q", "name": "Glutamine", "colour": "008000"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2521 {"symbol": "R", "name": "Arginine", "colour": "CC0000"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2522 {"symbol": "S", "name": "Serine", "colour": "008000"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2523 {"symbol": "T", "name": "Threonine", "colour": "008000"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2524 {"symbol": "V", "name": "Valine", "colour": "0000CC"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2525 {"symbol": "W", "name": "Tryptophan", "colour": "0000CC"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2526 {"symbol": "Y", "name": "Tyrosine", "colour": "33E6CC"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2527 {"symbol": "X", "name": "Any amino acid", "equals": "ACDEFGHIKLMNPQRSTVWY", "aliases": "*."},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2528 {"symbol": "B", "name": "Asparagine or Aspartic acid", "equals": "DN"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2529 {"symbol": "Z", "name": "Glutamine or Glutamic acid", "equals": "EQ"},
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2530 {"symbol": "J", "name": "Leucine or Isoleucine", "equals": "IL"}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2531 ]
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2532 })
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2533 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2534
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2535 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2536 // start Symbol object
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2537 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2538 var Symbol = function(alph_index, scale, alphabet) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2539 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2540 //variable prototype
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2541 this.symbol = alphabet.get_symbol(alph_index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2542 this.scale = scale;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2543 this.colour = alphabet.get_colour(alph_index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2544 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2545
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2546 Symbol.prototype.get_symbol = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2547 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2548 return this.symbol;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2549 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2550
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2551 Symbol.prototype.get_scale = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2552 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2553 return this.scale;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2554 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2555
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2556 Symbol.prototype.get_colour = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2557 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2558 return this.colour;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2559 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2560
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2561 Symbol.prototype.toString = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2562 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2563 return this.symbol + " " + (Math.round(this.scale*1000)/10) + "%";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2564 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2565
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2566 function compare_symbol(sym1, sym2) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2567 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2568 if (sym1.get_scale() < sym2.get_scale()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2569 return -1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2570 } else if (sym1.get_scale() > sym2.get_scale()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2571 return 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2572 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2573 return 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2574 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2575 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2576 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2577 // end Symbol object
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2578 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2579
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2580 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2581 // start Pspm object
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2582 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2583 var Pspm = function(matrix, name, ltrim, rtrim, nsites, evalue, pssm, alt) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2584 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2585 var row, col, data, row_sum, delta, evalue_re;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2586 if (typeof name !== "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2587 name = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2588 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2589 this.name = name;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2590 //construct
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2591 if (matrix instanceof Pspm) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2592 // copy constructor
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2593 this.alph_length = matrix.alph_length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2594 this.motif_length = matrix.motif_length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2595 this.name = matrix.name;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2596 this.alt = matrix.alt;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2597 this.nsites = matrix.nsites;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2598 this.evalue = matrix.evalue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2599 this.ltrim = matrix.ltrim;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2600 this.rtrim = matrix.rtrim;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2601 this.pspm = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2602 for (row = 0; row < matrix.motif_length; row++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2603 this.pspm[row] = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2604 for (col = 0; col < matrix.alph_length; col++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2605 this.pspm[row][col] = matrix.pspm[row][col];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2606 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2607 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2608 if (matrix.pssm != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2609 this.pssm = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2610 for (row = 0; row < matrix.motif_length; row++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2611 this.pspm[row] = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2612 for (col = 0; col < matrix.alph_length; col++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2613 this.pssm[row][col] = matrix.pssm[row][col];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2614 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2615 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2616 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2617 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2618 // check parameters
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2619 if (ltrim == null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2620 ltrim = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2621 } else if (typeof ltrim !== "number" || ltrim % 1 !== 0 || ltrim < 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2622 throw new Error("ltrim must be a non-negative integer, got: " + ltrim);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2623 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2624 if (rtrim == null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2625 rtrim = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2626 } else if (typeof rtrim !== "number" || rtrim % 1 !== 0 || rtrim < 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2627 throw new Error("rtrim must be a non-negative integer, got: " + rtrim);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2628 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2629 if (nsites != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2630 if (typeof nsites !== "number" || nsites < 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2631 throw new Error("nsites must be a positive number, got: " + nsites);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2632 } else if (nsites == 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2633 nsites = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2634 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2635 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2636 if (evalue != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2637 if (typeof evalue === "number") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2638 if (evalue < 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2639 throw new Error("evalue must be a non-negative number, got: " + evalue);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2640 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2641 } else if (typeof evalue === "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2642 evalue_re = /^((?:[+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|inf)$/;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2643 if (!evalue_re.test(evalue)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2644 throw new Error("evalue must be a non-negative number, got: " + evalue);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2645 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2646 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2647 throw new Error("evalue must be a non-negative number, got: " + evalue);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2648 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2649 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2650 // set properties
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2651 this.name = name;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2652 this.alt = alt;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2653 this.nsites = nsites;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2654 this.evalue = evalue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2655 this.ltrim = ltrim;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2656 this.rtrim = rtrim;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2657 if (typeof matrix === "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2658 // string constructor
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2659 data = parse_pspm_string(matrix);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2660 this.alph_length = data["alph_length"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2661 this.motif_length = data["motif_length"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2662 this.pspm = data["pspm"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2663 if (this.evalue == null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2664 if (data["evalue"] != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2665 this.evalue = data["evalue"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2666 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2667 this.evalue = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2668 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2669 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2670 if (this.nsites == null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2671 if (typeof data["nsites"] === "number") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2672 this.nsites = data["nsites"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2673 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2674 this.nsites = 20;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2675 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2676 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2677 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2678 // assume pspm is a nested array
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2679 this.motif_length = matrix.length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2680 this.alph_length = (matrix.length > 0 ? matrix[0].length : 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2681 if (this.nsites == null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2682 this.nsites = 20;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2683 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2684 if (this.evalue == null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2685 this.evalue = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2686 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2687 this.pspm = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2688 // copy pspm and check
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2689 for (row = 0; row < this.motif_length; row++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2690 if (this.alph_length != matrix[row].length) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2691 throw new Error("COLUMN_MISMATCH");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2692 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2693 this.pspm[row] = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2694 row_sum = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2695 for (col = 0; col < this.alph_length; col++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2696 this.pspm[row][col] = matrix[row][col];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2697 row_sum += this.pspm[row][col];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2698 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2699 delta = 0.1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2700 if (isNaN(row_sum) || (row_sum > 1 && (row_sum - 1) > delta) ||
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2701 (row_sum < 1 && (1 - row_sum) > delta)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2702 throw new Error("INVALID_SUM");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2703 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2704 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2705 // copy pssm
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2706 if (pssm != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2707 this.pssm = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2708 for (row = 0; row < this.motif_length; row++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2709 this.pssm[row] = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2710 for (col = 0; col < this.alph_length; col++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2711 this.pssm[row][col] = pssm[row][col];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2712 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2713 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2714 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2715 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2716 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2717 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2718
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2719 Pspm.prototype.copy = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2720 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2721 return new Pspm(this);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2722 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2723
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2724 Pspm.prototype.reverse = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2725 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2726 var x, y, temp, temp_trim;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2727 //reverse
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2728 x = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2729 y = this.motif_length-1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2730 while (x < y) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2731 temp = this.pspm[x];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2732 this.pspm[x] = this.pspm[y];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2733 this.pspm[y] = temp;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2734 x++;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2735 y--;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2736 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2737 // reverse pssm (if defined)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2738 if (typeof this.pssm !== "undefined") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2739 //reverse
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2740 x = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2741 y = this.motif_length-1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2742 while (x < y) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2743 temp = this.pssm[x];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2744 this.pspm[x] = this.pssm[y];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2745 this.pssm[y] = temp;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2746 x++;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2747 y--;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2748 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2749 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2750 //swap triming
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2751 temp_trim = this.ltrim;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2752 this.ltrim = this.rtrim;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2753 this.rtrim = temp_trim;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2754 return this; //allow function chaining...
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2755 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2756
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2757 Pspm.prototype.reverse_complement = function(alphabet) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2758 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2759 var x, y, temp, i, row, c, temp_trim;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2760 if (this.alph_length != alphabet.get_size_core()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2761 throw new Error("The alphabet size does not match the size of the pspm.");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2762 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2763 if (!alphabet.has_complement()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2764 throw new Error("The specified alphabet can not be complemented.");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2765 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2766 // reverse motif
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2767 this.reverse();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2768 //complement
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2769 for (x = 0; x < this.motif_length; x++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2770 row = this.pspm[x];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2771 for (i = 0; i < row.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2772 c = alphabet.get_complement(i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2773 if (c < i) continue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2774 temp = row[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2775 row[i] = row[c];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2776 row[c] = temp;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2777 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2778 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2779 // complement pssm (if defined)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2780 if (typeof this.pssm !== "undefined") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2781 //complement
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2782 for (x = 0; x < this.motif_length; x++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2783 row = this.pssm[x];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2784 for (i = 0; i < row.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2785 c = alphabet.get_complement(i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2786 if (c < i) continue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2787 temp = row[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2788 row[i] = row[c];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2789 row[c] = temp;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2790 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2791 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2792 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2793 return this; //allow function chaining...
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2794 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2795
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2796 Pspm.prototype.get_stack = function(position, alphabet, ssc) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2797 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2798 var row, stack_ic, alphabet_ic, stack, i, sym;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2799 if (this.alph_length != alphabet.get_size_core()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2800 throw new Error("The alphabet size does not match the size of the pspm.");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2801 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2802 row = this.pspm[position];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2803 stack_ic = this.get_stack_ic(position, alphabet);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2804 if (ssc) stack_ic -= this.get_error(alphabet);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2805 alphabet_ic = alphabet.get_ic();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2806 stack = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2807 for (i = 0; i < this.alph_length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2808 sym = new Symbol(i, row[i]*stack_ic/alphabet_ic, alphabet);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2809 if (sym.get_scale() <= 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2810 continue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2811 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2812 stack.push(sym);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2813 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2814 stack.sort(compare_symbol);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2815 return stack;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2816 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2817
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2818 Pspm.prototype.get_stack_ic = function(position, alphabet) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2819 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2820 var row, H, i;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2821 if (this.alph_length != alphabet.get_size_core()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2822 throw new Error("The alphabet size does not match the size fo the pspm.");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2823 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2824 row = this.pspm[position];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2825 H = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2826 for (i = 0; i < this.alph_length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2827 if (row[i] === 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2828 continue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2829 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2830 H -= (row[i] * (Math.log(row[i]) / Math.LN2));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2831 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2832 return alphabet.get_ic() - H;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2833 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2834
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2835 Pspm.prototype.get_error = function(alphabet) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2836 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2837 if (this.nsites === 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2838 return 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2839 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2840 return (alphabet.get_size_core()-1) / (2 * Math.LN2 * this.nsites);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2841 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2842
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2843 Pspm.prototype.get_motif_length = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2844 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2845 return this.motif_length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2846 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2847
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2848 Pspm.prototype.get_alph_length = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2849 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2850 return this.alph_length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2851 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2852
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2853 Pspm.prototype.get_left_trim = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2854 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2855 return this.ltrim;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2856 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2857
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2858 Pspm.prototype.get_right_trim = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2859 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2860 return this.rtrim;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2861 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2862
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2863 Pspm.prototype.as_best_match = function(alphabet) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2864 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2865 var match, odds, best_odds, best_index;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2866 var i, j;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2867 match = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2868 for (i = 0; i < this.motif_length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2869 best_index = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2870 best_odds = this.pspm[i][0] / alphabet.get_bg_freq(0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2871 for (j = 1; j < this.alph_length; j++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2872 odds = this.pspm[i][j] / alphabet.get_bg_freq(j);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2873 if (odds > best_odds) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2874 best_odds = odds;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2875 best_index = j;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2876 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2877 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2878 match += alphabet.get_symbol(best_index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2879 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2880 return match;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2881 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2882
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2883 Pspm.prototype.as_count_matrix = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2884 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2885 var count, count_text, text;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2886 var i, j;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2887 text = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2888 for (i = 0; i < this.motif_length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2889 if (i !== 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2890 text += "\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2891 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2892 for (j = 0; j < this.alph_length; j++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2893 if (j !== 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2894 text += " ";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2895 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2896 count = Math.round(this.nsites * this.pspm[i][j]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2897 count_text = "" + count;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2898 // pad up to length of 4
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2899 if (count_text.length < 4) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2900 text += (new Array(5 - count_text.length)).join(" ") + count_text;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2901 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2902 text += count_text;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2903 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2904 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2905 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2906 return text;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2907 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2908
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2909 Pspm.prototype.as_probability_matrix = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2910 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2911 var text;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2912 var i, j;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2913 text = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2914 for (i = 0; i < this.motif_length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2915 if (i !== 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2916 text += "\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2917 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2918 for (j = 0; j < this.alph_length; j++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2919 if (j !== 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2920 text += " ";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2921 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2922 text += this.pspm[i][j].toFixed(6);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2923 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2924 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2925 return text;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2926 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2927
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2928 Pspm.prototype.as_score_matrix = function(alphabet, pseudo) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2929 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2930 var me, score, out, row, col, score_text;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2931 me = this;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2932 if (typeof this.pssm === "undefined") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2933 if (!(typeof alphabet === "object" && alphabet != null && alphabet instanceof Alphabet)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2934 throw new Error("The alphabet is required to generate the pssm.");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2935 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2936 if (typeof pseudo === "undefined") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2937 pseudo = 0.01;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2938 } else if (typeof pseudo !== "number" || pseudo < 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2939 throw new Error("Expected positive number for pseudocount");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2940 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2941 score = function(row, col) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2942 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2943 var p, bg, p2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2944 p = me.pspm[row][col];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2945 bg = alphabet.get_bg_freq(col);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2946 p2 = (p * me.nsites + bg * pseudo) / (me.nsites + pseudo);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2947 return (p2 > 0 ? Math.round((Math.log(p2 / bg) / Math.LN2) * 100) : -10000);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2948 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2949 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2950 score = function(row, col) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2951 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2952 return me.pssm[row][col];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2953 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2954 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2955 out = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2956 for (row = 0; row < this.motif_length; row++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2957 for (col = 0; col < this.alph_length; col++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2958 if (col !== 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2959 out += " ";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2960 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2961 score_text = "" + score(row, col);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2962 // pad out to 6 characters
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2963 if (score_text.length < 6) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2964 out += (new Array(7 - score_text.length)).join(" ") + score_text;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2965 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2966 out += score_text;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2967 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2968 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2969 out += "\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2970 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2971 return out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2972 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2973
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2974 Pspm.prototype.as_pspm = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2975 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2976 return "letter-probability matrix: alength= " + this.alph_length +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2977 " w= " + this.motif_length + " nsites= " + this.nsites +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2978 " E= " + (typeof this.evalue === "number" ?
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2979 this.evalue.toExponential() : this.evalue) + "\n" +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2980 this.as_probability_matrix();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2981 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2982
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2983 Pspm.prototype.as_pssm = function(alphabet, pseudo) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2984 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2985 return "log-odds matrix: alength= " + this.alph_length +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2986 " w= " + this.motif_length +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2987 " E= " + (typeof this.evalue == "number" ?
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2988 this.evalue.toExponential() : this.evalue) + "\n" +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2989 this.as_score_matrix(alphabet, pseudo);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2990 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2991
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2992 Pspm.prototype.as_meme = function(options) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2993 var with_header, with_pspm, with_pssm, version, alphabet, bg_source, pseudocount, strands;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2994 var out, alen, i;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2995 // get the options
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2996 if (typeof options !== "object" || options === null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2997 options = {};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2998 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
2999 with_header = (typeof options["with_header"] === "boolean" ? options["with_header"] : false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3000 with_pspm = (typeof options["with_pspm"] === "boolean" ? options["with_pspm"] : false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3001 with_pssm = (typeof options["with_pssm"] === "boolean" ? options["with_pssm"] : false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3002 if (!with_pspm && !with_pssm) with_pspm = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3003 if (with_header) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3004 if (typeof options["version"] === "string" && /^\d+(?:\.\d+){0,2}$/.test(options["version"])) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3005 version = options["version"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3006 } else if (typeof options["version"] === "number") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3007 version = options["version"].toFixed(0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3008 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3009 version = "4";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3010 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3011 if (typeof options["strands"] === "number" && options["strands"] === 1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3012 strands = 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3013 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3014 strands = 2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3015 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3016 if (typeof options["bg_source"] === "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3017 bg_source = options["bg_source"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3018 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3019 bg_source = "unknown source";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3020 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3021 if (typeof options["alphabet"] === "object" && options["alphabet"] != null
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3022 && options["alphabet"] instanceof Alphabet) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3023 alphabet = options["alphabet"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3024 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3025 throw new Error("The alphabet is required to generate the header.");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3026 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3027 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3028 // now create the output
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3029 out = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3030 if (with_header) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3031 out = "MEME version " + version + "\n\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3032 out += alphabet.as_meme() + "\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3033 if (alphabet.has_complement()) { // assume DNA has both strands unless otherwise specified
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3034 out += "strands: " + (strands === 1 ? "+" : "+ -") + "\n\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3035 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3036 out += "Background letter frequencies (from " + bg_source + "):\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3037 alen = alphabet.get_size_core();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3038 for (i = 0; i < alen; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3039 if (i !== 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3040 if (i % 9 === 0) { // maximum of nine entries per line
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3041 out += "\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3042 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3043 out += " ";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3044 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3045 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3046 out += alphabet.get_symbol(i) + " " + alphabet.get_bg_freq(i).toFixed(3);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3047 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3048 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3049 out += "\n\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3050 out += "MOTIF " + this.name + (this.alt == null ? "" : " " + this.alt);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3051 if (with_pssm) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3052 out += "\n\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3053 out += this.as_pssm(options["alphabet"], options["pseudocount"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3054 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3055 if (with_pspm) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3056 out += "\n\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3057 out += this.as_pspm();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3058 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3059 return out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3060 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3061
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3062 Pspm.prototype.toString = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3063 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3064 var str, i, row;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3065 str = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3066 for (i = 0; i < this.pspm.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3067 row = this.pspm[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3068 str += row.join("\t") + "\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3069 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3070 return str;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3071 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3072
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3073 function parse_pspm_properties(str) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3074 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3075 var parts, i, eqpos, before, after, properties, prop, num, num_re;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3076 num_re = /^((?:[+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|inf)$/;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3077 parts = trim(str).split(/\s+/);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3078 // split up words containing =
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3079 for (i = 0; i < parts.length;) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3080 eqpos = parts[i].indexOf("=");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3081 if (eqpos != -1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3082 before = parts[i].substr(0, eqpos);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3083 after = parts[i].substr(eqpos+1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3084 if (before.length > 0 && after.length > 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3085 parts.splice(i, 1, before, "=", after);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3086 i += 3;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3087 } else if (before.length > 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3088 parts.splice(i, 1, before, "=");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3089 i += 2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3090 } else if (after.length > 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3091 parts.splice(i, 1, "=", after);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3092 i += 2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3093 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3094 parts.splice(i, 1, "=");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3095 i++;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3096 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3097 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3098 i++;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3099 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3100 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3101 properties = {};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3102 for (i = 0; i < parts.length; i += 3) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3103 if (parts.length - i < 3) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3104 throw new Error("Expected PSPM property was incomplete. "+
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3105 "Remaing parts are: " + parts.slice(i).join(" "));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3106 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3107 if (parts[i+1] !== "=") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3108 throw new Error("Expected '=' in PSPM property between key and " +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3109 "value but got " + parts[i+1]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3110 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3111 prop = parts[i].toLowerCase();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3112 num = parts[i+2];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3113 if (!num_re.test(num)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3114 throw new Error("Expected numeric value for PSPM property '" +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3115 prop + "' but got '" + num + "'");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3116 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3117 properties[prop] = num;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3118 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3119 return properties;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3120 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3121
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3122 function parse_pspm_string(pspm_string) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3123 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3124 var header_re, lines, first_line, line_num, col_num, alph_length,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3125 motif_length, nsites, evalue, pspm, i, line, match, props, parts,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3126 j, prob;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3127 header_re = /^letter-probability\s+matrix:(.*)$/i;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3128 lines = pspm_string.split(/\n/);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3129 first_line = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3130 line_num = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3131 col_num = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3132 alph_length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3133 motif_length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3134 nsites;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3135 evalue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3136 pspm = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3137 for (i = 0; i < lines.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3138 line = trim(lines[i]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3139 if (line.length === 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3140 continue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3141 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3142 // check the first line for a header though allow matrices without it
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3143 if (first_line) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3144 first_line = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3145 match = header_re.exec(line);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3146 if (match !== null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3147 props = parse_pspm_properties(match[1]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3148 if (props.hasOwnProperty("alength")) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3149 alph_length = parseFloat(props["alength"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3150 if (alph_length != 4 && alph_length != 20) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3151 throw new Error("PSPM property alength should be 4 or 20" +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3152 " but got " + alph_length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3153 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3154 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3155 if (props.hasOwnProperty("w")) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3156 motif_length = parseFloat(props["w"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3157 if (motif_length % 1 !== 0 || motif_length < 1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3158 throw new Error("PSPM property w should be an integer larger " +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3159 "than zero but got " + motif_length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3160 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3161 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3162 if (props.hasOwnProperty("nsites")) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3163 nsites = parseFloat(props["nsites"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3164 if (nsites <= 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3165 throw new Error("PSPM property nsites should be larger than " +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3166 "zero but got " + nsites);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3167 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3168 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3169 if (props.hasOwnProperty("e")) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3170 evalue = props["e"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3171 if (evalue < 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3172 throw new Error("PSPM property evalue should be " +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3173 "non-negative but got " + evalue);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3174 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3175 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3176 continue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3177 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3178 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3179 pspm[line_num] = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3180 col_num = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3181 parts = line.split(/\s+/);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3182 for (j = 0; j < parts.length; j++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3183 prob = parseFloat(parts[j]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3184 if (prob != parts[j] || prob < 0 || prob > 1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3185 throw new Error("Expected probability but got '" + parts[j] + "'");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3186 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3187 pspm[line_num][col_num] = prob;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3188 col_num++;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3189 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3190 line_num++;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3191 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3192 if (typeof motif_length === "number") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3193 if (pspm.length != motif_length) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3194 throw new Error("Expected PSPM to have a motif length of " +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3195 motif_length + " but it was actually " + pspm.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3196 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3197 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3198 motif_length = pspm.length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3199 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3200 if (typeof alph_length !== "number") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3201 alph_length = pspm[0].length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3202 if (alph_length != 4 && alph_length != 20) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3203 throw new Error("Expected length of first row in the PSPM to be " +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3204 "either 4 or 20 but got " + alph_length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3205 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3206 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3207 for (i = 0; i < pspm.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3208 if (pspm[i].length != alph_length) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3209 throw new Error("Expected PSPM row " + i + " to have a length of " +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3210 alph_length + " but the length was " + pspm[i].length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3211 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3212 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3213 return {"pspm": pspm, "motif_length": motif_length,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3214 "alph_length": alph_length, "nsites": nsites, "evalue": evalue};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3215 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3216 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3217 // end Pspm object
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3218 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3219
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3220 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3221 // start Logo object
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3222 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3223
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3224 var Logo = function(alphabet, options) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3225 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3226 this.alphabet = alphabet;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3227 this.fine_text = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3228 this.x_axis = 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3229 this.y_axis = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3230 this.xlate_nsyms = 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3231 this.xlate_start = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3232 this.xlate_end = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3233 this.pspm_list = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3234 this.pspm_column = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3235 this.rows = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3236 this.columns = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3237 if (typeof options === "string") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3238 // the old method signature had fine_text here so we support that
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3239 this.fine_text = options;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3240 } else if (typeof options === "object" && options != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3241 this.fine_text = (typeof options.fine_text === "string" ? options.fine_text : "");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3242 this.x_axis = (typeof options.x_axis === "boolean" ? (options.x_axis ? 1 : 0) : 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3243 if (options.x_axis_hidden != null && options.x_axis_hidden) this.x_axis = -1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3244 this.y_axis = (typeof options.y_axis === "boolean" ? options.y_axis : true);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3245 this.xlate_nsyms = (typeof options.xlate_nsyms === "number" ? options.xlate_nsyms : this.xlate_nsyms);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3246 this.xlate_start = (typeof options.xlate_start === "number" ? options.xlate_start : this.xlate_start);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3247 this.xlate_end = (typeof options.xlate_end === "number" ? options.xlate_end : this.xlate_end);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3248 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3249 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3250
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3251 Logo.prototype.add_pspm = function(pspm, column) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3252 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3253 var col;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3254 if (typeof column === "undefined") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3255 column = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3256 } else if (column < 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3257 throw new Error("Column index out of bounds.");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3258 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3259 this.pspm_list[this.rows] = pspm;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3260 this.pspm_column[this.rows] = column;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3261 this.rows++;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3262 col = column + pspm.get_motif_length();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3263 if (col > this.columns) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3264 this.columns = col;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3265 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3266 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3267
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3268 Logo.prototype.get_columns = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3269 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3270 return this.columns;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3271 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3272
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3273 Logo.prototype.get_xlate_nsyms = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3274 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3275 return this.xlate_nsyms;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3276 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3277
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3278 Logo.prototype.get_xlate_start = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3279 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3280 return (this.xlate_start != null ? this.xlate_start : 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3281 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3282
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3283 Logo.prototype.get_xlate_end = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3284 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3285 return (this.xlate_end != null ? this.xlate_end : this.columns * this.xlate_nsyms);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3286 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3287
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3288 Logo.prototype.get_xlate_columns = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3289 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3290 return this.get_xlate_end() - this.get_xlate_start();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3291 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3292
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3293 Logo.prototype.get_rows = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3294 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3295 return this.rows;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3296 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3297
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3298 Logo.prototype.get_pspm = function(row_index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3299 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3300 if (row_index < 0 || row_index >= this.rows) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3301 throw new Error("INDEX_OUT_OF_BOUNDS");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3302 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3303 return this.pspm_list[row_index];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3304 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3305
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3306 Logo.prototype.get_offset = function(row_index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3307 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3308 if (row_index < 0 || row_index >= this.rows) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3309 throw new Error("INDEX_OUT_OF_BOUNDS");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3310 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3311 return this.pspm_column[row_index];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3312 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3313
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3314 Logo.prototype._as_eps_data = function(ssc, errbars) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3315 var i, j, pos, stack_pos, pspm, stack, sym, out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3316 out = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3317 for (i = 0; i < this.rows; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3318 out += "\nStartLine\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3319 // Indent
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3320 for (j = 0; j < this.pspm_column[i]; j++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3321 out += "() startstack\nendstack\n\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3322 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3323 pspm = this.pspm_list[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3324 if (pspm.get_left_trim() > 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3325 out += "MuteColour\nDrawTrimEdge\n" + pspm.get_left_trim() + " DrawTrimBg\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3326 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3327 for (pos = 0; pos < pspm.get_motif_length(); pos++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3328 if (pos != 0 && pos == pspm.get_left_trim()) { // enable full colour
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3329 out += "DrawTrimEdge\nRestoreColour\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3330 } else if (pos == (pspm.get_motif_length() - pspm.get_right_trim())) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3331 out += "MuteColour\n" + pspm.get_right_trim() + " DrawTrimBg\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3332 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3333 out += "(" + (pos + 1) + ") startstack\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3334 stack = pspm.get_stack(pos, this.alphabet, ssc);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3335 for (stack_pos = 0; stack_pos < stack.length; stack_pos++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3336 sym = stack[stack_pos];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3337 out += " " + (sym.get_scale() * this.alphabet.get_ic()) + " (" + sym.get_symbol() + ") numchar\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3338 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3339 if (errbars) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3340 out += " " + pspm.get_error(this.alphabet) + " Ibeam\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3341 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3342 out += "endstack\n\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3343 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3344 if (pspm.get_right_trim() > 0 || pspm.get_left_trim() == pspm.get_motif_length()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3345 out += "RestoreColour\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3346 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3347 out += "EndLine\n";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3348 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3349 return out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3350 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3351
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3352 Logo.prototype.as_eps = function(options) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3353 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3354 if (this.xlate_nsyms != 1) throw new Error("Unsupported setting xlate_nsyms for EPS");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3355 if (this.xlate_start != null) throw new Error("Unsupported setting xlate_start for EPS");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3356 if (this.xlate_end != null) throw new Error("Unsupported setting xlate_end for EPS");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3357
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3358 var LOGOHEIGHT = 7.5; // default height of line in cm
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3359 var cm2pts, height, width, now, ssc, errbars;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3360 if (typeof options === "undefined") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3361 options = {};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3362 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3363 cm2pts = 72 / 2.54;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3364 if (typeof options.logo_height == "number") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3365 height = options.logo_height;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3366 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3367 height = LOGOHEIGHT * this.rows;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3368 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3369 if (typeof options.logo_width == "number") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3370 width = options.logo_width;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3371 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3372 width = this.columns + 2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3373 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3374 now = new Date();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3375 ssc = (typeof options.ssc == "boolean" ? options.ssc : false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3376 errbars = (typeof options.show_error_bar == "boolean" ? options.show_error_bar : ssc);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3377 var values = {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3378 "LOGOHEIGHT": height,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3379 "LOGOWIDTH": width,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3380 "BOUNDINGHEIGHT": Math.round(height * cm2pts),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3381 "BOUNDINGWIDTH": Math.round(width * cm2pts),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3382 "LOGOLINEHEIGHT": (height / this.rows),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3383 "CHARSPERLINE": this.columns,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3384 "BARBITS": this.alphabet.get_ic(),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3385 "LOGOTYPE": (this.alphabet.has_complement() ? "NA" : "AA"),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3386 "CREATIONDATE": now.getDate() + "." + (now.getMonth() + 1) + "." + now.getFullYear() + " " + now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds(),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3387 "ERRORBARFRACTION": (typeof options.error_bar_fraction == "number" ? options.error_bar_fraction : 1.0),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3388 "TICBITS": (typeof options.ticbits == "number" ? options.ticbits : 1.0),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3389 "TITLE": (typeof options.title == "string" ? options.title : ""),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3390 "FINEPRINT": (typeof options.fineprint == "string" ? options.fineprint : this.fine_text),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3391 "XAXISLABEL": (typeof options.xaxislabel == "string" ? options.xaxislabel : ""),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3392 "YAXISLABEL": (typeof options.yaxislabel == "string" ? options.yaxislabel : "bits"),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3393 "SSC": ssc,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3394 "YAXIS": (typeof options.show_y_axis == "boolean" ? options.show_y_axis : this.y_axis),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3395 "SHOWENDS": (typeof options.show_ends == "boolean" ? options.show_ends : false),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3396 "ERRBAR": errbars,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3397 "OUTLINE": (typeof options.show_outline == "boolean" ? options.show_outline : false),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3398 "NUMBERING": (typeof options.show_numbering == "boolean" ? options.show_numbering : this.x_axis != 0),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3399 "SHOWINGBOX": (typeof options.show_box == "boolean" ? options.show_box : false),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3400 "CREATOR": (typeof options.creator == "string" ? options.creator : "motif_logo.js"),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3401 "FONTSIZE": (typeof options.label_font_size == "number" ? options.label_font_size : 12),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3402 "TITLEFONTSIZE": (typeof options.title_font_size == "number" ? options.title_font_size : 12),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3403 "SMALLFONTSIZE": (typeof options.small_font_size == "number" ? options.small_font_size : 6),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3404 "TOPMARGIN" : (typeof options.top_margin == "number" ? options.top_margin : 0.9),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3405 "BOTTOMMARGIN": (typeof options.bottom_margin == "number" ? options.bottom_margin : 0.9),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3406 "COLORDICT": this.alphabet._as_eps_dict(),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3407 "DATA": this._as_eps_data(ssc, errbars)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3408 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3409 // now this requires that the script containing the template has been imported!
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3410 return motif_logo_template(values);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3411 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3412
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3413 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3414 // end Logo object
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3415 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3416
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3417 // calculate the exact size (in pixels) of an object drawn on the
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3418 // canvas assuming that the background of the canvas is transparent.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3419 function canvas_bounds(ctx, cwidth, cheight) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3420 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3421 var data, r, c, top_line, bottom_line, left_line, right_line,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3422 txt_width, txt_height;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3423
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3424 // extract the image data
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3425 data = ctx.getImageData(0, 0, cwidth, cheight).data;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3426
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3427 // set initial values
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3428 top_line = -1; bottom_line = -1; left_line = -1; right_line = -1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3429 txt_width = 0; txt_height = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3430
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3431 // Find the top-most line with a non-transparent pixel
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3432 for (r = 0; r < cheight; r++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3433 for (c = 0; c < cwidth; c++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3434 if (data[r * cwidth * 4 + c * 4 + 3]) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3435 top_line = r;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3436 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3437 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3438 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3439 if (top_line != -1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3440 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3441 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3442 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3443
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3444 // Only bother looking if we found at least one set pixel...
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3445 if (top_line != -1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3446
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3447 //find the last line with a non-transparent pixel
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3448 for (r = cheight-1; r >= top_line; r--) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3449 for(c = 0; c < cwidth; c++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3450 if(data[r * cwidth * 4 + c * 4 + 3]) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3451 bottom_line = r;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3452 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3453 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3454 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3455 if (bottom_line != -1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3456 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3457 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3458 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3459 // calculate height
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3460 txt_height = bottom_line - top_line + 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3461
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3462 // Find the left-most line with a non-transparent pixel
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3463 for (c = 0; c < cwidth; c++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3464 for (r = top_line; r <= bottom_line; r++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3465 if (data[r * cwidth * 4 + c * 4 + 3]) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3466 left_line = c;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3467 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3468 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3469 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3470 if (left_line != -1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3471 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3472 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3473 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3474
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3475 //find the right most line with a non-transparent pixel
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3476 for (c = cwidth-1; c >= left_line; c--) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3477 for(r = top_line; r <= bottom_line; r++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3478 if(data[r * cwidth * 4 + c * 4 + 3]) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3479 right_line = c;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3480 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3481 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3482 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3483 if (right_line != -1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3484 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3485 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3486 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3487 txt_width = right_line - left_line + 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3488 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3489
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3490 //return the bounds
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3491 return {bound_top: top_line, bound_bottom: bottom_line,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3492 bound_left: left_line, bound_right: right_line, width: txt_width,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3493 height: txt_height};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3494 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3495
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3496 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3497 // start RasterizedAlphabet
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3498 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3499
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3500 // Rasterize Alphabet
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3501 // 1) Measure width of text at default font for all symbols in alphabet
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3502 // 2) sort in width ascending
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3503 // 3) Drop the top and bottom 10% (designed to ignore outliers like 'W' and 'I')
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3504 // 4) Calculate the average as the maximum scaling factor (designed to stop I becoming a rectangular blob).
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3505 // 5) Assume scale of zero would result in width of zero, interpolate scale required to make perfect width font
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3506 // 6) Draw text onto temp canvas at calculated scale
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3507 // 7) Find bounds of drawn text
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3508 // 8) Paint on to another canvas at the desired height (but only scaling width to fit if larger).
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3509 var RasterizedAlphabet = function(alphabet, logo_scale, font, width) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3510 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3511 var default_size, safety_pad, canvas, ctx, middle, baseline, widths, sizes,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3512 i, sym, size, tenpercent, avg_width, scale,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3513 target_width, target_height;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3514 //variable prototypes
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3515 this.alphabet = alphabet;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3516 this.scale = logo_scale;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3517 this.sym_cache = {};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3518 this.stack_num_cache = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3519 this.scale_num_cache = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3520 // size of canvas
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3521 default_size = 60; // size of measuring canvas
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3522 safety_pad = 20; // pixels to pad around so we don't miss the edges
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3523 // create a canvas to do our measuring
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3524 canvas = document.createElement("canvas");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3525 if (!canvas.getContext) throw new Error("No canvas support");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3526 canvas.width = default_size + 2 * safety_pad;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3527 canvas.height = default_size + 2 * safety_pad;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3528 middle = Math.round(canvas.width / 2);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3529 baseline = Math.round(canvas.height - safety_pad);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3530 ctx = canvas.getContext('2d');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3531 if (!supports_text(ctx)) throw new Error("Canvas does not support text");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3532 ctx.font = font;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3533 ctx.textAlign = "center";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3534 ctx.translate(middle, baseline);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3535 // list of widths
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3536 widths = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3537 sizes = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3538 //now measure each letter in the alphabet
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3539 for (i = 0; i < alphabet.get_size_core(); ++i) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3540 // reset the canvas
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3541 ctx.clearRect(0, 0, canvas.width, canvas.height);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3542 ctx.fillStyle = alphabet.get_colour(i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3543 // draw the test text
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3544 ctx.fillText(alphabet.get_symbol(i), 0, 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3545 //measure
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3546 size = canvas_bounds(ctx, canvas.width, canvas.height);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3547 if (size.width === 0) throw new Error("Invisible symbol!");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3548 widths.push(size.width);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3549 sizes[i] = size;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3550 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3551 //sort the widths
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3552 widths.sort(function(a,b) {return a - b;});
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3553 //drop 10% of the items off each end
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3554 tenpercent = Math.floor(widths.length / 10);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3555 for (i = 0; i < tenpercent; ++i) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3556 widths.pop();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3557 widths.shift();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3558 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3559 //calculate average width
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3560 avg_width = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3561 for (i = 0; i < widths.length; ++i) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3562 avg_width += widths[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3563 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3564 avg_width /= widths.length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3565 // calculate the target width
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3566 target_width = width * this.scale * 2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3567 // calculate scales
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3568 for (i = 0; i < alphabet.get_size_core(); ++i) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3569 sym = alphabet.get_symbol(i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3570 size = sizes[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3571 // calculate scale
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3572 scale = target_width / Math.max(avg_width, size.width);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3573 // estimate scaled height
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3574 target_height = size.height * scale;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3575 // create an appropriately sized canvas
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3576 canvas = document.createElement("canvas");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3577 canvas.width = target_width;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3578 canvas.height = target_height + safety_pad * 2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3579 // calculate the middle
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3580 middle = Math.round(canvas.width / 2);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3581 // calculate the baseline
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3582 baseline = Math.round(canvas.height - safety_pad);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3583 // get the context and prepare to draw the rasterized text
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3584 ctx = canvas.getContext('2d');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3585 ctx.font = font;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3586 ctx.fillStyle = alphabet.get_colour(i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3587 ctx.textAlign = "center";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3588 ctx.translate(middle, baseline);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3589 ctx.save();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3590 ctx.scale(scale, scale);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3591 // draw the text
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3592 ctx.fillText(sym, 0, 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3593 ctx.restore();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3594 this.sym_cache[sym] = {"image": canvas, "size": canvas_bounds(ctx, canvas.width, canvas.height)};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3595 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3596 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3597
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3598 RasterizedAlphabet.prototype.get_alphabet = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3599 return this.alphabet;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3600 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3601
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3602 RasterizedAlphabet.prototype.get_scale = function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3603 return this.scale;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3604 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3605
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3606 RasterizedAlphabet.prototype.draw_stack_sym = function(ctx, letter, dx, dy, dWidth, dHeight) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3607 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3608 var entry, image, size;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3609 entry = this.sym_cache[letter];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3610 image = entry.image;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3611 size = entry.size;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3612 ctx.drawImage(image, 0, size.bound_top -1, image.width, size.height+1, dx, dy, dWidth, dHeight);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3613 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3614
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3615 RasterizedAlphabet.prototype.draw_stack_num = function(ctx, font, stack_width, index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3616 var image, image_ctx, text_length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3617 if (index >= this.stack_num_cache.length) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3618 image = document.createElement("canvas");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3619 // measure the text
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3620 image_ctx = image.getContext('2d');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3621 image_ctx.save();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3622 image_ctx.font = font;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3623 text_length = image_ctx.measureText("" + (index + 1)).width;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3624 image_ctx.restore();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3625 // resize the canvas to fit
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3626 image.width = Math.ceil(stack_width);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3627 image.height = Math.ceil(text_length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3628 // draw the text
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3629 image_ctx = image.getContext('2d');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3630 image_ctx.translate(Math.round(stack_width / 2), 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3631 image_ctx.font = font;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3632 image_ctx.textBaseline = "middle";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3633 image_ctx.textAlign = "right";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3634 image_ctx.rotate(-(Math.PI / 2));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3635 image_ctx.fillText("" + (index + 1), 0, 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3636 this.stack_num_cache[index] = image;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3637 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3638 image = this.stack_num_cache[index];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3639 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3640 ctx.drawImage(image, 0, 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3641 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3642
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3643 RasterizedAlphabet.prototype.draw_scale_num = function(ctx, font, num) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3644 var image, image_ctx, text_size, m_length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3645 if (num >= this.scale_num_cache.length) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3646 image = document.createElement("canvas");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3647 // measure the text
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3648 image_ctx = image.getContext('2d');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3649 image_ctx.font = font;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3650 text_size = image_ctx.measureText("" + num);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3651 if (text_size.actualBoundingBoxAscent && text_size.actualBoundingBoxDesent) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3652 // resize the canvas to fit
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3653 image.width = Math.ceil(text_size.width);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3654 image.height = Math.ceil(text_size.actualBoundingBoxAscent + text_size.actualBoundingBoxDesent);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3655 // draw the text
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3656 image_ctx = image.getContext('2d');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3657 image_ctx.font = font;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3658 image_ctx.textAlign = "right";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3659 image_ctx.fillText("" + num, image.width, text_size.actualBoundingBoxAscent);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3660 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3661 // measure width of 'm' to approximate height, we double it later anyway
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3662 m_length = image_ctx.measureText("m").width;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3663 // resize the canvas to fit
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3664 image.width = Math.ceil(text_size.width);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3665 image.height = Math.ceil(2 * m_length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3666 // draw the text
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3667 image_ctx = image.getContext('2d');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3668 image_ctx.font = font;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3669 image_ctx.textAlign = "right";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3670 image_ctx.textBaseline = "middle";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3671 image_ctx.fillText("" + num, image.width, m_length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3672 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3673 this.scale_num_cache[num] = image;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3674 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3675 image = this.scale_num_cache[num];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3676 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3677 ctx.drawImage(image, -image.width, -Math.round(image.height / 2))
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3678 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3679
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3680 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3681 // end RasterizedAlphabet
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3682 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3683
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3684 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3685 // start LogoMetrics object
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3686 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3687
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3688 var LogoMetrics = function(ctx, logo_columns, logo_rows, has_names, has_finetext, x_axis, y_axis) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3689 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3690 var i, row_height;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3691 //variable prototypes
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3692 this.pad_top = (has_names ? 5 : 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3693 this.pad_left = (y_axis ? 10 : 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3694 this.pad_right = (has_finetext ? 15 : 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3695 this.pad_bottom = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3696 this.pad_middle = 20;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3697 this.name_height = 14;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3698 this.name_font = "bold " + this.name_height + "px Times, sans-serif";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3699 this.name_spacer = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3700 this.y_axis = y_axis;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3701 this.y_label = "bits";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3702 this.y_label_height = 12;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3703 this.y_label_font = "bold " + this.y_label_height + "px Helvetica, sans-serif";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3704 this.y_label_spacer = 3;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3705 this.y_num_height = 12;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3706 this.y_num_width = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3707 this.y_num_font = "bold " + this.y_num_height + "px Helvetica, sans-serif";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3708 this.y_tic_width = 5;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3709 this.stack_pad_left = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3710 this.stack_font = "bold 25px Helvetica, sans-serif";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3711 this.stack_height = 90;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3712 this.stack_width = 26;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3713 this.stacks_pad_right = 5;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3714 this.x_axis = x_axis;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3715 this.x_num_above = 2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3716 this.x_num_height = 12;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3717 this.x_num_width = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3718 this.x_num_font = "bold " + this.x_num_height + "px Helvetica, sans-serif";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3719 this.fine_txt_height = 6;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3720 this.fine_txt_above = 2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3721 this.fine_txt_font = "normal " + this.fine_txt_height + "px Helvetica, sans-serif";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3722 this.letter_metrics = new Array();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3723 this.summed_width = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3724 this.summed_height = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3725 //calculate the width of the y axis numbers
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3726 ctx.font = this.y_num_font;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3727 for (i = 0; i <= 2; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3728 this.y_num_width = Math.max(this.y_num_width, ctx.measureText("" + i).width);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3729 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3730 //calculate the width of the x axis numbers (but they are rotated so it becomes height)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3731 if (x_axis == 1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3732 ctx.font = this.x_num_font;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3733 for (i = 1; i <= logo_columns; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3734 this.x_num_width = Math.max(this.x_num_width, ctx.measureText("" + i).width);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3735 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3736 } else if (x_axis == 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3737 this.x_num_height = 4;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3738 this.x_num_width = 4;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3739 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3740 this.x_num_height = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3741 this.x_num_width = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3742 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3743
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3744 //calculate how much vertical space we want to draw this
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3745 //first we add the padding at the top and bottom since that's always there
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3746 this.summed_height += this.pad_top + this.pad_bottom;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3747 //all except the last row have the same amount of space allocated to them
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3748 if (logo_rows > 1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3749 row_height = this.stack_height + this.pad_middle;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3750 if (has_names) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3751 row_height += this.name_height;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3752 //the label is allowed to overlap into the spacer
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3753 row_height += Math.max(this.y_num_height/2, this.name_spacer);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3754 //the label is allowed to overlap the space used by the other label
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3755 row_height += Math.max(this.y_num_height/2, this.x_num_height + this.x_num_above);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3756 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3757 row_height += this.y_num_height/2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3758 //the label is allowed to overlap the space used by the other label
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3759 row_height += Math.max(this.y_num_height/2, this.x_num_height + this.x_num_above);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3760 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3761 this.summed_height += row_height * (logo_rows - 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3762 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3763 //the last row has the name and fine text below it but no padding
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3764 this.summed_height += this.stack_height + (this.y_axis ? this.y_num_height/2 : 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3765
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3766 var fine_txt_total = (has_finetext ? this.fine_txt_height + this.fine_txt_above : 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3767 if (has_names) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3768 this.summed_height += fine_txt_total + this.name_height;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3769 this.summed_height += Math.max((this.y_axis ? this.y_num_height/2 : 0),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3770 this.x_num_height + this.x_num_above + this.name_spacer);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3771 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3772 this.summed_height += Math.max((this.y_axis ? this.y_num_height/2 : 0),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3773 this.x_num_height + this.x_num_above + fine_txt_total);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3774 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3775
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3776 //calculate how much horizontal space we want to draw this
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3777 //first add the padding at the left and right since that's always there
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3778 this.summed_width += this.pad_left + this.pad_right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3779 if (this.y_axis) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3780 //add on the space for the y-axis label
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3781 this.summed_width += this.y_label_height + this.y_label_spacer;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3782 //add on the space for the y-axis
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3783 this.summed_width += this.y_num_width + this.y_tic_width;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3784 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3785 //add on the space for the stacks
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3786 this.summed_width += (this.stack_pad_left + this.stack_width) * logo_columns;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3787 //add on the padding after the stacks (an offset from the fine text)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3788 this.summed_width += this.stacks_pad_right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3789
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3790 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3791
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3792 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3793 // end LogoMetrics object
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3794 //======================================================================
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3795
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3796 //found this trick at http://talideon.com/weblog/2005/02/detecting-broken-images-js.cfm
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3797 function image_ok(img) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3798 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3799 // During the onload event, IE correctly identifies any images that
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3800 // weren't downloaded as not complete. Others should too. Gecko-based
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3801 // browsers act like NS4 in that they report this incorrectly.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3802 if (!img.complete) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3803 return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3804 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3805 // However, they do have two very useful properties: naturalWidth and
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3806 // naturalHeight. These give the true size of the image. If it failed
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3807 // to load, either of these should be zero.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3808 if (typeof img.naturalWidth !== "undefined" && img.naturalWidth === 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3809 return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3810 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3811 // No other way of checking: assume it's ok.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3812 return true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3813 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3814
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3815 function supports_text(ctx) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3816 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3817 if (!ctx.fillText) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3818 return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3819 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3820 if (!ctx.measureText) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3821 return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3822 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3823 return true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3824 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3825
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3826 //draws the scale, returns the width
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3827 function draw_scale(ctx, metrics, alphabet_ic, raster) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3828 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3829 var tic_height, i;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3830 tic_height = metrics.stack_height / alphabet_ic;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3831 ctx.save();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3832 ctx.translate(metrics.y_label_height, metrics.y_num_height/2);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3833 //draw the axis label
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3834 ctx.save();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3835 ctx.font = metrics.y_label_font;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3836 ctx.translate(0, metrics.stack_height/2);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3837 ctx.rotate(-(Math.PI / 2));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3838 ctx.textAlign = "center";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3839 ctx.fillText("bits", 0, 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3840 ctx.restore();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3841
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3842 ctx.translate(metrics.y_label_spacer + metrics.y_num_width, 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3843
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3844 //draw the axis tics
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3845 ctx.save();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3846 ctx.translate(0, metrics.stack_height);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3847 for (i = 0; i <= alphabet_ic; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3848 //draw the number
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3849 ctx.save();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3850 ctx.translate(-1, 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3851 raster.draw_scale_num(ctx, metrics.y_num_font, i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3852 ctx.restore();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3853 //draw the tic
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3854 ctx.fillRect(0, -1, metrics.y_tic_width, 2);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3855 //prepare for next tic
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3856 ctx.translate(0, -tic_height);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3857 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3858 ctx.restore();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3859
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3860 ctx.fillRect(metrics.y_tic_width - 2, 0, 2, metrics.stack_height)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3861
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3862 ctx.restore();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3863 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3864
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3865 function draw_stack_num(ctx, metrics, row_index, raster) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3866 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3867 ctx.save();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3868 ctx.translate(0, Math.round(metrics.stack_height + metrics.x_num_above));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3869 if (metrics.x_axis == 1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3870 raster.draw_stack_num(ctx, metrics.x_num_font, metrics.stack_width, row_index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3871 } else if (metrics.x_axis == 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3872 // draw dots instead of the numbers (good for small logos)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3873 ctx.beginPath();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3874 var radius = Math.round(metrics.x_num_height / 2);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3875 ctx.arc(Math.round(metrics.stack_width / 2), radius, radius, 0, 2 * Math.PI, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3876 ctx.fill();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3877 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3878 ctx.restore();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3879 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3880
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3881 function draw_stack(ctx, metrics, symbols, raster) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3882 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3883 var preferred_pad, sym_min, i, sym, sym_height, pad;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3884 preferred_pad = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3885 sym_min = 5;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3886
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3887 ctx.save();//1
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3888 ctx.translate(0, metrics.stack_height);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3889 for (i = 0; i < symbols.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3890 sym = symbols[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3891 sym_height = metrics.stack_height * sym.get_scale();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3892
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3893 pad = preferred_pad;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3894 if (sym_height - pad < sym_min) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3895 pad = Math.min(pad, Math.max(0, sym_height - sym_min));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3896 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3897 sym_height -= pad;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3898
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3899 //translate to the correct position
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3900 ctx.translate(0, -(pad/2 + sym_height));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3901
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3902 //draw
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3903 raster.draw_stack_sym(ctx, sym.get_symbol(), 0, 0, metrics.stack_width, sym_height);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3904 //translate past the padding
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3905 ctx.translate(0, -(pad/2));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3906 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3907 ctx.restore();//1
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3908 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3909
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3910 function draw_dashed_line(ctx, pattern, start, x1, y1, x2, y2) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3911 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3912 var x, y, len, i, dx, dy, tlen, theta, mulx, muly, lx, ly;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3913 dx = x2 - x1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3914 dy = y2 - y1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3915 tlen = Math.pow(dx*dx + dy*dy, 0.5);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3916 theta = Math.atan2(dy,dx);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3917 mulx = Math.cos(theta);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3918 muly = Math.sin(theta);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3919 lx = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3920 ly = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3921 for (i = 0; i < pattern; ++i) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3922 lx.push(pattern[i] * mulx);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3923 ly.push(pattern[i] * muly);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3924 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3925 i = start;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3926 x = x1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3927 y = y1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3928 len = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3929 ctx.beginPath();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3930 while (len + pattern[i] < tlen) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3931 ctx.moveTo(x, y);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3932 x += lx[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3933 y += ly[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3934 ctx.lineTo(x, y);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3935 len += pattern[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3936 i = (i + 1) % pattern.length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3937 x += lx[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3938 y += ly[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3939 len += pattern[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3940 i = (i + 1) % pattern.length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3941 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3942 if (len < tlen) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3943 ctx.moveTo(x, y);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3944 x += mulx * (tlen - len);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3945 y += muly * (tlen - len);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3946 ctx.lineTo(x, y);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3947 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3948 ctx.stroke();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3949 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3950
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3951 function draw_trim_background(ctx, metrics, left_start, left_end, left_divider, right_start, right_end, right_divider) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3952 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3953 var left_size = left_end - left_start;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3954 var right_size = right_end - right_start;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3955 var line_x;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3956
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3957 ctx.save();//s8
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3958 ctx.fillStyle = "rgb(240, 240, 240)";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3959 if (left_size > 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3960 ctx.fillRect(left_start * metrics.stack_width, 0, left_size * metrics.stack_width, metrics.stack_height);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3961 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3962 if (right_size > 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3963 ctx.fillRect(right_start * metrics.stack_width, 0, right_size * metrics.stack_width, metrics.stack_height);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3964 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3965 ctx.fillStyle = "rgb(51, 51, 51)";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3966 if (left_size > 0 && left_divider) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3967 line_x = (left_end * metrics.stack_width) - 0.5;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3968 draw_dashed_line(ctx, [3], 0, line_x, 0, line_x, metrics.stack_height);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3969 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3970 if (right_size > 0 && right_divider) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3971 line_x = (right_start * metrics.stack_width) + 0.5;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3972 draw_dashed_line(ctx, [3], 0, line_x, 0, line_x, metrics.stack_height);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3973 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3974 ctx.restore();//s8
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3975 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3976
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3977 function size_logo_on_canvas(logo, canvas, show_names, scale) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3978 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3979 var draw_name, draw_finetext, metrics;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3980 draw_name = (typeof show_names === "boolean" ? show_names : (logo.get_rows() > 1));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3981 draw_finetext = (logo.fine_text.length > 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3982 if (canvas.width !== 0 && canvas.height !== 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3983 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3984 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3985 metrics = new LogoMetrics(canvas.getContext('2d'),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3986 logo.get_xlate_columns(), logo.get_rows(), draw_name, draw_finetext, logo.x_axis, logo.y_axis);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3987 if (typeof scale == "number") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3988 //resize the canvas to fit the scaled logo
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3989 canvas.width = metrics.summed_width * scale;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3990 canvas.height = metrics.summed_height * scale;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3991 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3992 if (canvas.width === 0 && canvas.height === 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3993 canvas.width = metrics.summed_width;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3994 canvas.height = metrics.summed_height;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3995 } else if (canvas.width === 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3996 canvas.width = metrics.summed_width * (canvas.height / metrics.summed_height);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3997 } else if (canvas.height === 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3998 canvas.height = metrics.summed_height * (canvas.width / metrics.summed_width);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
3999 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4000 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4001 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4002
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4003 function draw_logo_on_canvas(logo, canvas, show_names, scale) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4004 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4005 var i, draw_name, draw_finetext, ctx, metrics, raster, pspm_i, pspm,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4006 offset, col_index, motif_position, ssc;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4007 ssc = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4008 draw_name = (typeof show_names === "boolean" ? show_names : (logo.get_rows() > 1));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4009 draw_finetext = (logo.fine_text.length > 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4010 ctx = canvas.getContext('2d');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4011 //assume that the user wants the canvas scaled equally so calculate what the best width for this image should be
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4012 metrics = new LogoMetrics(ctx, logo.get_xlate_columns(), logo.get_rows(), draw_name, draw_finetext, logo.x_axis, logo.y_axis);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4013 if (typeof scale == "number") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4014 //resize the canvas to fit the scaled logo
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4015 canvas.width = metrics.summed_width * scale;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4016 canvas.height = metrics.summed_height * scale;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4017 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4018 if (canvas.width === 0 && canvas.height === 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4019 scale = 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4020 canvas.width = metrics.summed_width;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4021 canvas.height = metrics.summed_height;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4022 } else if (canvas.width === 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4023 scale = canvas.height / metrics.summed_height;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4024 canvas.width = metrics.summed_width * scale;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4025 } else if (canvas.height === 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4026 scale = canvas.width / metrics.summed_width;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4027 canvas.height = metrics.summed_height * scale;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4028 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4029 scale = Math.min(canvas.width / metrics.summed_width, canvas.height / metrics.summed_height);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4030 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4031 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4032 // cache the raster based on the assumption that we will be drawing a lot
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4033 // of logos the same size and alphabet
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4034 if (typeof draw_logo_on_canvas.raster_cache === "undefined") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4035 draw_logo_on_canvas.raster_cache = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4036 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4037 for (i = 0; i < draw_logo_on_canvas.raster_cache.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4038 raster = draw_logo_on_canvas.raster_cache[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4039 if (raster.get_alphabet().equals(logo.alphabet) &&
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4040 Math.abs(raster.get_scale() - scale) < 0.1) break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4041 raster = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4042 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4043 if (raster == null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4044 raster = new RasterizedAlphabet(logo.alphabet, scale, metrics.stack_font, metrics.stack_width);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4045 draw_logo_on_canvas.raster_cache.push(raster);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4046 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4047 ctx = canvas.getContext('2d');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4048 ctx.save();//s1
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4049 ctx.scale(scale, scale);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4050 ctx.save();//s2
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4051 ctx.save();//s7
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4052 //create margin
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4053 ctx.translate(Math.round(metrics.pad_left), Math.round(metrics.pad_top));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4054 for (pspm_i = 0; pspm_i < logo.get_rows(); ++pspm_i) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4055 pspm = logo.get_pspm(pspm_i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4056 offset = logo.get_offset(pspm_i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4057 //optionally draw name if this isn't the last row or is the only row
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4058 if (draw_name && (logo.get_rows() == 1 || pspm_i != (logo.get_rows()-1))) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4059 ctx.save();//s4
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4060 ctx.translate(Math.round(metrics.summed_width/2), Math.round(metrics.name_height));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4061 ctx.font = metrics.name_font;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4062 ctx.textAlign = "center";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4063 ctx.fillText(pspm.name, 0, 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4064 ctx.restore();//s4
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4065 ctx.translate(0, Math.round(metrics.name_height +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4066 Math.min(0, metrics.name_spacer - metrics.y_num_height/2)));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4067 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4068 //draw scale
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4069 if (logo.y_axis) draw_scale(ctx, metrics, logo.alphabet.get_ic(), raster);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4070 ctx.save();//s5
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4071 //translate across past the scale
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4072 if (logo.y_axis) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4073 ctx.translate(Math.round(metrics.y_label_height + metrics.y_label_spacer +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4074 metrics.y_num_width + metrics.y_tic_width), Math.round(metrics.y_num_height / 2));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4075 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4076 //draw the trimming background
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4077 if (pspm.get_left_trim() > 0 || pspm.get_right_trim() > 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4078 var left_start = offset * logo.get_xlate_nsyms();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4079 var left_end = (offset + pspm.get_left_trim()) * logo.get_xlate_nsyms();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4080 var left_divider = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4081 if (left_end < logo.get_xlate_start() || left_start > logo.get_xlate_end()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4082 // no overlap
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4083 left_start = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4084 left_end = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4085 left_divider = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4086 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4087 if (left_start < logo.get_xlate_start()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4088 left_start = logo.get_xlate_start();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4089 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4090 if (left_end > logo.get_xlate_end()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4091 left_end = logo.get_xlate_end();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4092 left_divider = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4093 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4094 left_start -= logo.get_xlate_start();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4095 left_end -= logo.get_xlate_start();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4096 if (left_end < left_start) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4097 left_start = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4098 left_end = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4099 left_divider = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4100 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4101 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4102 var right_end = (offset + pspm.get_motif_length()) * logo.get_xlate_nsyms();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4103 //var right_start = right_end - (pspm.get_left_trim() * logo.get_xlate_nsyms());
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4104 var right_start = right_end - (pspm.get_right_trim() * logo.get_xlate_nsyms());
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4105 var right_divider = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4106 if (right_end < logo.get_xlate_start() || right_start > logo.get_xlate_end()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4107 // no overlap
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4108 right_start = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4109 right_end = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4110 right_divider = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4111 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4112 if (right_start < logo.get_xlate_start()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4113 right_start = logo.get_xlate_start();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4114 right_divider = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4115 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4116 if (right_end > logo.get_xlate_end()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4117 right_end = logo.get_xlate_end();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4118 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4119 right_start -= logo.get_xlate_start();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4120 right_end -= logo.get_xlate_start();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4121 if (right_end < right_start) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4122 right_start = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4123 right_end = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4124 right_divider = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4125 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4126 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4127 draw_trim_background(ctx, metrics, left_start, left_end, left_divider, right_start, right_end, right_divider);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4128 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4129 //draw letters
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4130 var xlate_col;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4131 for (xlate_col = logo.get_xlate_start(); xlate_col < logo.get_xlate_end(); xlate_col++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4132 ctx.translate(metrics.stack_pad_left,0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4133 col_index = Math.floor(xlate_col / logo.get_xlate_nsyms());
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4134 if (xlate_col % logo.get_xlate_nsyms() == 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4135 if (col_index >= offset && col_index < (offset + pspm.get_motif_length())) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4136 motif_position = col_index - offset;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4137 draw_stack_num(ctx, metrics, motif_position, raster);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4138 draw_stack(ctx, metrics, pspm.get_stack(motif_position, logo.alphabet, ssc), raster);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4139 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4140 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4141 if (col_index >= offset && col_index < (offset + pspm.get_motif_length())) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4142 ctx.save();// s5.1
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4143 ctx.translate(0, Math.round(metrics.stack_height));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4144 // TODO draw a dot or dash or something to indicate continuity of the motif
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4145 ctx.restore(); //s5.1
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4146 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4147 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4148 ctx.translate(Math.round(metrics.stack_width), 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4149 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4150 ctx.restore();//s5
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4151 ////optionally draw name if this is the last row but isn't the only row
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4152 if (draw_name && (logo.get_rows() != 1 && pspm_i == (logo.get_rows()-1))) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4153 //translate vertically past the stack and axis's
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4154 ctx.translate(0, metrics.y_num_height/2 + metrics.stack_height +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4155 Math.max(metrics.y_num_height/2, metrics.x_num_above + metrics.x_num_width + metrics.name_spacer));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4156
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4157 ctx.save();//s6
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4158 ctx.translate(metrics.summed_width/2, metrics.name_height);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4159 ctx.font = metrics.name_font;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4160 ctx.textAlign = "center";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4161 ctx.fillText(pspm.name, 0, 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4162 ctx.restore();//s6
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4163 ctx.translate(0, metrics.name_height);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4164 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4165 //translate vertically past the stack and axis's
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4166 ctx.translate(0, metrics.y_num_height/2 + metrics.stack_height +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4167 Math.max(metrics.y_num_height/2, metrics.x_num_above + metrics.x_num_width));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4168 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4169 //if not the last row then add middle padding
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4170 if (pspm_i != (logo.get_rows() -1)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4171 ctx.translate(0, metrics.pad_middle);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4172 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4173 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4174 ctx.restore();//s7
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4175 if (logo.fine_text.length > 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4176 ctx.translate(metrics.summed_width - metrics.pad_right, metrics.summed_height - metrics.pad_bottom);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4177 ctx.font = metrics.fine_txt_font;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4178 ctx.textAlign = "right";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4179 ctx.fillText(logo.fine_text, 0,0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4180 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4181 ctx.restore();//s2
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4182 ctx.restore();//s1
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4183 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4184
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4185 function create_canvas(c_width, c_height, c_id, c_title, c_display) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4186 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4187 var canvas = document.createElement("canvas");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4188 //check for canvas support before attempting anything
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4189 if (!canvas.getContext) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4190 return null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4191 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4192 var ctx = canvas.getContext('2d');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4193 //check for html5 text drawing support
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4194 if (!supports_text(ctx)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4195 return null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4196 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4197 //size the canvas
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4198 canvas.width = c_width;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4199 canvas.height = c_height;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4200 canvas.id = c_id;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4201 canvas.title = c_title;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4202 canvas.style.display = c_display;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4203 return canvas;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4204 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4205
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4206 function logo_1(alphabet, fine_text, pspm) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4207 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4208 var logo = new Logo(alphabet, fine_text);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4209 logo.add_pspm(pspm);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4210 return logo;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4211 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4212
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4213 function logo_2(alphabet, fine_text, target, query, query_offset) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4214 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4215 var logo = new Logo(alphabet, fine_text);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4216 if (query_offset < 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4217 logo.add_pspm(target, -query_offset);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4218 logo.add_pspm(query);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4219 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4220 logo.add_pspm(target);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4221 logo.add_pspm(query, query_offset);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4222 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4223 return logo;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4224 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4225
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4226 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4227 * Specifies an alternate source for an image.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4228 * If the image with the image_id specified has
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4229 * not loaded then a generated logo will be used
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4230 * to replace it.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4231 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4232 * Note that the image must either have dimensions
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4233 * or a scale must be set.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4234 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4235 function alternate_logo(logo, image_id, scale) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4236 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4237 var image = document.getElementById(image_id);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4238 if (!image) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4239 alert("Can't find specified image id (" + image_id + ")");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4240 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4241 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4242 //if the image has loaded then there is no reason to use the canvas
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4243 if (image_ok(image)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4244 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4245 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4246 //the image has failed to load so replace it with a canvas if we can.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4247 var canvas = create_canvas(image.width, image.height, image_id, image.title, image.style.display);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4248 if (canvas === null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4249 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4250 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4251 //draw the logo on the canvas
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4252 draw_logo_on_canvas(logo, canvas, null, scale);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4253 //replace the image with the canvas
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4254 image.parentNode.replaceChild(canvas, image);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4255 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4256
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4257 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4258 * Specifes that the element with the specified id
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4259 * should be replaced with a generated logo.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4260 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4261 function replace_logo(logo, replace_id, scale, title_txt, display_style) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4262 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4263 var element = document.getElementById(replace_id);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4264 if (!replace_id) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4265 alert("Can't find specified id (" + replace_id + ")");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4266 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4267 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4268 //found the element!
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4269 var canvas = create_canvas(50, 120, replace_id, title_txt, display_style);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4270 if (canvas === null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4271 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4272 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4273 //draw the logo on the canvas
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4274 draw_logo_on_canvas(logo, canvas, null, scale);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4275 //replace the element with the canvas
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4276 element.parentNode.replaceChild(canvas, element);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4277 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4278
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4279 /*
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4280 * Fast string trimming implementation found at
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4281 * http://blog.stevenlevithan.com/archives/faster-trim-javascript
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4282 *
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4283 * Note that regex is good at removing leading space but
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4284 * bad at removing trailing space as it has to first go through
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4285 * the whole string.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4286 */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4287 function trim (str) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4288 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4289 var ws, i;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4290 str = str.replace(/^\s\s*/, '');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4291 ws = /\s/; i = str.length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4292 while (ws.test(str.charAt(--i)));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4293 return str.slice(0, i + 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4294 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4295 </script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4296 <script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4297
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4298 // PRIVATE GLOBAL (uhoh)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4299 var _block_colour_lookup = {};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4300
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4301 function block_colour(index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4302 function hsl2rgb(hue, saturation, lightness) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4303 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4304 function _hue(p, q, t) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4305 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4306 if (t < 0) t += 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4307 else if (t > 1) t -= 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4308 if (t < (1.0 / 6.0)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4309 return p + ((q - p) * 6.0 * t);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4310 } else if (t < 0.5) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4311 return q;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4312 } else if (t < (2.0 / 3.0)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4313 return p + ((q - p) * ((2.0 / 3.0) - t) * 6.0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4314 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4315 return p;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4316 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4317 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4318 function _pad_hex(value) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4319 var hex = Math.round(value * 255).toString(16);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4320 if (hex.length < 2) hex = "0" + hex;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4321 return hex;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4322 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4323 var r, g, b, p, q;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4324 if (saturation == 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4325 // achromatic (grayscale)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4326 r = lightness;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4327 g = lightness;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4328 b = lightness;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4329 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4330 if (lightness < 0.5) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4331 q = lightness * (1 + saturation);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4332 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4333 q = lightness + saturation - (lightness * saturation);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4334 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4335 p = (2 * lightness) - q;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4336 r = _hue(p, q, hue + (1.0 / 3.0));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4337 g = _hue(p, q, hue);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4338 b = _hue(p, q, hue - (1.0 / 3.0));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4339 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4340 return "#" + _pad_hex(r) + _pad_hex(g) + _pad_hex(b);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4341 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4342 if (typeof index !== "number" || index % 1 !== 0 || index < 0) return "#000000";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4343 // check for override
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4344 if (_block_colour_lookup[index] == null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4345 var start = 0; //red
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4346 var sat = 100;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4347 var light = 50;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4348 var divisions = 1 << Math.ceil(Math.log(index + 1) / Math.LN2);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4349 hue = start + (360 / divisions) * ((index - (divisions >> 1)) * 2 + 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4350 // colour input fields only support values in the form #RRGGBB
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4351 _block_colour_lookup[index] = hsl2rgb(hue / 360, sat / 100, light / 100);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4352 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4353 return _block_colour_lookup[index];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4354 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4355
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4356 function set_block_colour(index, new_colour) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4357 _block_colour_lookup[index] = new_colour;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4358 var blocks = document.querySelectorAll("div.block_motif[data-colour-index=\"" + index + "\"]");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4359 var i;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4360 for (i = 0; i < blocks.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4361 blocks[i].style.backgroundColor = new_colour;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4362 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4363 var swatches = document.querySelectorAll("div.legend_swatch[data-colour-index=\"" + index + "\"]");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4364 var picker;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4365 for (i = 0; i < swatches.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4366 swatches[i].style.backgroundColor = new_colour;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4367 picker = swatches[i].querySelector("input[type=\"color\"]");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4368 if (picker != null) picker.value = new_colour;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4369 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4370 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4371
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4372 function make_block_legend_entry(motif_name, motif_colour_index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4373 if (typeof make_block_legend_entry.has_colour_picker !== "boolean") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4374 // test if colour picker is supported, based off Modernizer
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4375 // see http://stackoverflow.com/a/7787648/66387
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4376 make_block_legend_entry.has_colour_picker = (function() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4377 var doc_ele = document.documentElement;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4378 // We first check to see if the type we give it sticks..
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4379 var input_ele = document.createElement('input');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4380 input_ele.setAttribute('type', 'color');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4381 var value_ok = input_ele.type !== 'text';
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4382 if (value_ok) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4383 // If the type does, we feed it a textual value, which shouldn't be valid.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4384 // If the value doesn't stick, we know there's input sanitization which infers a custom UI
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4385 var smile = ':)';
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4386 input_ele.value = smile;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4387 input_ele.style.cssText = 'position:absolute;visibility:hidden;';
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4388 // chuck into DOM and force reflow for Opera bug in 11.00
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4389 // github.com/Modernizr/Modernizr/issues#issue/159
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4390 doc_ele.appendChild(input_ele);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4391 doc_ele.offsetWidth;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4392 value_ok = input_ele.value != smile;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4393 doc_ele.removeChild(input_ele);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4394 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4395 return value_ok;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4396 })();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4397 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4398 var entry = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4399 entry.className = "legend_entry";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4400 var swatch;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4401 swatch = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4402 swatch.className = "legend_swatch";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4403 swatch.setAttribute("data-colour-index", motif_colour_index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4404 swatch.style.backgroundColor = block_colour(motif_colour_index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4405 if (make_block_legend_entry.has_colour_picker) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4406 var picker = document.createElement("input");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4407 picker.type = "color";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4408 picker.value = block_colour(motif_colour_index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4409 picker.addEventListener("change", function(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4410 set_block_colour(motif_colour_index, picker.value);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4411 }, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4412 swatch.addEventListener("click", function(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4413 picker.click();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4414 }, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4415 swatch.appendChild(picker);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4416 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4417 entry.appendChild(swatch);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4418 var name = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4419 name.className = "legend_text";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4420 name.appendChild(document.createTextNode(motif_name));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4421 entry.appendChild(name);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4422 return entry;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4423 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4424
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4425 function make_block_ruler(max_len) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4426 var container = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4427 container.className = "block_container";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4428 var step;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4429 if (max_len < 50) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4430 step = 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4431 } else if (max_len < 100) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4432 step = 2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4433 } else if (max_len < 200) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4434 step = 4;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4435 } else if (max_len < 500) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4436 step = 10;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4437 } else if (max_len < 1000) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4438 step = 20;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4439 } else if (max_len < 2000) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4440 step = 40;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4441 } else if (max_len < 5000) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4442 step = 100;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4443 } else if (max_len < 10000) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4444 step = 200;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4445 } else if (max_len < 20000) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4446 step = 400;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4447 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4448 step = Math.floor(max_len / 20000) * 400;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4449 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4450 var peroid;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4451 if (max_len < 10) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4452 peroid = 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4453 } else if (max_len < 20) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4454 peroid = 2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4455 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4456 peroid = 5;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4457 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4458 var i, cycle, offset, tic, label;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4459 for (i = 0, cycle = 0; i < max_len; i += step, cycle = (cycle + 1) % peroid) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4460 offset = "" + ((i / max_len) * 100) + "%";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4461 tic = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4462 tic.style.left = offset;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4463 tic.className = (cycle == 0 ? "tic_major" : "tic_minor");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4464 container.appendChild(tic);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4465 if (cycle == 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4466 label = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4467 label.className = "tic_label";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4468 label.style.left = offset;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4469 label.appendChild(document.createTextNode(i));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4470 container.appendChild(label);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4471 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4472 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4473 return container;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4474 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4475
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4476 function _calculate_block_needle_drag_pos(e, data) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4477 var mouse;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4478 e = e || window.event;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4479 if (e.pageX || ev.pageY) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4480 mouse = {"x": e.pageX, "y": e.pageY};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4481 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4482 mouse = {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4483 x:e.clientX + document.body.scrollLeft - document.body.clientLeft,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4484 y:e.clientY + document.body.scrollTop - document.body.clientTop
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4485 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4486 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4487 var cont = data.container;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4488 var dragable_length = cont.clientWidth -
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4489 (cont.style.paddingLeft ? cont.style.paddingLeft : 0) -
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4490 (cont.style.paddingRight ? cont.style.paddingRight : 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4491 //I believe that the offset parent is the body
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4492 //otherwise I would need to make this recursive
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4493 //maybe clientLeft would work, but the explanation of
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4494 //it is hard to understand and it apparently doesn't work
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4495 //in firefox 2.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4496 var diff = mouse.x - cont.offsetLeft;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4497 if (diff < 0) diff = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4498 if (diff > dragable_length) diff = dragable_length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4499 var pos = Math.round(diff / dragable_length * data.max);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4500 if (pos > data.len) pos = data.len;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4501 return pos;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4502 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4503
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4504 function _update_block_needle_drag(e, data, done) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4505 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4506 var pos = _calculate_block_needle_drag_pos(e, data);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4507 // read the needle positions
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4508 var left = parseInt(data.llabel.textContent, 10) - data.off - 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4509 var right = parseInt(data.rlabel.textContent, 10) - data.off;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4510 // validate needle positions
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4511 if (left >= data.len) left = data.len - 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4512 if (left < 0) left = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4513 if (right > data.len) right = data.len;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4514 if (right <= left) right = left + 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4515 // calculate the new needle positions
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4516 if (data.moveboth) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4517 var size = right - left;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4518 if (data.isleft) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4519 if ((pos + size) > data.len) pos = data.len - size;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4520 left = pos;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4521 right = pos + size;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4522 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4523 if ((pos - size) < 0) pos = size;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4524 left = pos - size;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4525 right = pos;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4526 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4527 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4528 if (data.isleft) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4529 if (pos >= right) pos = right - 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4530 left = pos;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4531 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4532 if (pos <= left) pos = left + 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4533 right = pos;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4534 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4535 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4536 // update the needle positions
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4537 data.lneedle.style.left = "" + (left / data.max * 100) + "%";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4538 data.llabel.textContent = "" + (left + data.off + 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4539 data.rneedle.style.left = "" + (right / data.max * 100) + "%";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4540 data.rlabel.textContent = "" + (right + data.off);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4541 data.handler(left, right, done);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4542 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4543
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4544 function _make_block_needle_drag_start_handler(isleft, data) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4545 return function (e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4546 data.isleft = isleft;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4547 data.moveboth = !(e.shiftKey);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4548 document.addEventListener("mousemove", data.drag_during, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4549 document.addEventListener("mouseup", data.drag_end, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4550 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4551 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4552
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4553 function _make_block_needle_drag_end_handler(data) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4554 return function (e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4555 document.removeEventListener("mousemove", data.drag_during, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4556 document.removeEventListener("mouseup", data.drag_end, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4557 _update_block_needle_drag(e, data, true);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4558 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4559 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4560
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4561 function _make_block_needle_drag_during_handler(data) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4562 return function (e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4563 _update_block_needle_drag(e, data, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4564 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4565 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4566
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4567 // private function used by make_block_container
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4568 function _make_block_needle(isleft, value, data) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4569 var vbar = document.createElement('div');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4570 vbar.className = "block_needle " + (isleft ? "left" : "right");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4571 vbar.style.left = "" + (value / data.max * 100)+ "%";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4572 var label = document.createElement('div');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4573 label.className = "block_handle " + (isleft ? "left" : "right");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4574 // The needles sit between the sequence positions, so the left one sits at the
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4575 // start and the right at the end. This is why 1 is added to the displayed
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4576 // value for a left handle as the user doesn't need to know about this detail
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4577 label.textContent = "" + (isleft ? value + data.off + 1 : value + data.off);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4578 label.unselectable = "on"; // so IE and Opera don't select the text, others are done in css
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4579 label.title = "Drag to move the displayed range. Hold shift and drag to change " + (isleft ? "lower" : "upper") + " bound of the range.";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4580 vbar.appendChild(label);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4581 if (isleft) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4582 data.lneedle = vbar;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4583 data.llabel = label;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4584 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4585 data.rneedle = vbar;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4586 data.rlabel = label;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4587 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4588 label.addEventListener("mousedown", _make_block_needle_drag_start_handler(isleft, data), false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4589 return vbar;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4590 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4591
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4592 function make_block_container(is_stranded, has_both_strands, max_len, show_len, offset, range_handler) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4593 offset = (offset != null ? offset : 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4594 // make the container for the block diagram
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4595 var container = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4596 container.className = "block_container";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4597 container.setAttribute("data-max", max_len);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4598 container.setAttribute("data-off", offset);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4599 if (is_stranded) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4600 var plus = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4601 plus.appendChild(document.createTextNode("+"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4602 plus.className = "block_plus_sym";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4603 container.appendChild(plus);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4604 if (has_both_strands) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4605 var minus = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4606 minus.appendChild(document.createTextNode("-"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4607 minus.className = "block_minus_sym";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4608 container.appendChild(minus);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4609 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4610 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4611 var rule = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4612 rule.className = "block_rule";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4613 rule.style.width = ((show_len / max_len) * 100) + "%";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4614 container.appendChild(rule);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4615 if (range_handler != null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4616 var range_data = {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4617 "max": max_len,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4618 "len": show_len,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4619 "off": offset,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4620 "handler": range_handler,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4621 "container": container,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4622 "lneedle": null, "llabel": null,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4623 "rneedle": null, "rlabel": null,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4624 "isleft": false, "moveboth" : false
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4625 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4626 range_data.drag_during = _make_block_needle_drag_during_handler(range_data);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4627 range_data.drag_end = _make_block_needle_drag_end_handler(range_data);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4628 container.appendChild(_make_block_needle(false, 1, range_data)); // add right first so z-index works
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4629 container.appendChild(_make_block_needle(true, 0, range_data));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4630 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4631 return container;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4632 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4633
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4634 function make_block_label(container, max_len, pos, length, message) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4635 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4636 var label = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4637 label.className = "block_label";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4638 label.style.left = (((pos + (length / 2)) / max_len) * 100) + "%";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4639 label.appendChild(document.createTextNode(message));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4640 container.appendChild(label);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4641 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4642
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4643 function make_block(container, max_len,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4644 site_pos, site_len, site_pvalue, site_rc, site_colour_index, site_secondary) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4645 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4646 var block_height, block, block_region1, block_region2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4647 var max_block_height = 12;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4648 var max_pvalue = 1e-10;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4649 // calculate the height of the block
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4650 block_height = (site_pvalue < max_pvalue ? max_block_height :
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4651 (Math.log(site_pvalue) / Math.log(max_pvalue)) * max_block_height);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4652 if (block_height < 1) block_height = 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4653 // create a block to represent the motif
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4654 block = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4655 block.className = "block_motif" + (site_secondary ? " scanned_site" : "") + (site_rc ? " bottom" : " top");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4656 block.style.left = ((site_pos / max_len) * 100) + "%";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4657 block.style.top = (!site_rc ? max_block_height - block_height :
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4658 max_block_height + 1) + "px";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4659 block.style.width = ((site_len / max_len) * 100) + "%";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4660 block.style.height = block_height + "px";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4661 block.style.backgroundColor = block_colour(site_colour_index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4662 block.setAttribute("data-colour-index", site_colour_index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4663 // add to container
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4664 container.appendChild(block);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4665 var activator = function (e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4666 toggle_class(block, "active", true);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4667 var new_e = new e.constructor(e.type, e);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4668 block.dispatchEvent(new_e);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4669 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4670 var deactivator = function (e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4671 toggle_class(block, "active", false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4672 var new_e = new e.constructor(e.type, e);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4673 block.dispatchEvent(new_e);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4674 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4675 // create a larger region to detect mouseover for the block
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4676 block_region1 = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4677 block_region1.className = "block_region top" +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4678 (site_secondary ? " scanned_site" : "") + (site_rc ? "" : " main");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4679 block_region1.style.left = block.style.left;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4680 block_region1.style.width = block.style.width;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4681 block_region1.addEventListener('mouseover', activator, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4682 block_region1.addEventListener('mouseout', deactivator, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4683 container.appendChild(block_region1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4684 block_region2 = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4685 block_region2.className = "block_region bottom" +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4686 (site_secondary ? " scanned_site" : "") + (site_rc ? " main" : "");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4687 block_region2.style.left = block.style.left;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4688 block_region2.style.width = block.style.width;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4689 block_region2.addEventListener('mouseover', activator, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4690 block_region2.addEventListener('mouseout', deactivator, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4691 container.appendChild(block_region2);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4692 return block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4693 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4694
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4695 function set_block_needle_positions(containingNode, start, end) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4696 var container, lneedle, llabel, rneedle, rlabel, max, off, left, right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4697 container = (/\bblock_container\b/.test(containingNode.className) ? containingNode : containingNode.querySelector(".block_container"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4698 max = parseInt(container.getAttribute("data-max"), 10);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4699 off = parseInt(container.getAttribute("data-off"), 10);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4700 left = start - off;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4701 right = end - off;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4702 lneedle = containingNode.querySelector(".block_needle.left");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4703 llabel = lneedle.querySelector(".block_handle.left");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4704 rneedle = containingNode.querySelector(".block_needle.right");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4705 rlabel = rneedle.querySelector(".block_handle.right");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4706 // update the needle positions
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4707 lneedle.style.left = "" + (left / max * 100) + "%";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4708 llabel.textContent = "" + (left + off + 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4709 rneedle.style.left = "" + (right / max * 100) + "%";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4710 rlabel.textContent = "" + (right + off);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4711 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4712
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4713 function get_block_needle_positions(containingNode) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4714 var container, llabel, rlabel, max, off, left, right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4715 container = (/\bblock_container\b/.test(containingNode.className) ? containingNode : containingNode.querySelector(".block_container"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4716 max = parseInt(container.getAttribute("data-max"), 10);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4717 off = parseInt(container.getAttribute("data-off"), 10);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4718 llabel = containingNode.querySelector(".block_needle.left > .block_handle.left");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4719 rlabel = containingNode.querySelector(".block_needle.right > .block_handle.right");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4720 left = parseInt(llabel.textContent, 10) - off - 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4721 right = parseInt(rlabel.textContent, 10) - off;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4722 return {"start": left + off, "end": right + off};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4723 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4724 </script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4725 <script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4726 function make_alpha_bg_table(alph, freqs) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4727 function colour_symbol(index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4728 var span = document.createElement("span");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4729 span.appendChild(document.createTextNode(alph.get_symbol(index)));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4730 span.style.color = alph.get_colour(index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4731 span.className = "alpha_symbol";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4732 return span;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4733 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4734 var table, thead, tbody, row, th, span, i;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4735 // create table
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4736 table = document.createElement("table");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4737 table.className = "alpha_bg_table";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4738 // create header
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4739 thead = document.createElement("thead");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4740 table.appendChild(thead);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4741 row = thead.insertRow(thead.rows.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4742 if (alph.has_complement()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4743 add_text_header_cell(row, "Name", "pop_alph_name");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4744 if (freqs != null) add_text_header_cell(row, "Freq.", "pop_alph_freq");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4745 if (alph.has_bg()) add_text_header_cell(row, "Bg.", "pop_alph_bg");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4746 add_text_header_cell(row, "");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4747 add_text_header_cell(row, "");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4748 add_text_header_cell(row, "");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4749 if (alph.has_bg()) add_text_header_cell(row, "Bg.", "pop_alph_bg");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4750 if (freqs != null) add_text_header_cell(row, "Freq.", "pop_alph_freq");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4751 add_text_header_cell(row, "Name", "pop_alph_name");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4752 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4753 add_text_header_cell(row, "");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4754 add_text_header_cell(row, "Name", "pop_alph_name");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4755 if (freqs != null) add_text_header_cell(row, "Freq.", "pop_alph_freq");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4756 if (alph.has_bg()) add_text_header_cell(row, "Bg.", "pop_alph_bg");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4757 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4758 // add alphabet entries
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4759 tbody = document.createElement("tbody");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4760 table.appendChild(tbody);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4761 if (alph.has_complement()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4762 for (i = 0; i < alph.get_size_core(); i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4763 var c = alph.get_complement(i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4764 if (i > c) continue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4765 row = tbody.insertRow(tbody.rows.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4766 add_text_cell(row, alph.get_name(i));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4767 if (freqs != null) add_text_cell(row, "" + freqs[i].toFixed(3));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4768 if (alph.has_bg()) add_text_cell(row, "" + alph.get_bg_freq(i).toFixed(3));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4769 add_cell(row, colour_symbol(i));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4770 add_text_cell(row, "~");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4771 add_cell(row, colour_symbol(c));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4772 if (alph.has_bg()) add_text_cell(row, "" + alph.get_bg_freq(c).toFixed(3));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4773 if (freqs != null) add_text_cell(row, "" + freqs[c].toFixed(3));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4774 add_text_cell(row, alph.get_name(c));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4775 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4776 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4777 for (i = 0; i < alph.get_size_core(); i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4778 row = tbody.insertRow(tbody.rows.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4779 add_cell(row, colour_symbol(i));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4780 add_text_cell(row, alph.get_name(i));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4781 if (freqs != null) add_text_cell(row, "" + freqs[i].toFixed(3));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4782 if (alph.has_bg()) add_text_cell(row, "" + alph.get_bg_freq(i).toFixed(3));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4783 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4784 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4785 return table;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4786 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4787
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4788 </script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4789 <script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4790 var current_motif = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4791 var meme_alphabet = new Alphabet(data.alphabet, data.background.freqs);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4792
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4793 var DelayLogoTask = function(logo, canvas) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4794 this.logo = logo;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4795 this.canvas = canvas;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4796 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4797
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4798 DelayLogoTask.prototype.run = function () {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4799 draw_logo_on_canvas(this.logo, this.canvas, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4800 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4801
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4802 function motif_pspm(index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4803 var motif, pwm, psm, name, ltrim, rtrim, nsites, evalue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4804 // get motif
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4805 motif = data["motifs"][index];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4806 // get motif paramters
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4807 pwm = motif["pwm"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4808 psm = motif["psm"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4809 name = "" + (index + 1); ltrim = 0; rtrim = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4810 nsites = motif["nsites"]; evalue = motif["evalue"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4811 // make pspm
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4812 return new Pspm(pwm, name, ltrim, rtrim, nsites, evalue, psm);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4813 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4814
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4815 function motif_count_matrix(index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4816 return motif_pspm(index).as_count_matrix();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4817 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4818
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4819 function motif_prob_matrix(index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4820 return motif_pspm(index).as_probability_matrix();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4821 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4822
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4823 function motif_minimal_meme(index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4824 return motif_pspm(index).as_meme({
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4825 "with_header": true,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4826 "with_pspm": true,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4827 "with_pssm": true,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4828 "version": data["version"],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4829 "alphabet": meme_alphabet,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4830 "strands": (meme_alphabet.has_complement() && data.options.revcomp ? 2 : 1)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4831 });
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4832 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4833
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4834 function motif_fasta(index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4835 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4836 var motif, sites, site, seq, sequences, sequence, i, num, counter, out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4837 counter = {};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4838 sequences = data["sequence_db"]["sequences"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4839 motif = data["motifs"][index];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4840 sites = motif["sites"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4841 out = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4842 for (i = 0; i < sites.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4843 site = sites[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4844 seq = site["seq"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4845 sequence = sequences[seq];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4846 counter[seq] = (num = counter[seq]) ? (++num) : (num = 1); // inc counter
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4847 if (i !== 0) {out += "\n";}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4848 out += ">" + sequence["name"] + "_site_" + num + " offset= " + site["pos"] +
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4849 (site["rc"] ? " RC\n" : "\n");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4850 out += site["match"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4851 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4852 return out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4853 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4854
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4855 function motif_raw(index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4856 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4857 var sites, i, out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4858 sites = data["motifs"][index]["sites"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4859 out = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4860 for (i = 0; i < sites.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4861 if (i !== 0) {out += "\n";}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4862 out += sites[i]["match"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4863 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4864 return out;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4865 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4866
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4867 function clone_template(template) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4868 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4869 var node, help_btns, i, button;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4870 node = $(template).cloneNode(true);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4871 toggle_class(node, "template", false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4872 node.id = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4873 help_btns = node.querySelectorAll(".help");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4874 for (i = 0; i < help_btns.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4875 button = help_btns[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4876 if (button.hasAttribute("data-topic")) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4877 button.tabIndex = "0";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4878 button.addEventListener("click", __toggle_help, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4879 button.addEventListener("keydown", __toggle_help, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4880 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4881 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4882 return node;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4883 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4884
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4885 function set_tvar(template, tvar, value) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4886 var node;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4887 node = find_child(template, tvar);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4888 if (node === null) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4889 throw new Error("Template does not contain variable " + tvar);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4890 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4891 node.innerHTML = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4892 if (typeof value !== "object") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4893 node.appendChild(document.createTextNode(value));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4894 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4895 node.appendChild(value);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4896 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4897 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4898
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4899 function make_logo(alphabet, pspm, rc, offset, className) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4900 if (rc) pspm = pspm.copy().reverse_complement(alphabet);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4901 var logo = new Logo(alphabet, "");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4902 logo.add_pspm(pspm, offset);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4903 var canvas = document.createElement('canvas');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4904 canvas.height = 50;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4905 canvas.width = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4906 canvas.className = className;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4907 size_logo_on_canvas(logo, canvas, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4908 add_draw_task(canvas, new DelayLogoTask(logo, canvas));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4909 return canvas;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4910 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4911
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4912 function make_small_logo(alphabet, pspm, options) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4913 if (typeof options === "undefined") options = {};
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4914 if (options.rc) pspm = pspm.copy().reverse_complement(alphabet);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4915 var logo = new Logo(alphabet, {x_axis: false, y_axis: false});
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4916 logo.add_pspm(pspm, (typeof options.offset === "number" ? options.offset : 0));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4917 var canvas = document.createElement('canvas');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4918 if (typeof options.className === "string") canvas.className = options.className;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4919 if (typeof options.width === "number" && options.width > 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4920 canvas.height = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4921 canvas.width = options.width;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4922 draw_logo_on_canvas(logo, canvas, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4923 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4924 draw_logo_on_canvas(logo, canvas, false, 1/3);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4925 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4926 return canvas;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4927 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4928
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4929 function make_large_logo(alphabet, pspm, rc, offset, className) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4930 if (rc) pspm = pspm.copy().reverse_complement(alphabet);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4931 var logo = new Logo(alphabet, "");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4932 logo.add_pspm(pspm, offset);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4933 var canvas = document.createElement('canvas');
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4934 canvas.height = 200;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4935 canvas.width = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4936 canvas.className = className;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4937 size_logo_on_canvas(logo, canvas, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4938 add_draw_task(canvas, new DelayLogoTask(logo, canvas));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4939 return canvas;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4940 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4941
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4942 function make_sym_btn(symbol, title, action) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4943 var box;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4944 box = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4945 box.tabIndex = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4946 box.className = "sym_btn";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4947 box.appendChild(document.createTextNode(symbol));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4948 box.title = title;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4949 box.addEventListener('click', action, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4950 box.addEventListener('keydown', action, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4951 return box;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4952 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4953
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4954 function make_seq(alphabet, seq) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4955 var i, j, letter, lbox, sbox;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4956 sbox = document.createElement("span");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4957 for (i = 0; i < seq.length; i = j) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4958 letter = seq.charAt(i);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4959 for (j = i+1; j < seq.length; j++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4960 if (seq.charAt(j) !== letter) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4961 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4962 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4963 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4964 lbox = document.createElement("span");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4965 lbox.style.color = alphabet.get_colour(alphabet.get_index(letter));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4966 lbox.appendChild(document.createTextNode(seq.substring(i, j)));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4967 sbox.appendChild(lbox);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4968 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4969 return sbox;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4970 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4971
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4972 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4973 // make_pv_text
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4974 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4975 // Returns the string p-value, with the p italicised.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4976 ///
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4977 function make_pv_text() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4978 var pv_text = document.createElement("span");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4979 var pv_italic_text = document.createElement("span");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4980 pv_italic_text.appendChild(document.createTextNode("p"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4981 pv_italic_text.style.fontStyle = "italic";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4982 pv_text.appendChild(pv_italic_text);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4983 pv_text.appendChild(document.createTextNode("-value"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4984 return pv_text;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4985 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4986
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4987 function append_site_entries(tbody, motif, site_index, count) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4988 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4989 var i, end;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4990 var sites, site, sequences, sequence;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4991 var rbody;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4992 if (typeof count !== "number") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4993 count = 20;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4994 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4995 sequences = data["sequence_db"]["sequences"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4996 sites = motif["sites"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4997 end = Math.min(site_index + count, sites.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4998 for (i = site_index; i < end; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
4999 site = sites[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5000 sequence = sequences[site["seq"]];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5001
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5002 rbody = tbody.insertRow(tbody.rows.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5003 add_text_cell(rbody, "" + (site["seq"] + 1) + ".", "site_num");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5004 add_text_cell(rbody, sequence["name"], "site_name");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5005 add_text_cell(rbody, site["rc"] ? "-" : "+", "site_strand");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5006 add_text_cell(rbody, site["pos"] + 1, "site_start");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5007 add_text_cell(rbody, site["pvalue"].toExponential(2), "site_pvalue");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5008 add_text_cell(rbody, site["lflank"], "site lflank");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5009 add_cell(rbody, make_seq(meme_alphabet, site["match"]), "site match");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5010 add_text_cell(rbody, site["rflank"], "site rflank");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5011 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5012 return i;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5013 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5014
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5015 function make_site_entries() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5016 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5017 var region;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5018 region = this;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5019 if (region.data_site_index >= region.data_motif["sites"].length) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5020 // all sites created
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5021 region.removeEventListener('scroll', make_site_entries, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5022 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5023 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5024 // if there's still 100 pixels to scroll than don't do anything yet
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5025 if (region.scrollHeight - (region.scrollTop + region.offsetHeight) > 100) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5026 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5027 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5028
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5029 region.data_site_index = append_site_entries(
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5030 find_child(region, "sites_tbl").tBodies[0],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5031 region.data_motif, region.data_site_index, 20
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5032 );
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5033 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5034
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5035 function make_sites(motif) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5036 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5037 function add_site_header(row, title, nopad, help_topic, tag_class) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5038 var div, divcp, th;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5039 th = document.createElement("th");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5040 div = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5041 div.className = "sites_th_inner";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5042 if (typeof title !== "object") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5043 title = document.createTextNode("" + title);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5044 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5045 div.appendChild(title);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5046 if (help_topic) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5047 div.appendChild(document.createTextNode("\xA0"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5048 div.appendChild(help_button(help_topic));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5049 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5050 divcp = div.cloneNode(true);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5051 divcp.className = "sites_th_hidden";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5052 th.appendChild(div);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5053 th.appendChild(divcp);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5054 if (nopad) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5055 th.className = "nopad";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5056 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5057 if (tag_class) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5058 th.className += " " + tag_class;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5059 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5060 row.appendChild(th);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5061 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5062 var outer_tbl, inner_tbl, tbl, thead, tbody, rhead;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5063
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5064 outer_tbl = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5065 outer_tbl.className = "sites_outer";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5066
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5067 inner_tbl = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5068 inner_tbl.className = "sites_inner";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5069 outer_tbl.appendChild(inner_tbl);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5070
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5071 tbl = document.createElement("table");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5072 tbl.className = "sites_tbl";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5073 inner_tbl.appendChild(tbl);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5074
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5075 thead = document.createElement("thead");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5076 tbl.appendChild(thead);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5077 tbody = document.createElement("tbody");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5078 tbl.appendChild(tbody);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5079
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5080 rhead = thead.insertRow(thead.rows.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5081 add_site_header(rhead, "", true);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5082 add_site_header(rhead, "Name", false, "pop_seq_name");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5083 add_site_header(rhead, "Strand", false, "pop_site_strand", "site_strand_title");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5084 add_site_header(rhead, "Start", false, "pop_site_start");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5085 add_site_header(rhead, make_pv_text(), false, "pop_site_pvalue");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5086 add_site_header(rhead, "", false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5087 add_site_header(rhead, "Sites", true, "pop_site_match");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5088 add_site_header(rhead, "", false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5089
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5090 inner_tbl.data_motif = motif;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5091 inner_tbl.data_site_index = append_site_entries(tbody, motif, 0, 20);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5092 if (inner_tbl.data_site_index < motif["sites"].length) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5093 inner_tbl.addEventListener('scroll', make_site_entries, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5094 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5095 return outer_tbl;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5096 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5097
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5098 function make_motif_table_entry(row, alphabet, ordinal, motif, colw) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5099 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5100 function ev_sig(evalue_str) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5101 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5102 var ev_re, match, sig, exp, num;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5103 ev_re = /^(.*)e(.*)$/;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5104 if (match = ev_re.exec(evalue_str)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5105 sig = parseFloat(match[1]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5106 exp = parseInt(match[2]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5107 if (exp >= 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5108 return false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5109 } else if (exp <= -3) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5110 return true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5111 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5112 return sig * Math.pow(10, exp) <= 0.05;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5113 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5114 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5115 return true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5116 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5117 function make_preview(alphabet, motif) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5118 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5119 var pspm, preview, preview_rc;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5120 var box, btn_box, logo_box, btn_plus, btn_minus;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5121 if (motif["preview_logo"]) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5122 preview = motif["preview_logo"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5123 preview_rc = motif["preview_logo_rc"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5124 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5125 pspm = new Pspm(motif["pwm"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5126 preview = make_logo(alphabet, pspm);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5127 motif["preview_logo"] = preview;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5128 if (alphabet.has_complement()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5129 preview_rc = make_logo(alphabet, pspm, true, 0, "logo_rc");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5130 motif["preview_logo_rc"] = preview_rc;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5131 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5132 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5133 if (preview_rc) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5134 btn_plus = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5135 btn_plus.appendChild(document.createTextNode("+"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5136 btn_plus.className = "preview_btn plus";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5137 btn_plus.tabIndex = "0";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5138 btn_plus.addEventListener("click", action_btn_rc, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5139 btn_plus.addEventListener("keydown", action_btn_rc, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5140 btn_minus = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5141 btn_minus.appendChild(document.createTextNode("-"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5142 btn_minus.className = "preview_btn minus";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5143 btn_minus.tabIndex = "0";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5144 btn_minus.addEventListener("click", action_btn_rc, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5145 btn_minus.addEventListener("keydown", action_btn_rc, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5146 btn_box = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5147 btn_box.className = "preview_btn_box";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5148 btn_box.appendChild(btn_plus);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5149 btn_box.appendChild(btn_minus);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5150 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5151 logo_box = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5152 logo_box.className = "preview_logo_box";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5153 logo_box.appendChild(preview);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5154 if (preview_rc) logo_box.appendChild(preview_rc);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5155 box = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5156 box.className = "preview_box";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5157 if (preview_rc) box.appendChild(btn_box);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5158 box.appendChild(logo_box);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5159 if (preview_rc) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5160 if (motif["rc"]) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5161 btn_minus.className += " active";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5162 logo_box.className += " show_rc_logo";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5163 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5164 btn_plus.className += " active";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5165 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5166 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5167 return box;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5168 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5169 var pspm, preview, preview_rc, c;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5170 row.data_motif = motif;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5171 row.data_ordinal = ordinal;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5172 if (!ev_sig(motif["evalue"])) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5173 row.style.opacity = 0.4;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5174 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5175 add_text_cell(row, "" + ordinal + ".", "motif_ordinal");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5176 add_cell(row, make_preview(alphabet, motif), "motif_logo");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5177 add_text_cell(row, motif["evalue"], "motif_evalue");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5178 add_text_cell(row, motif["nsites"], "motif_nsites");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5179 add_text_cell(row, motif["len"], "motif_width");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5180 add_cell(row, make_sym_btn("\u21A7", "Show more information.",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5181 action_show_more), "motif_more");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5182 add_cell(row,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5183 make_sym_btn("\u21E2",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5184 "Submit the motif to another MEME Suite program or download it.",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5185 action_show_outpop),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5186 "motif_submit");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5187 if (colw) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5188 for (c = 0; c < row.cells.length; c++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5189 row.cells[c].style.minWidth = colw[c] + "px";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5190 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5191 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5192 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5193
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5194 function make_motifs_table(alphabet, start_ordinal, motifs, colw, stop_reason) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5195 var i, j;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5196 var tbl, thead, tbody, tfoot, row, preview;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5197 var motif, pspm;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5198
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5199 tbl = document.createElement("table");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5200
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5201 thead = document.createElement("thead");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5202 tbl.appendChild(thead);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5203 tbody = document.createElement("tbody");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5204 tbl.appendChild(tbody);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5205 tfoot = document.createElement("tfoot");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5206 tbl.appendChild(tfoot);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5207
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5208 row = thead.insertRow(thead.rows.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5209 add_text_header_cell(row, "", "", "motif_ordinal");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5210 add_text_header_cell(row, "Logo", "", "motif_logo");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5211 add_text_header_cell(row, "E-value", "pop_ev", "motif_evalue");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5212 add_text_header_cell(row, "Sites", "pop_sites", "motif_nsites");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5213 add_text_header_cell(row, "Width", "pop_width", "motif_width");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5214 add_text_header_cell(row, "More", "pop_more", "motif_more");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5215 add_text_header_cell(row, "Submit/Download", "pop_submit_dl", "motif_submit");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5216
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5217 for (i = 0; i < motifs.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5218 row = tbody.insertRow(tbody.rows.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5219 make_motif_table_entry(row, alphabet, start_ordinal + i, motifs[i], colw);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5220 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5221
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5222 row = tfoot.insertRow(tfoot.rows.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5223 add_text_header_cell(row, stop_reason, "", "stop_reason", "", 6);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5224
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5225 return tbl;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5226 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5227
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5228 function make_expanded_motif(alphabet, ordinal, motif, less_x, submit_x) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5229 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5230 var box, pspm, logo_box, large_logo, large_logo_rc, tab_logo, tab_logo_rc;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5231 var btn, offset, norc;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5232
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5233 box = clone_template("tmpl_motif_expanded");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5234 box.data_motif = motif;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5235 box.data_ordinal = ordinal;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5236
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5237 pspm = new Pspm(motif["pwm"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5238 if (typeof motif["rc"] !== "boolean") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5239 motif["rc"] = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5240 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5241 if (motif["large_logo"]) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5242 large_logo = motif["large_logo"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5243 large_logo_rc = motif["large_logo_rc"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5244 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5245 large_logo = make_large_logo(alphabet, pspm, false, 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5246 motif["large_logo"] = large_logo;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5247 if (alphabet.has_complement()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5248 large_logo_rc = make_large_logo(alphabet, pspm, true, 0, "logo_rc");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5249 motif["large_logo_rc"] = large_logo_rc;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5250 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5251 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5252 norc = (large_logo_rc == null);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5253 toggle_class(box, "norc", norc);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5254
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5255 logo_box = find_child(box, "tvar_logo");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5256 logo_box.appendChild(large_logo);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5257 if (large_logo_rc) logo_box.appendChild(large_logo_rc);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5258 toggle_class(logo_box, "show_rc_logo", motif["rc"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5259
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5260 tab_logo = find_child(box, "tvar_tab");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5261 tab_logo_rc = find_child(box, "tvar_tab_rc");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5262
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5263 toggle_class(tab_logo, "activeTab", !motif["rc"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5264 toggle_class(tab_logo_rc, "activeTab", motif["rc"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5265
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5266 tab_logo.addEventListener('click', action_rc_tab, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5267 tab_logo.addEventListener('keydown', action_rc_tab, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5268 tab_logo_rc.addEventListener('click', action_rc_tab, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5269 tab_logo_rc.addEventListener('keydown', action_rc_tab, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5270
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5271 set_tvar(box, "tvar_ordinal", ordinal);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5272 set_tvar(box, "tvar_evalue", motif["evalue"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5273 set_tvar(box, "tvar_width", motif["len"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5274 set_tvar(box, "tvar_site_count", motif["nsites"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5275 set_tvar(box, "tvar_llr", motif["llr"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5276 set_tvar(box, "tvar_ic", motif["ic"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5277 set_tvar(box, "tvar_re", motif["re"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5278 set_tvar(box, "tvar_bt", motif["bt"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5279 set_tvar(box, "tvar_sites", make_sites(motif));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5280
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5281 offset = 32; // 1* 5px padding + 2 * 10px padding + 2 * 2px border + 3px ??
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5282
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5283 btn = find_child(box, "tvar_less");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5284 btn.style.left = (less_x - offset) + "px";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5285 btn.addEventListener('click', action_show_less, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5286 btn.addEventListener('keydown', action_show_less, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5287 btn = find_child(box, "tvar_submit");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5288 btn.style.left = (submit_x - offset) + "px";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5289 btn.addEventListener('click', action_show_outpop, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5290 btn.addEventListener('keydown', action_show_outpop, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5291 return box;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5292 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5293
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5294
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5295 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5296 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5297 ///
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5298 function make_motifs() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5299 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5300 function pixel_value(str_in) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5301 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5302 var px_re, match;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5303 px_re = /^(\d+)px$/;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5304 if (match = px_re.exec(str_in)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5305 return parseInt(match[1], 10);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5306 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5307 return 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5308 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5309 var container, tbl;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5310 var colw, r, row, c, cell, cell_style, pad_left, pad_right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5311
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5312 // make the motifs table
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5313 container = $("motifs");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5314 container.innerHTML = ""; // clear content
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5315
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5316 tbl = make_motifs_table(meme_alphabet, 1, data["motifs"], colw, data["stop_reason"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5317 container.appendChild(tbl);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5318
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5319 // measure table column widths
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5320 colw = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5321 row = tbl.tBodies[0].rows[0];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5322 for (c = 0; c < row.cells.length; c++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5323 var padLeft, padRight;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5324 cell = row.cells[c];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5325 cell_style = window.getComputedStyle(cell, null);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5326 pad_left = pixel_value(cell_style.getPropertyValue("padding-left"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5327 pad_right = pixel_value(cell_style.getPropertyValue("padding-right"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5328 colw[c] = cell.clientWidth - pad_left - pad_right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5329 if (typeof colw[c] !== "number" || colw[c] < 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5330 colw[c] = 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5331 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5332 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5333
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5334 // set minimum table column widths on each row so later when we remove rows it still aligns
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5335 for (r = 0; r < tbl.tBodies[0].rows.length; r++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5336 row = tbl.tBodies[0].rows[r];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5337 for (c = 0; c < row.cells.length; c++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5338 row.cells[c].style.minWidth = colw[c] + "px";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5339 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5340 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5341
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5342 // store the table column widths so we can create rows latter with the same minimums
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5343 container.data_colw = colw;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5344
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5345 // calculate the x offset for the buttons
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5346 row = tbl.tBodies[0].rows[0];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5347 container.data_more_x = coords(find_child(find_child(row, "motif_more"), "sym_btn"))[0];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5348 container.data_submit_x = coords(find_child(find_child(row, "motif_submit"), "sym_btn"))[0];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5349
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5350 draw_on_screen();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5351 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5352
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5353 function make_meme_block(container, max_seq_len, is_scan, site) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5354 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5355 var motif = data.motifs[site.motif];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5356 var block = make_block(container, max_seq_len, site.pos, motif.len,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5357 site.pvalue, site.rc, site.motif, is_scan);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5358 var handler = (is_scan ?
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5359 make_scan_popup(site, motif, block) :
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5360 make_block_popup(site, motif, block));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5361 block.addEventListener("mouseover", handler, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5362 block.addEventListener("mouseout", handler, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5363 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5364
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5365 function append_blocks_entries(tbody, seq_index, count) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5366 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5367 var i, end, j;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5368 var max_pvalue, max_block_height, max_seq_len, sequences;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5369 var sequence, sites, scans, scan;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5370 var container, plus, minus, rule, row;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5371 // define some constants
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5372 max_seq_len = data.sequence_db.max_length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5373 // determine how many to load
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5374 end = Math.min(seq_index + count, data.sequence_db.sequences.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5375 for (i = seq_index; i < end; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5376 // get the sequence
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5377 sequence = data.sequence_db.sequences[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5378 // make the containers for the block diagram
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5379 container = make_block_container(meme_alphabet.has_complement(),
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5380 data.options.revcomp, max_seq_len, sequence.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5381 // create blocks for the motif sites
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5382 sites = sequence["sites"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5383 for (j = 0; j < sites.length; j++)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5384 make_meme_block(container, max_seq_len, false, sites[j]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5385 // create blocks for the scanned sites
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5386 scan = data.scan[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5387 for (j = 0; j < scan.sites.length; j++)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5388 make_meme_block(container, max_seq_len, true, scan.sites[j]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5389 // create a row for the sequence
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5390 row = tbody.insertRow(tbody.rows.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5391 toggle_class(row, "empty_seq", sites.length == 0 && scan.sites.length == 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5392 toggle_class(row, "only_scan", sites.length == 0 && scan.sites.length > 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5393 add_text_cell(row, (i + 1) + ".", "blockdiag_num");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5394 add_text_cell(row, sequence["name"], "blockdiag_name");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5395 add_text_cell(row, scan["pvalue"].toExponential(2), "blockdiag_pvalue");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5396 add_cell(row, container, "block_td");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5397 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5398 return end;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5399 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5400
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5401 function make_blocks_entries() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5402 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5403 var region;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5404 region = this;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5405 if (region.data_blocks_index >= data["sequence_db"]["sequences"].length) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5406 // all sites created
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5407 region.removeEventListener('scroll', make_blocks_entries, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5408 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5409 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5410 // if there's still 100 pixels to scroll than don't do anything yet
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5411 if (region.scrollHeight - (region.scrollTop + region.offsetHeight) > 100) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5412 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5413 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5414
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5415 region.data_blocks_index = append_blocks_entries(
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5416 find_child(region, "blocks_tbl").tBodies[0],
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5417 region.data_blocks_index, 20
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5418 );
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5419 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5420
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5421 function make_blocks() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5422 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5423 function add_seqs_filter(container, id, checked, label_text, help_topic) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5424 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5425 var label, radio;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5426 radio = document.createElement("input");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5427 radio.type = "radio";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5428 radio.name = "seqs_display";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5429 radio.id = id;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5430 radio.checked = checked;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5431 radio.addEventListener('click', action_seqs_filter, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5432 label = document.createElement("label");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5433 label.appendChild(document.createTextNode(label_text));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5434 label.htmlFor = id;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5435 container.appendChild(radio);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5436 container.appendChild(label);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5437 if (help_topic) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5438 container.appendChild(document.createTextNode("\xA0"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5439 container.appendChild(help_button(help_topic));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5440 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5441 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5442 function add_blocks_header(row, title, nopad, help_topic) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5443 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5444 var div, divcp, th;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5445 th = document.createElement("th");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5446 div = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5447 div.className = "blocks_th_inner";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5448 if (typeof title !== "object") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5449 title = document.createTextNode("" + title);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5450 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5451 div.appendChild(title);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5452 if (help_topic) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5453 div.appendChild(document.createTextNode("\xA0"));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5454 div.appendChild(help_button(help_topic));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5455 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5456 divcp = div.cloneNode(true);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5457 divcp.className = "blocks_th_hidden";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5458 th.appendChild(div);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5459 th.appendChild(divcp);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5460 if (nopad) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5461 th.className = "nopad";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5462 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5463 row.appendChild(th);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5464 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5465 var container;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5466 var page, view_height, outer_tbl, inner_tbl, tbl, thead, tbody, rhead;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5467 var in_view, i, seq_count;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5468
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5469 page = (document.compatMode === "CSS1Compat") ? document.documentElement : document.body;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5470 view_height = Math.max(page.clientHeight - 300, 300);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5471
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5472 container = $("blocks");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5473 toggle_class(container, "hide_empty_seqs", true);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5474 toggle_class(container, "hide_only_scan", true);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5475 container.innerHTML = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5476 add_seqs_filter(container, "rdo_sites_only", true, "Only Motif Sites", "pop_motif_sites");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5477 add_seqs_filter(container, "rdo_sites_and_scan", false, "Motif Sites+Scanned Sites", "pop_scanned_sites");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5478 add_seqs_filter(container, "rdo_all_seqs", false, "All Sequences", "pop_all_sequences");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5479
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5480 outer_tbl = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5481 outer_tbl.className = "blocks_outer";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5482
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5483 inner_tbl = document.createElement("div");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5484 inner_tbl.id = "blocks_scroll";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5485 inner_tbl.className = "blocks_inner";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5486 inner_tbl.style.maxHeight = view_height + "px";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5487 outer_tbl.appendChild(inner_tbl);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5488
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5489 tbl = document.createElement("table");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5490 tbl.className = "blocks_tbl";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5491 inner_tbl.appendChild(tbl);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5492
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5493 thead = document.createElement("thead");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5494 tbl.appendChild(thead);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5495 tbody = document.createElement("tbody");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5496 tbl.appendChild(tbody);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5497
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5498 rhead = thead.insertRow(thead.rows.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5499 add_blocks_header(rhead, "", true);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5500 add_blocks_header(rhead, "Name", false, "pop_seq_name");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5501 add_blocks_header(rhead, make_pv_text(), false, "pop_seq_pvalue");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5502 add_blocks_header(rhead, "Motif Location", false, "pop_motif_location");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5503
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5504 container.appendChild(outer_tbl);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5505
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5506
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5507 seq_count = data["sequence_db"]["sequences"].length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5508 in_view = Math.max(Math.ceil(view_height / 25), 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5509 i = append_blocks_entries(tbody, 0, in_view);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5510
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5511 while (i < seq_count && inner_tbl.scrollHeight - (inner_tbl.scrollTop + inner_tbl.offsetHeight) < 400) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5512 i = append_blocks_entries(tbody, i, 20);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5513 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5514 inner_tbl.data_blocks_index = i;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5515 if (i < seq_count) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5516 inner_tbl.addEventListener('scroll', make_blocks_entries, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5517 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5518 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5519
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5520 function make_scan_popup(site, motif) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5521 return function (e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5522 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5523 var pop, xy, padding, edge_padding, pop_left, pop_top, page_width;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5524 var lflank, match, rflank, pspm;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5525 if (!e) var e = window.event;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5526 pop = make_scan_popup.pop;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5527 if (e.type === "mouseover") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5528 if (pop) return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5529 pop = clone_template("tmpl_scan_info");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5530 pspm = new Pspm(motif.pwm);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5531 if (site.rc) pspm.reverse_complement(meme_alphabet);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5532 set_tvar(pop, "tvar_logo", make_small_logo(meme_alphabet, pspm, {"className": "scan_logo"}));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5533 set_tvar(pop, "tvar_motif", motif.id);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5534 set_tvar(pop, "tvar_pvalue", site.pvalue.toExponential(2));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5535 set_tvar(pop, "tvar_start", site.pos + 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5536 set_tvar(pop, "tvar_end", site.pos + motif.len);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5537
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5538 document.body.appendChild(pop);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5539 position_popup(this, pop);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5540 make_scan_popup.pop = pop;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5541 } else if (e.type === "mouseout") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5542 if (pop) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5543 pop.parentNode.removeChild(pop);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5544 make_scan_popup.pop = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5545 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5546 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5547 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5548 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5549
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5550 function make_block_popup(site, motif, block) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5551 return function (e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5552 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5553 var pop;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5554 var lflank, match, rflank, pspm, ruler, match_seq, match_width;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5555 if (!e) var e = window.event;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5556 pop = make_block_popup.pop;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5557 if (e.type === "mouseover") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5558 if (pop) return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5559 pop = clone_template("tmpl_block_info");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5560 pspm = new Pspm(motif.pwm);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5561 if (site.rc) { // must be dna
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5562 pspm.reverse_complement(meme_alphabet);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5563 lflank = meme_alphabet.invcomp_seq(site.rflank);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5564 match = meme_alphabet.invcomp_seq(site.match);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5565 rflank = meme_alphabet.invcomp_seq(site.lflank);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5566 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5567 lflank = site.lflank;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5568 match = site.match;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5569 rflank = site.rflank;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5570 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5571 ruler = document.getElementById("measure_match");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5572 match_seq = make_seq(meme_alphabet, match);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5573 ruler.innerHTML = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5574 ruler.appendChild(match_seq);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5575 match_width = ruler.clientWidth;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5576 ruler.removeChild(match_seq);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5577 set_tvar(pop, "tvar_lflank", lflank);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5578 set_tvar(pop, "tvar_match", match_seq);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5579 set_tvar(pop, "tvar_rflank", rflank);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5580 set_tvar(pop, "tvar_logo_pad", lflank);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5581 set_tvar(pop, "tvar_logo", make_small_logo(meme_alphabet, pspm, {"width": match_width}));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5582 set_tvar(pop, "tvar_motif", motif.id);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5583 set_tvar(pop, "tvar_pvalue", site.pvalue.toExponential(2));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5584 set_tvar(pop, "tvar_start", site.pos + 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5585 set_tvar(pop, "tvar_end", site.pos + motif.len);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5586
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5587 document.body.appendChild(pop);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5588 position_popup(block, pop);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5589 make_block_popup.pop = pop;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5590 } else if (e.type === "mouseout") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5591 if (pop) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5592 pop.parentNode.removeChild(pop);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5593 make_block_popup.pop = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5594 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5595 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5596 };
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5597 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5598
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5599 function update_outpop_format(index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5600 switch(parseInt($("text_format").value)) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5601 case 0: // count matrix
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5602 $("outpop_text").value = motif_count_matrix(index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5603 $("text_name").value = "motif_" + (index + 1) + "_counts.txt";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5604 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5605 case 1: // prob matrix
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5606 $("outpop_text").value = motif_prob_matrix(index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5607 $("text_name").value = "motif_" + (index + 1) + "_freqs.txt";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5608 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5609 case 2: // minimal meme
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5610 $("outpop_text").value = motif_minimal_meme(index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5611 $("text_name").value = "motif_" + (index + 1) + ".txt";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5612 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5613 case 3: // fasta
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5614 $("outpop_text").value = motif_fasta(index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5615 $("text_name").value = "motif_" + (index + 1) + "_fasta.txt";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5616 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5617 case 4: // raw
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5618 $("outpop_text").value = motif_raw(index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5619 $("text_name").value = "motif_" + (index + 1) + "_raw.txt";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5620 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5621 default:
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5622 throw new Error("Unknown motif format");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5623 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5624 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5625
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5626 function update_outpop_motif(index) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5627 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5628 var motifs, motif, pspm, logo, canvas, num;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5629 motifs = data["motifs"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5630 if (index < 0 || index >= motifs.length) {return;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5631 current_motif = index;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5632 motif = motifs[index];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5633 pspm = new Pspm(motif["pwm"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5634 logo = new Logo(meme_alphabet, "");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5635 logo.add_pspm(pspm, 0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5636 canvas = $("outpop_logo");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5637 canvas.width = canvas.width; // clear canvas
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5638 draw_logo_on_canvas(logo, canvas, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5639 if (meme_alphabet.has_complement()) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5640 pspm.reverse_complement(meme_alphabet);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5641 logo = new Logo(meme_alphabet, "");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5642 canvas = $("outpop_logo_rc");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5643 canvas.width = canvas.width; // clear canvas
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5644 draw_logo_on_canvas(logo, canvas, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5645 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5646 num = $("outpop_num");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5647 num.innerHTML = "";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5648 num.appendChild(document.createTextNode("" + (index + 1)));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5649 update_outpop_format(index);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5650 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5651
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5652 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5653 // action_show_more
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5654 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5655 // Show more information on the motif.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5656 ///
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5657 function action_show_more(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5658 var node, tr, tbody, table, container, motif, ordinal;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5659 var expanded_motif;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5660 if (!e) e = window.event;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5661 if (e.type === "keydown") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5662 if (e.keyCode !== 13 && e.keyCode !== 32) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5663 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5664 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5665 // stop a submit or something like that
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5666 e.preventDefault();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5667 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5668 // find the row that contains the cell
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5669 node = this;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5670 do {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5671 if (node.tagName === "TR") break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5672 } while (node = node.parentNode);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5673 if (!node) throw new Error("Expected to find row!?");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5674 tr = node;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5675 // get info
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5676 motif = tr.data_motif;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5677 ordinal = tr.data_ordinal;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5678 // find tbody
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5679 do {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5680 if (node.tagName === "TBODY") break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5681 } while (node = node.parentNode);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5682 if (!node) throw new Error("Expected to find tbody!?");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5683 tbody = node;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5684 // find table
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5685 do {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5686 if (node.tagName === "TABLE") break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5687 } while (node = node.parentNode);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5688 if (!node) throw new Error("Expected to find table!?");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5689 table = node;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5690 // find container
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5691 container = node.parentNode;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5692 // make a expanded motif
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5693 motif["expanded"] = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5694 expanded_motif = make_expanded_motif(meme_alphabet, ordinal, motif,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5695 container.data_more_x, container.data_submit_x);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5696 // now determine how to place it
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5697 if (tbody.rows.length === 1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5698 // only us in the table so the table can be replaced
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5699 container.replaceChild(expanded_motif, table);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5700 } else if (tbody.rows[0] === tr) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5701 // first row, so remove and insert an expanded motif before
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5702 table.deleteRow(tr.rowIndex);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5703 container.insertBefore(expanded_motif, table);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5704 } else if (tbody.rows[tbody.rows.length -1] === tr) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5705 // last row, so remove and insert an expanded motif after
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5706 table.deleteRow(tr.rowIndex);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5707 container.insertBefore(expanded_motif, table.nextSibling);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5708 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5709 var table2, tbody2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5710 table2 = table.cloneNode(false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5711 table2.appendChild(table.tHead.cloneNode(true));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5712 tbody2 = table.tBodies[0].cloneNode(false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5713 table2.appendChild(tbody2);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5714 container.insertBefore(table2, table.nextSibling);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5715 for (i = tbody.rows.length - 1; i >= 0; i--) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5716 row = tbody.rows[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5717 row.parentNode.removeChild(row);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5718 if (row === tr) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5719 break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5720 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5721 tbody2.insertBefore(row, tbody2.rows[0]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5722 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5723 container.insertBefore(expanded_motif, table2);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5724 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5725 find_child(expanded_motif, "tvar_less").focus();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5726 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5727
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5728 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5729 // action_show_less
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5730 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5731 // Show less information on the motif.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5732 ///
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5733 function action_show_less(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5734 var btn;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5735 var expanded_motif, container, motif, ordinal, colw, focus_target;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5736 var table, tbody, tbody2, row, table_before, table_after;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5737 if (!e) e = window.event;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5738 if (e.type === "keydown") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5739 if (e.keyCode !== 13 && e.keyCode !== 32) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5740 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5741 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5742 // stop a submit or something like that
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5743 e.preventDefault();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5744 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5745 btn = this;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5746 // find expanded motif
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5747 expanded_motif = find_parent(btn, "expanded_motif");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5748 if (!expanded_motif) throw new Error("Expected expanded motif.");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5749 // find the container
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5750 container = expanded_motif.parentNode;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5751 // get data
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5752 motif = expanded_motif.data_motif;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5753 ordinal = expanded_motif.data_ordinal;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5754 colw = container.data_colw;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5755 // get the table before
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5756 table_before = expanded_motif.previousSibling;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5757 if (table_before && table_before.tagName !== "TABLE") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5758 table_before = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5759 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5760 // get the table after
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5761 table_after = expanded_motif.nextSibling;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5762 if (table_after && table_after.tagName !== "TABLE") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5763 table_after = null;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5764 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5765 // see if there is a table below or above that we can put this in.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5766 // if there is a table both below and above then add this motif and
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5767 // all ones below to the above table
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5768 motif["expanded"] = false;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5769 if (table_before && table_after) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5770 tbody = table_before.tBodies[0];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5771 row = tbody.insertRow(tbody.rows.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5772 make_motif_table_entry(row, meme_alphabet, ordinal, motif, colw);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5773 focus_target = find_child(row.cells[5], "sym_btn");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5774 container.removeChild(expanded_motif);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5775 tbody2 = table_after.tBodies[0];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5776 while (tbody2.rows.length > 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5777 row = tbody2.rows[0];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5778 row.parentNode.removeChild(row);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5779 tbody.appendChild(row);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5780 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5781 container.removeChild(table_after);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5782 } else if (table_before) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5783 tbody = table_before.tBodies[0];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5784 row = tbody.insertRow(tbody.rows.length);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5785 make_motif_table_entry(row, meme_alphabet, ordinal, motif, colw);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5786 focus_target = find_child(row.cells[5], "sym_btn");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5787 container.removeChild(expanded_motif);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5788 } else if (table_after) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5789 tbody = table_after.tBodies[0];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5790 row = tbody.insertRow(0);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5791 make_motif_table_entry(row, meme_alphabet, ordinal, motif, colw);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5792 focus_target = find_child(row.cells[5], "sym_btn");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5793 container.removeChild(expanded_motif);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5794 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5795 //no table above or below!
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5796 // make a new table
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5797 table = make_motifs_table(meme_alphabet, ordinal, [motif], colw, data["stop_reason"]);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5798 focus_target = find_child(table.tBodies[0].rows[0].cells[5], "sym_btn");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5799 container.replaceChild(table, expanded_motif);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5800 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5801 focus_target.focus();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5802 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5803
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5804 function action_show_outpop(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5805 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5806 function init() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5807 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5808 var close_btn, next_btn, prev_btn, cancel_btn, do_btn;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5809 var tab1, tab2, tab3;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5810 var pnl1, pnl2, pnl3;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5811 var format_list;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5812 var tbl_submit, inputs, i, default_prog;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5813 close_btn = $("outpop_close");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5814 close_btn.addEventListener("click", action_hide_outpop, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5815 close_btn.addEventListener("keydown", action_hide_outpop, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5816 next_btn = $("outpop_next");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5817 next_btn.addEventListener("click", action_outpop_next, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5818 next_btn.addEventListener("keydown", action_outpop_next, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5819 prev_btn = $("outpop_prev");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5820 prev_btn.addEventListener("click", action_outpop_prev, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5821 prev_btn.addEventListener("keydown", action_outpop_prev, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5822 cancel_btn = $("outpop_cancel");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5823 cancel_btn.addEventListener("click", action_hide_outpop, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5824 do_btn = $("outpop_do");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5825 do_btn.addEventListener("click", action_outpop_submit, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5826 tab1 = $("outpop_tab_1");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5827 tab1.tabIndex = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5828 tab1.addEventListener("click", action_outpop_tab, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5829 tab1.addEventListener("keydown", action_outpop_tab, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5830 tab2 = $("outpop_tab_2");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5831 tab2.tabIndex = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5832 tab2.addEventListener("click", action_outpop_tab, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5833 tab2.addEventListener("keydown", action_outpop_tab, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5834 tab3 = $("outpop_tab_3");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5835 tab3.tabIndex = 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5836 tab3.addEventListener("click", action_outpop_tab, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5837 tab3.addEventListener("keydown", action_outpop_tab, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5838 pnl1 = $("outpop_pnl_1");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5839 pnl2 = $("outpop_pnl_2");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5840 pnl3 = $("outpop_pnl_3");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5841 toggle_class(tab1, "activeTab", true);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5842 toggle_class(tab2, "activeTab", false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5843 toggle_class(tab3, "activeTab", false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5844 pnl1.style.display = "block";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5845 pnl2.style.display = "none";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5846 pnl3.style.display = "none";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5847 format_list = $("text_format");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5848 format_list.addEventListener("change", action_outpop_format, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5849 // setup program selection
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5850 tbl_submit = $("programs");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5851 // when not dna, hide the inputs for programs that require dna motifs
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5852 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
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5853 // add a click listener for the radio buttons
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5854 inputs = tbl_submit.querySelectorAll("input[type='radio']");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5855 for (i = 0; i < inputs.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5856 inputs[i].addEventListener("click", action_outpop_program, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5857 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5858 // ensure that a default program option is selected for DNA and Protein
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5859 default_prog = document.getElementById(meme_alphabet.has_complement() ? "submit_tomtom" : "submit_fimo"); //TODO FIXME Tomtom might require a more strict definition of DNA
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5860 default_prog.checked = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5861 action_outpop_program.call(default_prog);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5862 // disable reverse-complement when not DNA
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5863 $("logo_rc_option").disabled = !meme_alphabet.has_complement();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5864 // set errorbars on when ssc is on
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5865 $("logo_ssc").addEventListener("change", action_outpop_ssc, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5866 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5867 var node;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5868 // store the focused element
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5869 action_hide_outpop.last_active = document.activeElement;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5870 if (!e) e = window.event;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5871 if (e.type === "keydown") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5872 if (e.keyCode !== 13 && e.keyCode !== 32) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5873 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5874 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5875 // stop a submit or something like that
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5876 e.preventDefault();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5877 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5878 // hide the help popup
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5879 help_popup();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5880 // on first load initilize the popup
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5881 if (!action_show_outpop.ready) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5882 init();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5883 action_show_outpop.ready = true;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5884 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5885 // load the motif logo
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5886 node = this;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5887 do {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5888 if (/\bexpanded_motif\b/.test(node.className) || node.tagName === "TR") break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5889 } while (node = node.parentNode);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5890 if (node === null) throw new Error("Expected node!");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5891 update_outpop_motif(node.data_ordinal - 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5892 // display the download popup
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5893 $("grey_out_page").style.display = "block";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5894 $("download").style.display = "block";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5895 $("outpop_close").focus();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5896 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5897
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5898 function action_hide_outpop(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5899 if (!e) e = window.event;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5900 if (e.type === "keydown") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5901 if (e.keyCode !== 13 && e.keyCode !== 32) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5902 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5903 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5904 // stop a submit or something like that
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5905 e.preventDefault();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5906 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5907 $("download").style.display = "none";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5908 $("grey_out_page").style.display = "none";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5909 if (typeof action_hide_outpop.last_active !== "undefined") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5910 action_hide_outpop.last_active.focus();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5911 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5912 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5913
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5914 function action_outpop_next(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5915 if (!e) e = window.event;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5916 if (e.type === "keydown") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5917 if (e.keyCode !== 13 && e.keyCode !== 32) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5918 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5919 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5920 // stop a submit or something like that
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5921 e.preventDefault();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5922 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5923 update_outpop_motif(current_motif + 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5924 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5925
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5926 function action_outpop_prev(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5927 if (!e) e = window.event;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5928 if (e.type === "keydown") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5929 if (e.keyCode !== 13 && e.keyCode !== 32) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5930 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5931 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5932 // stop a submit or something like that
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5933 e.preventDefault();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5934 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5935 update_outpop_motif(current_motif - 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5936 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5937
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5938 function action_outpop_program() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5939 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5940 var table, tr, rows, i;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5941 tr = find_parent_tag(this, "TR");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5942 table = find_parent_tag(tr, "TABLE");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5943 rows = table.querySelectorAll("tr");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5944 for (i = 0; i < rows.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5945 toggle_class(rows[i], "selected", rows[i] === tr);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5946 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5947 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5948
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5949 function action_outpop_ssc() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5950 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5951 $("logo_err").value = $("logo_ssc").value;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5952 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5953
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5954 function action_outpop_submit(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5955 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5956 var form, input, program, motifs;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5957 // find out which program is selected
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5958 var radios, i;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5959 radios = document.getElementsByName("program");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5960 program = "fimo"; // default to fimo, since it works with all alphabet types
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5961 for (i = 0; i < radios.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5962 if (radios[i].checked) program = radios[i].value;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5963 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5964
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5965 motifs = motif_minimal_meme(current_motif);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5966 form = document.createElement("form");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5967 form.setAttribute("method", "post");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5968 form.setAttribute("action", site_url + "/tools/" + program);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5969
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5970 input = document.createElement("input");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5971 input.setAttribute("type", "hidden");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5972 input.setAttribute("name", "motifs_embed");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5973 input.setAttribute("value", motifs);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5974 form.appendChild(input);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5975
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5976 document.body.appendChild(form);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5977 form.submit();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5978 document.body.removeChild(form);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5979 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5980
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5981 function action_outpop_download_motif(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5982 $("text_form").submit();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5983 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5984
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5985 function action_outpop_download_logo(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5986 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5987 $("logo_motifs").value = motif_minimal_meme(current_motif);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5988 $("logo_form").submit();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5989 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5990
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5991 function action_btn_rc(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5992 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5993 var node, tr, motif, box, logo_box, tab_st, tab_rc, rc;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5994 if (!e) e = window.event;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5995 if (e.type === "keydown") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5996 if (e.keyCode !== 13 && e.keyCode !== 32) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5997 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5998 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
5999 // stop a submit or something like that
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6000 e.preventDefault();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6001 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6002 node = this;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6003 do {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6004 if (node.tagName === "TR") break;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6005 } while (node = node.parentNode);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6006 if (!node) throw new Error("Expected to find row!?");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6007 tr = node;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6008 // get info
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6009 motif = tr.data_motif;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6010 box = find_parent(this, "preview_box");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6011 logo_box = find_child(box, "preview_logo_box");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6012 tab_st = find_child(box, "plus");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6013 tab_rc = find_child(box, "minus");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6014 rc = (this === tab_rc);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6015 motif["rc"] = rc;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6016 toggle_class(logo_box, "show_rc_logo", rc);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6017 toggle_class(tab_st, "active", !rc);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6018 toggle_class(tab_rc, "active", rc);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6019 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6020
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6021 function action_rc_tab(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6022 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6023 var box, logo_box, tab_st, tab_rc, rc;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6024 if (!e) e = window.event;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6025 if (e.type === "keydown") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6026 if (e.keyCode !== 13 && e.keyCode !== 32) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6027 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6028 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6029 // stop a submit or something like that
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6030 e.preventDefault();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6031 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6032 box = find_parent(this, "expanded_motif");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6033 logo_box = find_child(box, "tvar_logo");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6034 tab_st = find_child(box, "tvar_tab");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6035 tab_rc = find_child(box, "tvar_tab_rc");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6036 rc = (this === tab_rc);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6037 box.data_motif["rc"] = rc;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6038 toggle_class(logo_box, "show_rc_logo", rc);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6039 toggle_class(tab_st, "activeTab", !rc);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6040 toggle_class(tab_rc, "activeTab", rc);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6041 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6042
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6043 function action_outpop_tab(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6044 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6045 var tab1, tab2, tab3, pnl1, pnl2, pnl3, do_btn;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6046 if (!e) e = window.event;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6047 if (e.type === "keydown") {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6048 if (e.keyCode !== 13 && e.keyCode !== 32) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6049 return;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6050 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6051 // stop a submit or something like that
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6052 e.preventDefault();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6053 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6054 tab1 = $("outpop_tab_1");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6055 tab2 = $("outpop_tab_2");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6056 tab3 = $("outpop_tab_3");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6057 pnl1 = $("outpop_pnl_1");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6058 pnl2 = $("outpop_pnl_2");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6059 pnl3 = $("outpop_pnl_3");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6060 do_btn = $("outpop_do");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6061
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6062 toggle_class(tab1, "activeTab", (this === tab1));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6063 toggle_class(tab2, "activeTab", (this === tab2));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6064 toggle_class(tab3, "activeTab", (this === tab3));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6065 pnl1.style.display = ((this === tab1) ? "block" : "none");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6066 pnl2.style.display = ((this === tab2) ? "block" : "none");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6067 pnl3.style.display = ((this === tab3) ? "block" : "none");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6068 do_btn.value = ((this === tab1) ? "Submit" : "Download");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6069 do_btn.removeEventListener("click", action_outpop_submit, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6070 do_btn.removeEventListener("click", action_outpop_download_logo, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6071 do_btn.removeEventListener("click", action_outpop_download_motif, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6072 if (this === tab1) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6073 do_btn.addEventListener("click", action_outpop_submit, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6074 } else if (this === tab2) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6075 do_btn.addEventListener("click", action_outpop_download_motif, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6076 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6077 do_btn.addEventListener("click", action_outpop_download_logo, false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6078 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6079 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6080
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6081 function action_seqs_filter() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6082 "use strict";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6083 var block_container;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6084 block_container = $("blocks");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6085 if ($("rdo_all_seqs").checked) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6086 toggle_class(block_container, "hide_empty_seqs", false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6087 toggle_class(block_container, "hide_only_scan", false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6088 } else if ($("rdo_sites_and_scan").checked) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6089 toggle_class(block_container, "hide_empty_seqs", true);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6090 toggle_class(block_container, "hide_only_scan", false);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6091 } else if ($("rdo_sites_only").checked) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6092 toggle_class(block_container, "hide_empty_seqs", true);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6093 toggle_class(block_container, "hide_only_scan", true);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6094 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6095 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6096
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6097 function action_outpop_format() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6098 update_outpop_format(current_motif);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6099 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6100
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6101 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6102 // page_loaded
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6103 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6104 // Called when the page has loaded for the first time.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6105 ///
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6106 function page_loaded() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6107 post_load_setup();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6108 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6109
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6110 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6111 // page_loaded
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6112 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6113 // Called when a cached page is reshown.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6114 ///
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6115 function page_shown(e) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6116 if (e.persisted) post_load_setup();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6117 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6118
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6119 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6120 // page_loaded
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6121 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6122 // Called when the page is resized
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6123 ///
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6124 function page_resized() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6125 var page, blocks_scroll;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6126 update_scroll_pad();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6127 page = (document.compatMode === "CSS1Compat") ? document.documentElement : document.body;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6128 blocks_scroll = $("blocks_scroll");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6129 if (blocks_scroll) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6130 blocks_scroll.style.maxHeight = Math.max(page.clientHeight - 300, 300) + "px";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6131 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6132 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6133
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6134 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6135 // pre_load_setup
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6136 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6137 // Run before the page is displayed
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6138 ///
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6139 function pre_load_setup() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6140 var start, hue, sat, light, divisions;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6141 var i, j, motifs, motif, sites, site, sequences, sequence;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6142 var max_seq_len;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6143 motifs = data["motifs"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6144 sequences = data["sequence_db"]["sequences"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6145 max_seq_len = 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6146 for (i = 0; i < sequences.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6147 sequence = sequences[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6148 sequence["sites"] = [];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6149 if (sequence["length"] > max_seq_len) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6150 max_seq_len = sequence["length"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6151 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6152 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6153 data["sequence_db"]["max_length"] = max_seq_len;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6154 // use hsl colours
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6155 start = 0; //red
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6156 sat = 100;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6157 light = 50;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6158 for (i = 0; i < motifs.length; i++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6159 motif = motifs[i];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6160 // give the motif a colour
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6161 divisions = 1 << Math.ceil(Math.log(i + 1) / Math.LN2);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6162 hue = start + (360 / divisions) * ((i - (divisions >> 1)) * 2 + 1);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6163 motif["colour"] = "hsl(" + hue + ", " + sat + "%, " + light + "%)";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6164 // associate sites with sequences as well
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6165 // to make generating the block diagram easier
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6166 sites = motif["sites"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6167 for (j = 0; j < sites.length; j++) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6168 site = sites[j];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6169 sequence = sequences[site["seq"]];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6170 // record the motif index
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6171 site["motif"] = i;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6172 // add the site to the sequence
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6173 sequence["sites"].push(site);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6174 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6175 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6176 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6177
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6178 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6179 // post_load_setup
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6180 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6181 // Run when the page has loaded, or been reloaded.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6182 //
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6183 function post_load_setup() {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6184 update_scroll_pad();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6185 if (data["motifs"].length > 0) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6186 make_motifs();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6187 make_blocks();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6188 } else {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6189 $("motifs").innerHTML = "<p>No significant motifs found!</p>"; // clear content
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6190 $("motifs").innerHTML += "<p><b>" + data["stop_reason"] + "</b></p>";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6191 $("blocks").innerHTML = "<p>No significant motifs found!</p>";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6192 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6193 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6194
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6195 pre_load_setup();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6196 </script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6197 <style>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6198 /* The following is the content of meme.css */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6199 body { background-color:white; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6200
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6201 div.help {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6202 display: inline-block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6203 margin: 0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6204 padding: 0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6205 width: 12px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6206 height: 13px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6207 cursor: pointer;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6208 background-image: url(data:image/gif;base64,R0lGODlhDAANAIABANR0AP///yH5BAEAAAEALAAAAAAMAA0AAAIdhI8Xy22MIFgv1DttrrJ7mlGNNo4c+aFg6SQuUAAAOw==);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6209 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6210
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6211 div.help:hover {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6212 background-image: url(data:image/gif;base64,R0lGODlhDAANAKEAANR0AP///9R0ANR0ACH+EUNyZWF0ZWQgd2l0aCBHSU1QACH5BAEAAAIALAAAAAAMAA0AAAIdDGynCe3PgoxONntvwqz2/z2K2ImjR0KhmSIZUgAAOw==);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6213 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6214
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6215 p.spaced { line-height: 1.8em;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6216
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6217 span.citation { font-family: "Book Antiqua", "Palatino Linotype", serif; color: #004a4d;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6218
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6219 p.pad { padding-left: 30px; padding-top: 5px; padding-bottom: 10px;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6220
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6221 td.jump { font-size: 13px; color: #ffffff; background-color: #00666a;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6222 font-family: Georgia, "Times New Roman", Times, serif;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6223
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6224 a.jump { margin: 15px 0 0; font-style: normal; font-variant: small-caps;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6225 font-weight: bolder; font-family: Georgia, "Times New Roman", Times, serif;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6226
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6227 h2.mainh {font-size: 1.5em; font-style: normal; margin: 15px 0 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6228 font-variant: small-caps; font-family: Georgia, "Times New Roman", Times, serif;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6229
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6230 h2.line {border-bottom: 1px solid #CCCCCC; font-size: 1.5em; font-style: normal;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6231 margin: 15px 0 0; padding-bottom: 3px; font-variant: small-caps;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6232 font-family: Georgia, "Times New Roman", Times, serif;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6233
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6234 h4 {border-bottom: 1px solid #CCCCCC; font-size: 1.2em; font-style: normal;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6235 margin: 10px 0 0; padding-bottom: 3px; font-family: Georgia, "Times New Roman", Times, serif;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6236
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6237 h5 {margin: 0px}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6238
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6239 a.help { font-size: 9px; font-style: normal; text-transform: uppercase;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6240 font-family: Georgia, "Times New Roman", Times, serif;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6241
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6242 div.pad { padding-left: 30px; padding-top: 5px; padding-bottom: 10px;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6243
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6244 div.pad1 { margin: 10px 5px;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6245
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6246 div.pad2 { margin: 25px 5px 5px;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6247 h2.pad2 { padding: 25px 5px 5px;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6248
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6249 div.pad3 { padding: 5px 0px 10px 30px;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6250
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6251 div.box { border: 2px solid #CCCCCC; padding:10px; overflow: hidden;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6252
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6253 div.bar { border-left: 7px solid #00666a; padding:5px; margin-top:25px; }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6254
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6255 div.subsection {margin:25px 0px;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6256
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6257 img {border:0px none;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6258
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6259 th.majorth {text-align:left;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6260 th.minorth {font-weight:normal; text-align:left; width:8em; padding: 3px 0px;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6261 th.actionth {font-weight:normal; text-align:left;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6262
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6263 .explain h5 {font-size:1em; margin-left: 1em;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6264
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6265 div.doc {margin-left: 2em; margin-bottom: 3em;}
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6266
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6267 th.trainingset {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6268 border-bottom: thin dashed black;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6269 font-weight:normal;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6270 padding:0px 10px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6271 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6272 div.pop_content {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6273 position:absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6274 z-index:50;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6275 width:300px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6276 padding: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6277 background: #E4ECEC;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6278 font-size: 12px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6279 font-family: Arial;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6280 border-style: double;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6281 border-width: 3px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6282 border-color: #AA2244;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6283 display:none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6284 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6285
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6286 div.pop_content > *:first-child {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6287 margin-top: 0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6288 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6289
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6290 div.pop_content h1, div.pop_content h2, div.pop_content h3, div.pop_content h4,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6291 div.pop_content h5, div.pop_content h6, div.pop_content p {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6292 margin: 0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6293 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6294
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6295 div.pop_content p + h1, div.pop_content p + h2, div.pop_content p + h3,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6296 div.pop_content p + h4, div.pop_content p + h5, div.pop_content p + h6 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6297 margin-top: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6298 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6299
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6300 div.pop_content p + p {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6301 margin-top: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6302 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6303
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6304 div.pop_content > *:last-child {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6305 margin-bottom: 0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6306 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6307
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6308 div.pop_content div.pop_close {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6309 /* old definition */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6310 float:right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6311 bottom: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6312 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6313
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6314 div.pop_content span.pop_close, div.pop_content span.pop_back {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6315 display: inline-block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6316 border: 2px outset #661429;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6317 background-color: #CCC;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6318 padding-left: 1px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6319 padding-right: 1px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6320 padding-top: 0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6321 padding-bottom: 0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6322 cursor: pointer;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6323 color: #AA2244; /*#661429;*/
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6324 font-weight: bold;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6325 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6326
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6327 div.pop_content span.pop_close:active, div.pop_content span.pop_back:active {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6328 border-style: inset;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6329 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6330
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6331 div.pop_content span.pop_close {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6332 float:right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6333 /*border: 2px outset #AA002B;*/
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6334 /*color: #AA2244;*/
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6335 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6336
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6337 div.pop_content:not(.nested) .nested_only {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6338 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6339 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6340
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6341 div.pop_back_sec {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6342 margin-bottom: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6343 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6344
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6345 div.pop_close_sec {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6346 margin-top: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6347 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6348
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6349 table.hide_advanced tr.advanced {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6350 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6351 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6352 span.show_more {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6353 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6354 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6355 table.hide_advanced span.show_more {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6356 display: inline;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6357 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6358 table.hide_advanced span.show_less {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6359 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6360 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6361
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6362
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6363 /*****************************************************************************
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6364 * Program logo styling
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6365 ****************************************************************************/
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6366 div.prog_logo {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6367 border-bottom: 0.25em solid #0f5f60;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6368 height: 4.5em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6369 width: 24em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6370 display:inline-block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6371 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6372 div.prog_logo img {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6373 float:left;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6374 width: 4em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6375 border-style: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6376 margin-right: 0.2em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6377 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6378 div.prog_logo h1, div.prog_logo h1:hover, div.prog_logo h1:active, div.prog_logo h1:visited {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6379 margin:0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6380 padding:0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6381 font-family: Arial, Helvetica, sans-serif;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6382 font-size: 3.2em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6383 line-height: 1em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6384 vertical-align: top;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6385 display: block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6386 color: #026666;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6387 letter-spacing: -0.06em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6388 text-shadow: 0.04em 0.06em 0.05em #666;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6389 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6390 div.prog_logo h2, div.prog_logo h2:hover, div.prog_logo h2:active, div.prog_logo h2:visited {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6391 display: block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6392 margin:0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6393 padding:0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6394 font-family: Helvetica, sans-serif;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6395 font-size: 0.9em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6396 line-height: 1em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6397 letter-spacing: -0.06em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6398 color: black;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6399 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6400
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6401 div.big.prog_logo {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6402 font-size: 18px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6403 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6404
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6405 </style>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6406 <style>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6407 .block_td {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6408 height:25px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6409 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6410 .block_container {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6411 position:relative;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6412 box-sizing: border-box;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6413 height: 25px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6414 padding: 0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6415 margin: 0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6416 margin-left: 1em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6417 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6418 .block_label {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6419 position: absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6420 display: inline-block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6421 padding: 3px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6422 z-index: 4;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6423 top: 6px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6424 height: 12px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6425 line-height: 12px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6426 font-size: 12px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6427 background-color: white;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6428 border: 1px solid black;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6429 -moz-border-radius: 12px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6430 -webkit-border-radius: 12px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6431 border-radius: 12px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6432 transform: translateX(-50%);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6433 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6434 .block_motif {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6435 position: absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6436 z-index: 3;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6437 top: 0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6438 box-sizing: border-box;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6439 border: 1px solid black;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6440 height: 12px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6441 background-color: cyan;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6442 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6443 .block_motif.top {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6444 border-bottom-width: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6445 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6446 .block_motif.bottom {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6447 border-top-width: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6448 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6449 .block_motif.scanned_site {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6450 opacity: 0.3;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6451 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6452 .block_motif.scanned_site.active {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6453 opacity: 0.9;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6454 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6455 .block_region {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6456 position:absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6457 z-index:6;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6458 height:25px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6459 top:0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6460 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6461 .block_region.main {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6462 z-index:8;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6463 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6464 .block_region.scanned_site {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6465 z-index:5;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6466 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6467 .block_region.scanned_site.main {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6468 z-index:7;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6469 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6470 .block_region.top {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6471 height:13px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6472 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6473 .block_region.bottom {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6474 height:13px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6475 top:12px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6476 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6477 .block_rule {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6478 position:absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6479 z-index:2;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6480 width:100%;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6481 height:1px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6482 top:12px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6483 left:0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6484 background-color:gray;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6485 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6486 .block_plus_sym {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6487 position:absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6488 z-index:4;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6489 line-height:12px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6490 top:0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6491 left:-1em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6492 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6493 .block_minus_sym {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6494 position:absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6495 z-index:4;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6496 line-height:12px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6497 top:13px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6498 left:-1em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6499 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6500
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6501 .tic_major {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6502 position:absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6503 top:0em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6504 height:0.5em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6505 width: 2px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6506 margin-left: -1px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6507 background-color: blue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6508 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6509 .tic_minor {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6510 position:absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6511 top:0em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6512 height:0.2em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6513 width: 1px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6514 margin-left: -0.5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6515 background-color: blue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6516 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6517 .tic_label {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6518 position:absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6519 display: inline-block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6520 top:0.5em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6521 height: 1em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6522 color: blue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6523 transform: translateX(-50%);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6524 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6525
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6526 .block_needle {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6527 position:absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6528 z-index:4;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6529 height:30px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6530 width:1px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6531 top:-2px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6532 background-color:gray;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6533 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6534 .block_needle.right {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6535 height: 60px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6536 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6537 .block_handle {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6538 position: absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6539 display: inline-block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6540 z-index: 5;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6541 top: 27px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6542 min-width: 3ex;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6543 text-align: center;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6544 font-size: 12px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6545 line-height: 12px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6546 transform: translateX(-50%);
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6547 background-color: LightGrey;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6548 border:3px outset grey;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6549 cursor: pointer;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6550 -webkit-user-select: none; /* Chrome/Safari */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6551 -moz-user-select: none; /* Firefox */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6552 -ms-user-select: none; /* IE10+ */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6553 /* Rules below not implemented in browsers yet */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6554 -o-user-select: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6555 user-select: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6556 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6557 .block_handle.right {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6558 top: 47px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6559 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6560
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6561 .legend_container {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6562 text-align: right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6563 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6564 .legend_entry {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6565 display: inline-block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6566 padding: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6567 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6568 div.legend_swatch {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6569 box-sizing: border-box;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6570 width: 15px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6571 height: 15px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6572 border: 1px solid black;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6573 background-color: cyan;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6574 float: left;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6575 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6576 div.legend_swatch input {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6577 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6578 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6579 .legend_text {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6580 line-height: 15px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6581 margin-left: 20px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6582 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6583 </style>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6584 <style>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6585 /* meme output specific css */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6586
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6587 div.pop_block {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6588 position:absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6589 z-index:5;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6590 padding: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6591 border: 1px solid black;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6592 display: inline-block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6593 background-color: white;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6594 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6595
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6596 #measure_match {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6597 position: absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6598 visibility: hidden;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6599 height: auto;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6600 width: auto;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6601 white-space: nowrap;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6602 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6603
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6604 div.template {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6605 position: absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6606 z-index: 1;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6607 left: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6608 top: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6609 visibility: hidden;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6610 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6611
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6612 table.block_information {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6613 margin-left: auto;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6614 margin-right: auto;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6615 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6616
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6617 table.block_information * th {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6618 text-align: right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6619 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6620
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6621 *.hide_empty_seqs * tr.empty_seq {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6622 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6623 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6624
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6625 *.hide_only_scan * tr.only_scan {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6626 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6627 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6628
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6629 *.hide_only_scan * div.scanned_site {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6630 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6631 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6632
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6633 td.symaction {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6634 text-align: center;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6635 text-decoration: underline;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6636 font-size: 20px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6637 cursor: pointer;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6638 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6639 div.sym_btn {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6640 display:inline-block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6641 text-decoration: underline;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6642 cursor: pointer;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6643 font-size: 20px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6644 line-height:20px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6645 text-align: center;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6646 width: 20px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6647 height: 20px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6648 color: blue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6649 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6650 div.sym_btn:hover {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6651 color: white;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6652 background-color: blue;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6653 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6654
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6655 div.sym_btn.positioned {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6656 position: absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6657 top: 0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6658 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6659
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6660 div.actionbutton {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6661 display:inline-block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6662 cursor: pointer;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6663 font-size: 18px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6664 line-height:20px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6665 padding: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6666 margin: 10px 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6667 border: 1px solid black;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6668 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6669
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6670 div.actionbutton:hover {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6671 color:#FFF;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6672 background-color:#000;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6673 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6674
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6675 div.param_box {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6676 display: inline-block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6677 margin-right: 20px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6678 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6679
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6680 span.param {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6681 font-weight: bold;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6682 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6683
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6684 div.box + div.box {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6685 margin-top: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6686 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6687
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6688 div.sites_outer {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6689 position: relative;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6690 padding-top: 20px; /* height of header */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6691 display: inline-block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6692 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6693
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6694 div.sites_inner {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6695 overflow-x: hidden;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6696 overflow-y: auto;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6697 max-height: 200px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6698 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6699 table.sites_tbl {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6700 border-collapse: collapse;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6701 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6702
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6703 div.sites_th_inner {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6704 position: absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6705 top: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6706 line-height: 20px; /* height of header */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6707 text-align: left;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6708 padding-left: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6709 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6710 th.nopad div.sites_th_inner {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6711 padding-left: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6712 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6713 div.sites_th_hidden {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6714 visibility: hidden;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6715 height: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6716 padding: 0 10px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6717 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6718 th.nopad div.sites_th_hidden {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6719 padding: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6720 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6721 div.sites_inner * th {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6722 height: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6723 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6724
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6725 table.sites_tbl {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6726 overflow-x: hidden;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6727 overflow-y: auto;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6728 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6729
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6730 .site_num {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6731 text-align: right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6732 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6733 .site_name {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6734 padding:0px 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6735 text-align:left;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6736 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6737 .site_strand {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6738 padding:0px 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6739 text-align:center;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6740 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6741 .norc .site_strand, .norc .site_strand_title {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6742 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6743 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6744 .site_start {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6745 padding:0px 15px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6746 text-align: right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6747 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6748 .site_pvalue {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6749 text-align:center;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6750 padding:0px 15px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6751 text-align:right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6752 white-space: nowrap;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6753 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6754 .lflank, .rflank, .match, .alpha_symbol {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6755 font-weight:bold;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6756 font-size:15px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6757 font-family: 'Courier New', Courier, monospace;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6758 color:gray;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6759 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6760
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6761 .site.lflank {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6762 text-align:right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6763 padding-right:5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6764 color:gray;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6765 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6766 .site.match {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6767 text-align:center;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6768 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6769 .site.rflank {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6770 text-align:left;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6771 padding-left:5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6772 padding-right: 20px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6773 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6774
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6775 th.stop_reason {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6776 text-align: left;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6777 padding-right: 10px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6778 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6779
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6780 th.motif_ordinal {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6781
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6782 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6783 td.motif_ordinal {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6784 text-align: right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6785 padding-right: 10px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6786 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6787 th.motif_logo {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6788 padding-right: 10px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6789 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6790 td.motif_logo {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6791 padding-right: 10px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6792 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6793 th.motif_evalue {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6794 text-align:right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6795 padding-right: 10px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6796 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6797 td.motif_evalue {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6798 text-align: right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6799 white-space: nowrap;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6800 padding-right: 20px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6801 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6802 th.motif_nsites {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6803 text-align: right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6804 padding-right: 10px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6805 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6806 td.motif_nsites {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6807 text-align: right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6808 padding-right: 20px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6809 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6810 th.motif_width {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6811 text-align: right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6812 padding-right: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6813 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6814 td.motif_width {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6815 text-align: right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6816 padding-right: 15px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6817 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6818 th.motif_more {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6819 padding: 0 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6820 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6821 td.motif_more {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6822 text-align: center;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6823 padding: 0 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6824 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6825 th.motif_submit {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6826 padding: 0 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6827 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6828 td.motif_submit {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6829 text-align: center;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6830 padding: 0 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6831 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6832 th.motif_download {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6833 padding-left: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6834 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6835 td.motif_download {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6836 text-align: center;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6837 padding-left: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6838 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6839
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6840
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6841 div.tabArea {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6842 font-size: 80%;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6843 font-weight: bold;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6844 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6845
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6846 .norc div.tabArea {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6847 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6848 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6849
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6850 span.tab, span.tab:visited {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6851 cursor: pointer;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6852 color: #888;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6853 background-color: #ddd;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6854 border: 2px solid #ccc;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6855 padding: 2px 1em;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6856 text-decoration: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6857 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6858 span.tab.middle {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6859 border-left-width: 0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6860 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6861 div.tabArea.base span.tab {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6862 border-top-width: 0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6863 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6864 div.tabArea.top span.tab {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6865 border-bottom-width: 0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6866 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6867
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6868 span.tab:hover {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6869 background-color: #bbb;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6870 border-color: #bbb;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6871 color: #666;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6872 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6873 span.tab.activeTab, span.tab.activeTab:hover, span.tab.activeTab:visited {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6874 background-color: white;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6875 color: black;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6876 cursor: default;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6877 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6878 div.tabMain {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6879 border: 2px solid #ccc;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6880 background-color: white;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6881 padding: 10px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6882 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6883 div.tabMain.base {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6884 margin-top: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6885 display: inline-block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6886 max-width: 98%;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6887 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6888
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6889 div.tabMain.top {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6890 margin-bottom: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6891 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6892
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6893 div.tabCenter {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6894 max-width: 100%;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6895 overflow-x: auto;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6896 height: 200px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6897 overflow-y: hidden;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6898 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6899
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6900 canvas.logo_rc {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6901 display:none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6902 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6903 .show_rc_logo > canvas {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6904 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6905 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6906 .show_rc_logo > canvas.logo_rc {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6907 display: block;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6908 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6909
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6910 canvas.scan_logo {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6911 margin-left: 10px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6912 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6913
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6914 div.blocks_outer {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6915 position: relative;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6916 padding-top: 20px; /* height of header */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6917 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6918
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6919 div.blocks_inner {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6920 overflow-x: hidden;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6921 overflow-y: auto;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6922 max-height: 200px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6923 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6924 table.blocks_tbl {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6925 border-collapse: collapse;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6926 width: 100%;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6927 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6928
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6929 div.blocks_th_inner {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6930 position: absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6931 top: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6932 line-height: 20px; /* height of header */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6933 text-align: left;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6934 padding-left: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6935 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6936 th.nopad div.blocks_th_inner {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6937 padding-left: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6938 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6939 div.blocks_th_hidden {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6940 visibility: hidden;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6941 height: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6942 padding: 0 10px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6943 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6944 th.nopad div.blocks_th_hidden {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6945 padding: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6946 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6947 div.blocks_inner * th {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6948 height: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6949 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6950
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6951 table.blocks_tbl {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6952 overflow-x: hidden;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6953 overflow-y: auto;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6954 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6955 td.block_td {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6956 width: 99%;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6957 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6958
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6959 *.blockdiag_num {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6960 text-align: right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6961 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6962
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6963 td.blockdiag_name {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6964 text-align: left;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6965 padding:0px 10px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6966 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6967
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6968 td.blockdiag_pvalue {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6969 padding:0px 10px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6970 text-align:right;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6971 white-space: nowrap;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6972 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6973
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6974 div.preview_btn {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6975 border: 2px solid white;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6976 height: 16px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6977 width: 16px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6978 font-size: 12px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6979 line-height: 16px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6980 text-align: center;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6981 cursor: pointer;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6982 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6983 div.preview_btn + div.preview_btn {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6984 margin-top: 3px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6985 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6986
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6987 div.preview_btn.active {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6988 border: 2px solid black;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6989 cursor: default;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6990 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6991
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6992 div.preview_btn:hover {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6993 background-color: black;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6994 color: white;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6995 border-color: black;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6996 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6997
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6998 div.preview_btn.active:hover {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
6999 background-color: white;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7000 color: black;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7001 border-color: black;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7002 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7003
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7004
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7005 div.preview_btn_box {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7006 position: absolute;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7007 left: 0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7008 top: 0px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7009 padding: 3px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7010 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7011
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7012 div.preview_logo_box {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7013 height: 50px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7014 overflow-y: hidden;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7015 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7016
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7017 div.preview_btn_box + div.preview_logo_box {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7018 margin-left: 25px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7019 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7020
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7021 div.preview_box {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7022 position: relative;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7023 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7024
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7025 div.grey_background {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7026 position:fixed;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7027 z-index: 8;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7028 background-color: #000;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7029 -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7030 opacity: 0.5;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7031 left: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7032 top: 0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7033 width: 100%;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7034 height: 100%;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7035 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7036
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7037 div.popup_wrapper {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7038 position:fixed;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7039 z-index:9;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7040 width:100%;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7041 height:0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7042 top:50%;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7043 left:0;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7044 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7045
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7046 div.popup {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7047 width: 600px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7048 z-index:9;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7049 margin-left: auto;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7050 margin-right: auto;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7051 padding: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7052 background-color: #FFF;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7053 border-style: double;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7054 border-width: 5px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7055 border-color: #00666a;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7056 position:relative;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7057 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7058 div.close {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7059 cursor: pointer;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7060 border: 1px solid black;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7061 width:15px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7062 height:15px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7063 line-height:15px; /* this causes vertical centering */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7064 text-align:center;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7065 background-color:#FFF;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7066 color:#000;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7067 font-size:15px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7068 font-family:monospace;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7069 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7070
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7071 div.close:hover {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7072 color:#FFF;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7073 background-color:#000;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7074 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7075
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7076 div.navnum {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7077 width:100%;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7078 height:20px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7079 line-height:20px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7080 text-align:center;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7081 font-size:medium;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7082 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7083
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7084 div.navarrow {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7085 font-size: 30px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7086 text-decoration:none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7087 cursor: pointer;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7088 -moz-user-select: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7089 -webkit-user-select: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7090 -ms-user-select: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7091 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7092
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7093 div.navarrow > span.inactive {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7094 display: inline;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7095 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7096 div.navarrow > span.active {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7097 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7098 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7099
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7100 div.navarrow:hover > span.active {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7101 display: inline;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7102 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7103 div.navarrow:hover > span.inactive {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7104 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7105 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7106
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7107 table.programs {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7108 width: 100%;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7109 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7110
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7111 table.programs tr {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7112 background-color: #EFE;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7113 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7114
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7115 table.programs tr.selected {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7116 background-color: #262;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7117 color: #FFF;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7118 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7119
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7120 table.programs tr.dna_only {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7121 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7122 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7123
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7124 table.programs.alphabet_dna tr.dna_only {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7125 display: table-row;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7126 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7127
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7128 div.programs_scroll {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7129 width: 100%;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7130 height: 90px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7131 overflow-y: auto;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7132 overflow-x: hidden;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7133 margin: 0 auto;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7134 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7135 table.inputs, table.alpha_bg_table {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7136 margin-top: 20px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7137 border-collapse:collapse;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7138 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7139 table.inputs * td, table.inputs * th, table.alpha_bg_table * td, table.alpha_bg_table * th {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7140 padding-left: 15px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7141 padding-right: 15px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7142 padding-top: 1px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7143 padding-bottom: 1px;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7144 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7145
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7146 table.hide_psp td.col_psp, table.hide_psp th.col_psp {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7147 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7148 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7149
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7150 /* program settings */
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7151 span.mod_oops, span.mod_zoops, span.mod_anr {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7152 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7153 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7154 td.oops span.mod_oops,td.zoops span.mod_zoops, td.anr span.mod_anr {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7155 display: inline;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7156 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7157 span.strand_none, span.strand_given, span.strand_both {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7158 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7159 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7160 td.none span.strand_none, td.given span.strand_given, td.both span.strand_both {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7161 display: inline;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7162 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7163 span.spmap_uni, span.spmap_pam {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7164 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7165 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7166 td.uni span.spmap_uni, td.pam span.spmap_pam {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7167 display: inline;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7168 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7169 span.prior_dirichlet, span.prior_dmix, span.prior_mega, span.prior_megap, span.prior_addone {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7170 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7171 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7172 td.dirichlet span.prior_dirichlet, td.dmix span.prior_dmix, td.mega span.prior_mega,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7173 td.megap span.prior_megap, td.addone span.prior_addone {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7174 display: inline;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7175 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7176 span.noendgaps_on, span.noendgaps_off {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7177 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7178 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7179 td.on span.noendgaps_on, td.off span.noendgaps_off {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7180 display: inline;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7181 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7182 span.substring_on, span.substring_off {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7183 display: none;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7184 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7185 td.on span.substring_on, td.off span.substring_off {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7186 display: inline;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7187 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7188 </style>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7189 </head>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7190 <body onload="page_loaded()" onpageshow="page_shown(event)" onresize="page_resized()">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7191 <!-- -->
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7192 <div id="grey_out_page" class="grey_background" style="display:none;">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7193 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7194 <!-- Help popups -->
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7195 <div class="pop_content" id="pop_">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7196 <p>Help poup.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7197 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7198 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7199 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7200 <div class="pop_content" id="pop_ev">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7201 <p>The statistical significance of the motif. MEME usually finds the most
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7202 statistically significant (low E-value) motifs first. It is unusual to
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7203 consider a motif with an E-value larger than 0.05 significant so, as an
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7204 additional indicator, MEME displays these partially transparent.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7205 <p>The E-value of a motif is based on its log likelihood ratio, width,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7206 sites, the background letter frequencies (given in the command line
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7207 summary), and the size of the training set.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7208 <p>The E-value is an estimate of the expected number of motifs with the
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7209 given log likelihood ratio (or higher), and with the same width and site
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7210 count, that one would find in a similarly sized set of random
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7211 sequences (sequences where each position is independent and letters are
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7212 chosen according to the background letter frequencies).</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7213 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7214 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7215 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7216 <div class="pop_content" id="pop_sites">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7217 <p>The number of sites contributing to the construction of the motif.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7218 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7219 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7220 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7221 <div class="pop_content" id="pop_width">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7222 <p>The width of the motif. Each motif describes a pattern of a fixed
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7223 width, as no gaps are allowed in MEME motifs.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7224 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7225 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7226 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7227 <div class="pop_content" id="pop_more">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7228 <p>Click on the blue symbol below to reveal more information about this motif.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7229 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7230 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7231 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7232 <div class="pop_content" id="pop_submit_dl">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7233 <p>Click on the blue symbol below to reveal options allowing you
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7234 to submit this motif to another MEME Suite motif analysis program, to download this
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7235 motif in various text formats, or to download a sequence "logo" of
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7236 this motif PNG or EPS format.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7237 <h5>Supported Programs</h5>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7238 <dl>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7239 <dt>Tomtom</dt>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7240 <dd>Tomtom is a tool for searching for similar known motifs.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7241 [<a href="http://meme-suite.org/doc/tomtom.html?man_type=web">manual</a>]</dd>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7242 <dt>MAST</dt>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7243 <dd>MAST is a tool for searching biological sequence databases for
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7244 sequences that contain one or more of a group of known motifs.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7245 [<a href="http://meme-suite.org/doc/mast.html?man_type=web">manual</a>]</dd>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7246 <dt>FIMO</dt>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7247 <dd>FIMO is a tool for searching biological sequence databases for
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7248 sequences that contain one or more known motifs.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7249 [<a href="http://meme-suite.org/doc/fimo.html?man_type=web">manual</a>]</dd>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7250 <dt>GOMO</dt>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7251 <dd>GOMO is a tool for identifying possible roles (Gene Ontology
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7252 terms) for DNA binding motifs.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7253 [<a href="http://meme-suite.org/doc/gomo.html?man_type=web">manual</a>]</dd>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7254 <dt>SpaMo</dt>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7255 <dd>SpaMo is a tool for inferring possible transcription factor
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7256 complexes by finding motifs with enriched spacings.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7257 [<a href="http://meme-suite.org/doc/spamo.html?man_type=web">manual</a>]</dd>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7258 </dl>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7259 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7260 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7261 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7262 <div class="pop_content" id="pop_llr">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7263 <p>The log likelihood ratio of the motif.The log likelihood ratio is the
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7264 logarithm of the ratio of the probability of the occurrences of the motif
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7265 given the motif model (likelihood given the motif) versus their
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7266 probability given the background model (likelihood given the null model).
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7267 (Normally the background model is a 0-order Markov model using the
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7268 background letter frequencies, but higher order Markov models may be
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7269 specified via the -bfile option to MEME.).</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7270 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7271 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7272 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7273 <div class="pop_content" id="pop_ic">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7274 <p>The information content of the motif in bits. It is equal to the sum
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7275 of the uncorrected information content, R(), in the columns of the pwm.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7276 This is equal relative entropy of the motif relative to a uniform
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7277 background frequency model.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7278 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7279 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7280 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7281 <div class="pop_content" id="pop_re">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7282 <p>The relative entropy of the motif.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7283
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7284 <p style="font-family: monospace;">re = llr / (sites * ln(2))</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7285 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7286 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7287 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7288 <div class="pop_content" id="pop_bt">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7289 <p>The Bayes Threshold.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7290 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7291 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7292 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7293 <div class="pop_content" id="pop_site_strand">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7294 <p>The strand used for the motif site.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7295 <dl>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7296 <dt>+</dt>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7297 <dd>The motif site was found in the sequence as it was supplied.</dd>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7298 <dt>-</dt>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7299 <dd>The motif site was found in the reverse complement of the supplied sequence.</dd>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7300 </dl>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7301 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7302 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7303 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7304 <div class="pop_content" id="pop_site_start">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7305 <p>The position in the sequence where the motif site starts. If a motif
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7306 started right at the begining of a sequence it would be described as
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7307 starting at position 1.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7308 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7309 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7310 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7311 <div class="pop_content" id="pop_site_pvalue">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7312 <p>The probability that an equal or better site would be found in a
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7313 random sequence of the same length conforming to the background letter
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7314 frequencies.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7315 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7316 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7317 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7318 <div class="pop_content" id="pop_site_match">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7319 <p>A motif site with the 10 flanking letters on either side.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7320 <p>When the site is not on the given strand then the site
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7321 and both flanks are reverse complemented so they align.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7322 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7323 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7324 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7325
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7326 <div class="pop_content" id="pop_seq_name">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7327 <p>The name of the sequences as given in the FASTA file.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7328 <p>The number to the left of the sequence name is the ordinal
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7329 of the sequence.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7330 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7331 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7332 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7333
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7334 <div class="pop_content" id="pop_motif_sites">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7335 <p>These are the motif sites predicted by MEME and used to build the motif.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7336 <p>These sites are shown in solid color and hovering the cursor
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7337 over a site will reveal details about the site. Only sequences
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7338 that contain a motif site are shown.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7339 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7340 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7341 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7342
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7343 <div class="pop_content" id="pop_scanned_sites">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7344 <p>These are the motif sites predicted by MEME plus
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7345 any additional sites detected using a motif scanning
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7346 algorithm.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7347 <p>These MEME sites are shown in solid color and
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7348 additional scanned sites are shown in transparent color.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7349 Hovering the cursor over a site will reveal details about the site.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7350 Only sequences containing a predicted or scanned motif site are shown.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7351 <p>The scanned sites are predicted using a
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7352 log-odds scoring matrix constructed from the MEME sites.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7353 Only scanned sites with position <i>p</i>-values less
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7354 than 0.0001 are shown.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7355 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7356 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7357 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7358
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7359 <div class="pop_content" id="pop_all_sequences">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7360 <p>These are the same sites as shown by selecting the
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7361 "Motif Sites + Scanned Sites" button except that all
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7362 sequences, including those with no sites, are included
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7363 in the diagram.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7364 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7365 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7366 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7367
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7368 <div class="pop_content" id="pop_seq_pvalue">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7369 <p>This is the combined match <i>p</i>-value.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7370 <p>The combined match <i>p</i>-value is defined as the probability that a
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7371 random sequence (with the same length and conforming to the background)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7372 would have position <i>p</i>-values such that the product is smaller
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7373 or equal to the value calulated for the sequence under test.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7374 <p>The position <i>p</i>-value is defined as the probability that a
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7375 random sequence (with the same length and conforming to the background)
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7376 would have a match to the motif under test with a score greater or equal
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7377 to the largest found in the sequence under test.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7378 <p>Hovering your mouse over a motif site in the motif location
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7379 block diagram will show its position <i>p</i>-value and other information
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7380 about the site.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7381
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7382 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7383 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7384 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7385 <div class="pop_content" id="pop_motif_location">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7386 <p>This diagram shows the location of motif sites.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7387 <p>Each block shows the position and strength of a motif
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7388 site. The height of a block gives an indication of the
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7389 significance of the site as taller blocks are more significant.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7390 The height is calculated to be proportional to the negative
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7391 logarithm of the <i>p</i>-value of the site, truncated at
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7392 the height for a <i>p</i>-value of 1e-10.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7393 <p>For complementable alphabets (like DNA), sites on the
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7394 positive strand are shown above the line,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7395 sites on the negative strand are shown below.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7396 <p>Placing the cursor
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7397 over a motif site will reveal more information about the site
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7398 including its position <i>p</i>-value. (See the help
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7399 for the <i>p</i>-value column for an explanation of position
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7400 <i>p</i>-values.)</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7401 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7402 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7403 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7404
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7405 <div class="pop_content" id="pop_seq_source">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7406 <p>The name of the file of sequences input to MEME.</p>
57e5d9382f36 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;">[
57e5d9382f36 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>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7409 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7410 <div class="pop_content" id="pop_psp_source">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7411 <p>The position specific priors file used by MEME to find the motifs.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7412 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7413 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7414 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7415 <div class="pop_content" id="pop_seq_alph">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7416 <p>The alphabet used by the sequences.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7417 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7418 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7419 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7420 <div class="pop_content" id="pop_seq_count">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7421 <p>The number of sequences provided as input to MEME.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7422 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7423 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7424 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7425
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7426 <div class="pop_content" id="pop_alph_name">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7427 <p>The name of the alphabet symbol.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7428 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7429 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7430 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7431 <div class="pop_content" id="pop_alph_freq">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7432 <p>The frequency of the alphabet symbol in the dataset with a pseudocount
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7433 so it is never zero.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7434 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7435 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7436 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7437 <div class="pop_content" id="pop_alph_bg">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7438 <p>The frequency of the alphabet symbol as defined by the background model.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7439 <div style="float:right; bottom:0px;">[
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7440 <a href="javascript:help_popup()">close</a> ]</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7441 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7442
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7443 <!-- templates -->
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7444 <div id="measure_match" class="match"></div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7445 <div class="template pop_block" id="tmpl_block_info">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7446 <div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7447 <span class="tvar_logo_pad lflank" style="visibility:hidden;"></span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7448 <span class="tvar_logo"></span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7449 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7450 <div class="block_sequence_fragment">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7451 <span class="tvar_lflank lflank"></span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7452 <span class="tvar_match match"></span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7453 <span class="tvar_rflank rflank"></span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7454 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7455 <table class="block_information">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7456 <tr><th>Motif</th><td class="tvar_motif">1</td></tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7457 <tr><th><i>p</i>-value</th><td class="tvar_pvalue">8.23e-7</td></tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7458 <tr><th>Start</th><td class="tvar_start">23</td></tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7459 <tr><th>End</th><td class="tvar_end">33</td></tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7460 </table>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7461 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7462
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7463 <div class="template pop_block" id="tmpl_scan_info">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7464 <h5>Scanned Site</h5>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7465 <div class="tvar_logo"></div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7466 <table class="block_information">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7467 <tr><th>Motif</th><td class="tvar_motif">1</td></tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7468 <tr><th><i>p</i>-value</th><td class="tvar_pvalue">8.23e-7</td></tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7469 <tr><th>Start</th><td class="tvar_start">23</td></tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7470 <tr><th>End</th><td class="tvar_end">33</td></tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7471 </table>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7472 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7473
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7474 <div class="template box expanded_motif" id="tmpl_motif_expanded">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7475 <div style="position: relative; min-height: 20px">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7476 <div class="param_box">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7477 <span class="param"><span class="tvar_ordinal"></span>.</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7478 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7479 <div class="sym_btn positioned tvar_less" tabindex="0"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7480 title="Show less information.">&#8613;</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7481 <div class="sym_btn positioned tvar_submit" tabindex="0"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7482 title="Submit the motif to another MEME Suite program or download it.">&#8674;</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7483 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7484 <div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7485 <div class="param_box">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7486 <span class="param"><i>E</i>-value:</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7487 <span class="tvar_evalue"></span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7488 <div class="help" data-topic="pop_ev"></div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7489 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7490 <div class="param_box">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7491 <span class="param">Site Count:</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7492 <span class="tvar_site_count"></span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7493 <div class="help" data-topic="pop_sites"></div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7494 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7495 <div class="param_box">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7496 <span class="param">Width:</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7497 <span class="tvar_width"></span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7498 <div class="help" data-topic="pop_width"></div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7499 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7500 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7501 <div class="tabMain base">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7502 <div class="tabCenter tvar_logo"></div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7503 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7504 <div class="tabArea base">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7505 <span class="tvar_tab tab" tabindex="0">Standard</span><span
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7506 class="tvar_tab_rc tab middle" tabindex="0">Reverse
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7507 Complement</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7508 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7509 <div style="padding: 10px 0">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7510 <div class="param_box">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7511 <span class="param">Log Likelihood Ratio:</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7512 <span class="tvar_llr"></span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7513 <div class="help" data-topic="pop_llr"></div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7514 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7515 <div class="param_box">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7516 <span class="param">Information Content:</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7517 <span class="tvar_ic"></span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7518 <div class="help" data-topic="pop_ic"></div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7519 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7520 <div class="param_box">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7521 <span class="param">Relative Entropy:</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7522 <span class="tvar_re"></span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7523 <div class="help" data-topic="pop_re"></div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7524 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7525 <div class="param_box">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7526 <span class="param">Bayes Threshold:</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7527 <span class="tvar_bt"></span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7528 <div class="help" data-topic="pop_bt"></div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7529 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7530 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7531 <div class="tvar_sites"></div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7532 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7533
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7534
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7535 <div class="popup_wrapper">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7536 <div class="popup" style="display:none; top: -150px;" id="download">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7537 <div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7538 <div style="float:right; ">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7539 <div id="outpop_close" class="close" tabindex="0">x</div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7540 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7541 <h2 class="mainh" style="margin:0; padding:0;">Submit or Download</h2>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7542 <div style="clear:both"></div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7543 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7544 <div style="height:100px">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7545 <div style="float:right; width: 30px;">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7546 <div id="outpop_prev" class="navarrow" tabindex="0">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7547 <span class="inactive">&#8679;</span><span class="active">&#11014;</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7548 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7549 <div id="outpop_num" class="navnum"></div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7550 <div id="outpop_next" class="navarrow" tabindex="0">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7551 <span class="inactive">&#8681;</span><span class="active">&#11015;</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7552 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7553 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7554 <div id="logo_box" style="height: 100px; margin-right: 40px;">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7555 <canvas id="outpop_logo" height="100" width="580"></canvas>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7556 <canvas id="outpop_logo_rc" class="logo_rc" height="100" width="580"></canvas>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7557 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7558 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7559 <div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7560 <!-- tabs start -->
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7561 <div class="tabArea top">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7562 <span id="outpop_tab_1" class="tab">Submit Motif</span><span
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7563 id="outpop_tab_2" class="tab middle">Download Motif</span><span
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7564 id="outpop_tab_3" class="tab middle">Download Logo</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7565 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7566 <div class="tabMain top">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7567 <!-- Submit to another program -->
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7568 <div id="outpop_pnl_1">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7569 <h4 class="compact">Submit to program</h4>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7570 <table id="programs" class="programs">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7571 <tr class="dna_only">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7572 <td><input type="radio" name="program" value="tomtom" id="submit_tomtom"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7573 <td><label for="submit_tomtom">Tomtom</label></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7574 <td><label for="submit_tomtom">Find similar motifs in
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7575 published libraries or a library you supply.</label></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7576 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7577 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7578 <td><input type="radio" name="program" value="fimo" id="submit_fimo"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7579 <td><label for="submit_fimo">FIMO</label></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7580 <td><label for="submit_fimo">Find motif occurrences in
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7581 sequence data.</label></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7582 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7583 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7584 <td><input type="radio" name="program" value="mast" id="submit_mast"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7585 <td><label for="submit_mast">MAST</label></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7586 <td><label for="submit_mast">Rank sequences by affinity to
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7587 groups of motifs.</label></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7588 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7589 <tr class="dna_only">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7590 <td><input type="radio" name="program" value="gomo" id="submit_gomo"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7591 <td><label for="submit_gomo">GOMo</label></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7592 <td><label for="submit_gomo">Identify possible roles (Gene
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7593 Ontology terms) for motifs.</label></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7594 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7595 <tr class="dna_only">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7596 <td><input type="radio" name="program" value="spamo" id="submit_spamo"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7597 <td><label for="submit_spamo">SpaMo</label></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7598 <td><label for="submit_spamo">Find other motifs that are
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7599 enriched at specific close spacings which might imply the existance of a complex.</label></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7600 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7601 </table>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7602 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7603 <!-- download text format -->
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7604 <div id="outpop_pnl_2">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7605 <div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7606 <label for="text_format">Format:</label>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7607 <select id="text_format">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7608 <option value="0">Count Matrix</option>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7609 <option value="1">Probability Matrix</option>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7610 <option value="2">Minimal MEME</option>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7611 <option value="3">FASTA</option>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7612 <option value="4">Raw</option>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7613 </select>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7614 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7615 <form id="text_form" method="post" action="">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7616 <script>$("text_form").action = site_url + "/utilities/save_generated_file";</script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7617 <input type="hidden" id="text_name" name="name" value="motif.txt">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7618 <input type="hidden" name="mime_type" value="text/plain">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7619 <textarea id="outpop_text" name="content"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7620 style="width:99%; white-space: pre; word-wrap: normal; overflow-x: scroll;"
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7621 rows="8" readonly="readonly" wrap="off"></textarea>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7622 </form>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7623 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7624 <!-- download logo format -->
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7625 <div id="outpop_pnl_3">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7626 <form id="logo_form" method="post" action="">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7627 <script>$("logo_form").action = site_url + "/utilities/generate_logo";</script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7628 <input type="hidden" name="program" value="MEME"/>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7629 <input type="hidden" id="logo_motifs" name="motifs" value=""/>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7630 <table>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7631 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7632 <td><label for="logo_format">Format:</label></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7633 <td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7634 <select id="logo_format" name="png">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7635 <option value="1">PNG (for web)</option>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7636 <option value="0">EPS (for publication)</option>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7637 </select>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7638 </td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7639 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7640 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7641 <td><label for="logo_rc">Orientation:</label></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7642 <td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7643 <select id="logo_rc" name="rc1">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7644 <option value="0">Normal</option>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7645 <option value="1" id="logo_rc_option">Reverse Complement</option>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7646 </select>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7647 </td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7648 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7649 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7650 <td><label for="logo_ssc">Small Sample Correction:</label></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7651 <td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7652 <input type="hidden" id="logo_err" name="errbars" value="0"/>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7653 <select id="logo_ssc" name="ssc">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7654 <option value="0">Off</option>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7655 <option value="1">On</option>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7656 </select>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7657 </td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7658 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7659 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7660 <td><label for="logo_width">Width:</label></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7661 <td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7662 <input type="text" id="logo_width" size="4" placeholder="default" name="width"/>&nbsp;cm
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7663 </td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7664 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7665 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7666 <td><label for="logo_height">Height:</label></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7667 <td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7668 <input type="text" id="logo_height" size="4" placeholder="default" name="height"/>&nbsp;cm
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7669 </td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7670 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7671 </table>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7672 </form>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7673 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7674 <!-- Buttons -->
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7675 <div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7676 <div style="float:left;">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7677 <input type="button" id="outpop_do" value="Submit" />
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7678 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7679 <div style="float:right;">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7680 <input id="outpop_cancel" type="button" value="Cancel" />
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7681 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7682 <div style="clear:both;"></div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7683 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7684 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7685 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7686 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7687 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7688
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7689
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7690
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7691 <!-- Page starts here -->
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7692 <div id="top" class="pad1">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7693 <div class="prog_logo big">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7694 <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">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7695 <h1>MEME</h1>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7696 <h2>Multiple Em for Motif Elicitation</h2>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7697 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7698 <p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7699 For further information on how to interpret these results or to get a
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7700 copy of the MEME software please access
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7701 <a href="http://meme-suite.org/">http://meme-suite.org</a>.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7702 </p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7703 <p>If you use MEME in your research, please cite the following paper:<br />
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7704 <span class="citation">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7705 Timothy L. Bailey and Charles Elkan,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7706 "Fitting a mixture model by expectation maximization to discover motifs in biopolymers",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7707 <em>Proceedings of the Second International Conference on Intelligent Systems
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7708 for Molecular Biology</em>, pp. 28-36, AAAI Press, Menlo Park, California, 1994.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7709 <a href="http://meme-suite.org/doc/ismb94.pdf">[pdf]</a>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7710 </span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7711 </p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7712 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7713 <!-- navigation -->
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7714 <div class="pad2">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7715 <a class="jump" href="#motifs_sec">Discovered Motifs</a>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7716 &nbsp;&nbsp;|&nbsp;&nbsp;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7717 <a class="jump" href="#sites_sec">Motif Locations</a>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7718 &nbsp;&nbsp;|&nbsp;&nbsp;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7719 <a class="jump" href="#inputs_sec">Inputs &amp; Settings</a>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7720 &nbsp;&nbsp;|&nbsp;&nbsp;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7721 <a class="jump" href="#info_sec">Program information</a>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7722 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7723 <!-- alert the user when their browser is not up to the task -->
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7724 <noscript><h1 style="color:red">Javascript is required to view these results!</h1></noscript>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7725 <h1 id="html5_warning" style="color:red; display:none;">Your browser does not support canvas!</h1>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7726 <script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7727 if (!window.HTMLCanvasElement) $("html5_warning").style.display = "block";
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7728 </script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7729 <h2 class="mainh pad2" id="motifs_sec">Discovered Motifs</h2>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7730 <div id="motifs" class="box">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7731 <p>Please wait... Loading...</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7732 <p>If the page has fully loaded and this message does not disappear then an error may have occurred.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7733 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7734 <h2 class="mainh pad2" id="sites_sec">Motif Locations</h2>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7735 <div id="blocks" class="box">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7736 <p>Please wait... Loading...</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7737 <p>If the page has fully loaded and this message does not disappear then an error may have occurred.</p>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7738 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7739 <h2 class="mainh pad2" id="inputs_sec">Inputs &amp; Settings</h2>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7740 <div class="box">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7741 <h4>Sequences</h4>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7742 <table id="seq_info" class="inputs">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7743 <tr><th>Source <div class="help" data-topic="pop_seq_source"></div></th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7744 <th class="col_psp">PSP Source <div class="help" data-topic="pop_psp_source"></div></th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7745 <th>Alphabet <div class="help" data-topic="pop_seq_alph"></div></th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7746 <th>Sequence Count <div class="help" data-topic="pop_seq_count"></div></th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7747 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7748 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7749 <td id="ins_seq_source"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7750 <td id="ins_seq_psp" class="col_psp"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7751 <td id="ins_seq_alphabet"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7752 <td id="ins_seq_count"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7753 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7754 </table>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7755 <script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7756 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7757 var db = data.sequence_db;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7758 $("ins_seq_source").innerHTML = db.source;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7759 $("ins_seq_alphabet").innerHTML = meme_alphabet.get_alphabet_name();
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7760 $("ins_seq_count").innerHTML = db.sequences.length;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7761 if (db.psp) {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7762 $("ins_seq_psp").innerHTML = db.psp;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7763 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7764 toggle_class($("seq_info"), "hide_psp", !(db.psp));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7765 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7766 </script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7767 <h4>Background</h4>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7768 <span id="alpha_bg"></span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7769 <script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7770 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7771 $("alpha_bg").appendChild(make_alpha_bg_table(meme_alphabet, data.sequence_db.freqs));
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7772 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7773 </script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7774 <h4>Other Settings</h4>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7775 <table id="tbl_settings" class="inputs hide_advanced">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7776 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7777 <th>Motif Site Distribution</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7778 <td id="opt_mod">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7779 <span class="mod_zoops">ZOOPS: Zero or one site per sequence</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7780 <span class="mod_oops">OOPS: Exactly one site per sequence</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7781 <span class="mod_anr">ANR: Any number of sites per sequence</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7782 </td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7783 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7784 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7785 <th>Site Strand Handling</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7786 <td id="opt_strand">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7787 <span class="strand_none">This alphabet only has one strand</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7788 <span class="strand_given">Sites must be on the given strand</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7789 <span class="strand_both">Sites may be on either strand</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7790 </td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7791 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7792 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7793 <th>Maximum Number of Motifs</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7794 <td id="opt_nmotifs"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7795 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7796 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7797 <th>Motif E-value Threshold</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7798 <td id="opt_evt"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7799 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7800 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7801 <th>Minimum Motif Width</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7802 <td id="opt_minw"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7803 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7804 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7805 <th>Maximum Motif Width</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7806 <td id="opt_maxw"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7807 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7808 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7809 <th>Minimum Sites per Motif</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7810 <td id="opt_minsites"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7811 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7812 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7813 <th>Maximum Sites per Motif</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7814 <td id="opt_maxsites"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7815 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7816 <tr class="advanced">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7817 <th>Bias on Number of Sites</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7818 <td id="opt_wnsites"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7819 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7820 <tr class="advanced">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7821 <th>Sequence Prior</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7822 <td id="opt_prior">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7823 <span class="prior_dirichlet">Simple Dirichlet</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7824 <span class="prior_dmix">Dirichlets Mix</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7825 <span class="prior_mega">Mega-weight Dirichlets Mix</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7826 <span class="prior_megap">Mega-weight Dirichlets Mix Plus</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7827 <span class="prior_addone">Add One</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7828 </td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7829 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7830 <tr class="advanced">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7831 <th>Sequence Prior Strength</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7832 <td id="opt_b"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7833 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7834 <tr class="advanced">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7835 <th>EM Starting Point Source</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7836 <td id="opt_substring">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7837 <span class="substring_on">From substrings in input sequences</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7838 <span class="substring_off">From strings on command line (-cons)</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7839 </td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7840 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7841 <tr class="advanced">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7842 <th>EM Starting Point Map Type</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7843 <td id="opt_spmap">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7844 <span class="spmap_uni">Uniform</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7845 <span class="spmap_pam">Point Accepted Mutation</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7846 </td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7847 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7848 <tr class="advanced">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7849 <th>EM Starting Point Fuzz</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7850 <td id="opt_spfuzz"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7851 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7852 <tr class="advanced">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7853 <th>EM Maximum Iterations</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7854 <td id="opt_maxiter"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7855 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7856 <tr class="advanced">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7857 <th>EM Improvement Threshold</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7858 <td id="opt_distance"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7859 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7860 <tr class="advanced">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7861 <th>Trim Gap Open Cost</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7862 <td id="opt_wg"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7863 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7864 <tr class="advanced">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7865 <th>Trim Gap Extend Cost</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7866 <td id="opt_ws"></td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7867 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7868 <tr class="advanced">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7869 <th>End Gap Treatment</th>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7870 <td id="opt_noendgaps">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7871 <span class="noendgaps_on">No cost</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7872 <span class="noendgaps_off">Same cost as other gaps</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7873 </td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7874 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7875 <tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7876 <td colspan="2" style="text-align: center">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7877 <a href="javascript:toggle_class(document.getElementById('tbl_settings'), 'hide_advanced')">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7878 <span class="show_more">Show Advanced Settings</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7879 <span class="show_less">Hide Advanced Settings</span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7880 </a>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7881 </td>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7882 </tr>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7883 </table>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7884 <script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7885 {
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7886 $("opt_mod").className = data.options.mod;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7887 $("opt_strand").className = (meme_alphabet.has_complement() ? (data.options.revcomp ? "both" : "given") : "none");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7888 $("opt_nmotifs").textContent = data.options.nmotifs;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7889 $("opt_evt").textContent = (typeof data.options.evt === "number" ? data.options.evt : "no limit");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7890 $("opt_minw").textContent = data.options.minw;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7891 $("opt_maxw").textContent = data.options.maxw;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7892 $("opt_minsites").textContent = data.options.minsites;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7893 $("opt_maxsites").textContent = data.options.maxsites;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7894 $("opt_wnsites").textContent = data.options.wnsites;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7895 $("opt_spmap").className = data.options.spmap;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7896 $("opt_spfuzz").textContent = data.options.spfuzz;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7897 $("opt_prior").className = data.options.prior;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7898 $("opt_b").textContent = data.options.b;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7899 $("opt_maxiter").textContent = data.options.maxiter;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7900 $("opt_distance").textContent = data.options.distance;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7901 $("opt_wg").textContent = data.options.wg;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7902 $("opt_ws").textContent = data.options.ws;
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7903 $("opt_noendgaps").className = (data.options.noendgaps ? "on" : "off");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7904 $("opt_substring").className = (data.options.substring ? "on" : "off");
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7905 }
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7906 </script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7907 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7908 <!-- list information on this program -->
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7909 <div id="info_sec" class="bar">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7910 <div class="subsection">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7911 <h5 id="version">MEME version</h5>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7912 <span id="ins_version"></span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7913 (Release date: <span id="ins_release"></span>)<br>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7914 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7915 <script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7916 $("ins_version").innerHTML = data["version"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7917 $("ins_release").innerHTML = data["release"];
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7918 </script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7919 <div class="subsection">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7920 <h5 id="reference">Reference</h5>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7921 <span class="citation">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7922 Timothy L. Bailey and Charles Elkan,
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7923 "Fitting a mixture model by expectation maximization to discover motifs in biopolymers",
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7924 <em>Proceedings of the Second International Conference on Intelligent Systems
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7925 for Molecular Biology</em>, pp. 28-36, AAAI Press, Menlo Park, California, 1994.
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7926 </span>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7927 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7928 <div class="subsection">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7929 <h5 id="command">Command line</h5>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7930 <textarea id="cmd" rows="5" style="width:100%;" readonly="readonly">
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7931 </textarea>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7932 <script>$("cmd").value = data["cmd"].join(" ");</script>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7933 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7934 </div>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7935
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7936 </body>
57e5d9382f36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff changeset
7937 </html>