Mercurial > repos > iuc > meme_dreme
annotate test-data/meme_output_test2.html @ 1:cb8a2242bf03 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
author | iuc |
---|---|
date | Thu, 17 May 2018 14:11:27 -0400 |
parents | |
children | 3e5c80594237 |
rev | line source |
---|---|
1
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1 <!DOCTYPE HTML> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2 <html> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3 <head> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4 <meta charset="UTF-8"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5 <title>MEME</title> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7 // @JSON_VAR data |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
8 var data = { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
9 "program": "MEME", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
10 "version": "4.12.0", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
11 "release": "Tue Jun 27 16:22:50 2017 -0700", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
12 "stop_reason": "Stopped because requested number of motifs (1) found.", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
13 "cmd": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
14 "meme", "meme_input_1.fasta", "-o", "meme_test2_out", "-nostatus", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
15 "-maxsize", "1000000", "-sf", "Galaxy_FASTA_Input", "-dna", "-mod", |
cb8a2242bf03
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", |
cb8a2242bf03
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", |
cb8a2242bf03
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", |
cb8a2242bf03
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" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
20 ], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
21 "options": { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
22 "mod": "zoops", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
23 "revcomp": false, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
24 "nmotifs": 1, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
25 "minw": 8, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
26 "maxw": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
27 "minsites": 2, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
28 "maxsites": 30, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
29 "wnsites": 0.8, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
30 "spmap": "uni", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
31 "spfuzz": 0.5, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
32 "maxwords": -1, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
33 "prior": "dirichlet", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
34 "b": 0.01, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
35 "maxiter": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
36 "distance": 0.001, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
37 "wg": 11, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
38 "ws": 1, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
39 "noendgaps": false, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
40 "substring": true |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
41 }, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
42 "alphabet": { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
43 "name": "DNA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
44 "like": "dna", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
45 "ncore": 4, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
46 "symbols": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
47 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
48 "symbol": "A", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
49 "name": "Adenine", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
50 "colour": "CC0000", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
51 "complement": "T" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
52 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
53 "symbol": "C", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
54 "name": "Cytosine", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
55 "colour": "0000CC", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
56 "complement": "G" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
57 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
58 "symbol": "G", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
59 "name": "Guanine", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
60 "colour": "FFB300", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
61 "complement": "C" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
62 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
63 "symbol": "T", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
64 "aliases": "U", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
65 "name": "Thymine", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
66 "colour": "008000", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
67 "complement": "A" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
68 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
69 "symbol": "N", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
70 "aliases": "X.", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
71 "name": "Any base", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
72 "equals": "ACGT" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
73 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
74 "symbol": "V", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
75 "name": "Not T", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
76 "equals": "ACG" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
77 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
78 "symbol": "H", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
79 "name": "Not G", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
80 "equals": "ACT" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
81 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
82 "symbol": "D", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
83 "name": "Not C", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
84 "equals": "AGT" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
85 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
86 "symbol": "B", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
87 "name": "Not A", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
88 "equals": "CGT" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
89 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
90 "symbol": "M", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
91 "name": "Amino", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
92 "equals": "AC" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
93 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
94 "symbol": "R", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
95 "name": "Purine", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
96 "equals": "AG" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
97 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
98 "symbol": "W", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
99 "name": "Weak", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
100 "equals": "AT" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
101 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
102 "symbol": "S", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
103 "name": "Strong", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
104 "equals": "CG" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
105 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
106 "symbol": "Y", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
107 "name": "Pyrimidine", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
108 "equals": "CT" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
109 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
110 "symbol": "K", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
111 "name": "Keto", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
112 "equals": "GT" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
113 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
114 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
115 }, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
116 "background": { |
cb8a2242bf03
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] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
118 }, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
119 "sequence_db": { |
cb8a2242bf03
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", |
cb8a2242bf03
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", |
cb8a2242bf03
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], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
123 "sequences": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
124 { |
cb8a2242bf03
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_+", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
126 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
127 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
128 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
129 "name": "chr21_26934381_26934431_+", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
130 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
131 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
132 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
133 "name": "chr21_28217753_28217803_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
134 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
135 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
136 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
137 "name": "chr21_31710037_31710087_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
138 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
139 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
140 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
141 "name": "chr21_31744582_31744632_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
142 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
143 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
144 }, { |
cb8a2242bf03
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_+", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
146 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
147 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
148 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
149 "name": "chr21_31914206_31914256_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
150 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
151 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
152 }, { |
cb8a2242bf03
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_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
154 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
155 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
156 }, { |
cb8a2242bf03
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_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
158 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
159 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
160 }, { |
cb8a2242bf03
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_+", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
162 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
163 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
164 }, { |
cb8a2242bf03
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_+", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
166 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
167 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
168 }, { |
cb8a2242bf03
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_+", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
170 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
171 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
172 }, { |
cb8a2242bf03
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_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
174 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
175 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
176 }, { |
cb8a2242bf03
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_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
178 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
179 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
180 }, { |
cb8a2242bf03
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_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
182 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
183 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
184 }, { |
cb8a2242bf03
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_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
186 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
187 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
188 }, { |
cb8a2242bf03
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_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
190 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
191 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
192 }, { |
cb8a2242bf03
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_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
194 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
195 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
196 }, { |
cb8a2242bf03
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_+", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
198 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
199 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
200 }, { |
cb8a2242bf03
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_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
202 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
203 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
204 }, { |
cb8a2242bf03
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_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
206 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
207 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
208 }, { |
cb8a2242bf03
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_+", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
210 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
211 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
212 }, { |
cb8a2242bf03
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_+", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
214 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
215 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
216 }, { |
cb8a2242bf03
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_+", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
218 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
219 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
220 }, { |
cb8a2242bf03
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_+", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
222 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
223 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
224 }, { |
cb8a2242bf03
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_+", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
226 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
227 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
228 }, { |
cb8a2242bf03
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_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
230 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
231 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
232 }, { |
cb8a2242bf03
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_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
234 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
235 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
236 }, { |
cb8a2242bf03
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_+", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
238 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
239 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
240 }, { |
cb8a2242bf03
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_-", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
242 "length": 50, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
243 "weight": 1.000000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
244 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
245 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
246 }, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
247 "motifs": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
248 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
249 "db": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
250 "id": "GGSRTATAAAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
251 "alt": "MEME-1", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
252 "len": 11, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
253 "nsites": 30, |
cb8a2242bf03
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", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
255 "ic": 13.0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
256 "re": 12.2, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
257 "llr": 254, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
258 "bt": 5.2854, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
259 "time": 0.376000, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
260 "psm": [ |
cb8a2242bf03
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], |
cb8a2242bf03
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], |
cb8a2242bf03
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], |
cb8a2242bf03
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], |
cb8a2242bf03
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], |
cb8a2242bf03
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] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
267 ], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
268 "pwm": [ |
cb8a2242bf03
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], |
cb8a2242bf03
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], |
cb8a2242bf03
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], |
cb8a2242bf03
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], |
cb8a2242bf03
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], |
cb8a2242bf03
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], |
cb8a2242bf03
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], |
cb8a2242bf03
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], |
cb8a2242bf03
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], |
cb8a2242bf03
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], |
cb8a2242bf03
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] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
280 ], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
281 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
282 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
283 "seq": 24, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
284 "pos": 12, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
285 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
287 "lflank": "AAGGCCAGGA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
288 "match": "GGGGTATAAAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
289 "rflank": "GCCTGAGAGC" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
290 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
291 "seq": 23, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
292 "pos": 15, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
293 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
295 "lflank": "ATACCCAGGG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
296 "match": "AGGGTATAAAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
297 "rflank": "CCTCAGCAGC" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
298 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
299 "seq": 13, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
300 "pos": 13, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
301 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
303 "lflank": "CCACCAGCTT", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
304 "match": "GAGGTATAAAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
305 "rflank": "AGCCCTGTAC" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
306 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
307 "seq": 25, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
308 "pos": 36, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
309 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
311 "lflank": "ACAGGCCCTG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
312 "match": "GGCATATAAAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
313 "rflank": "GCC" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
314 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
315 "seq": 21, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
316 "pos": 7, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
317 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
319 "lflank": "CCAAGGA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
320 "match": "GGAGTATAAAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
321 "rflank": "GCCCCACAAA" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
322 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
323 "seq": 19, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
324 "pos": 9, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
325 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
327 "lflank": "CAGGCCCTG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
328 "match": "GGCATATAAAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
329 "rflank": "GCCCCAGCAG" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
330 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
331 "seq": 9, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
332 "pos": 13, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
333 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
335 "lflank": "GATTCACTGA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
336 "match": "GGCATATAAAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
337 "rflank": "GGCCCTCTGC" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
338 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
339 "seq": 28, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
340 "pos": 32, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
341 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
343 "lflank": "CCGGCGGGGC", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
344 "match": "GGGGTATAAAG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
345 "rflank": "GGGGCGG" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
346 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
347 "seq": 20, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
348 "pos": 4, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
349 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
351 "lflank": "CAGA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
352 "match": "GGGGTATAAAG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
353 "rflank": "GTTCCGACCA" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
354 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
355 "seq": 12, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
356 "pos": 18, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
357 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
359 "lflank": "CACCAGAGCT", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
360 "match": "GGGATATATAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
361 "rflank": "AGAAGGTTCT" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
362 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
363 "seq": 15, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
364 "pos": 21, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
365 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
367 "lflank": "AATCACTGAG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
368 "match": "GATGTATAAAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
369 "rflank": "GTCCCAGGGA" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
370 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
371 "seq": 11, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
372 "pos": 16, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
373 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
375 "lflank": "CACTATTGAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
376 "match": "GATGTATAAAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
377 "rflank": "TTTCATTTGC" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
378 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
379 "seq": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
380 "pos": 39, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
381 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
383 "lflank": "CCTCGGGACG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
384 "match": "TGGGTATATAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
385 "rflank": "" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
386 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
387 "seq": 6, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
388 "pos": 15, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
389 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
391 "lflank": "CCCACTACTT", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
392 "match": "AGAGTATAAAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
393 "rflank": "TCATTCTGAG" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
394 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
395 "seq": 22, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
396 "pos": 2, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
397 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
399 "lflank": "GA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
400 "match": "GACATATAAAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
401 "rflank": "GCCAACATCC" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
402 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
403 "seq": 14, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
404 "pos": 17, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
405 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
407 "lflank": "CCCACCAGCA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
408 "match": "AGGATATATAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
409 "rflank": "AAGCTCAGGA" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
410 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
411 "seq": 18, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
412 "pos": 37, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
413 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
415 "lflank": "CGTGGTCGCG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
416 "match": "GGGGTATAACA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
417 "rflank": "GC" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
418 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
419 "seq": 29, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
420 "pos": 30, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
421 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
423 "lflank": "GCTGCCGGTG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
424 "match": "AGCGTATAAAG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
425 "rflank": "GCCCTGGCG" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
426 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
427 "seq": 4, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
428 "pos": 12, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
429 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
431 "lflank": "CAGGTCTAAG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
432 "match": "AGCATATATAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
433 "rflank": "CTTGGAGTCC" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
434 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
435 "seq": 5, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
436 "pos": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
437 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
439 "lflank": "", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
440 "match": "AACGTATATAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
441 "rflank": "ATGGTCCTGT" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
442 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
443 "seq": 1, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
444 "pos": 27, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
445 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
447 "lflank": "AGTCACAAGT", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
448 "match": "GAGTTATAAAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
449 "rflank": "GGGTCGCACG" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
450 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
451 "seq": 7, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
452 "pos": 4, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
453 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
455 "lflank": "TCAG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
456 "match": "AGTATATATAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
457 "rflank": "ATGTTCCTGT" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
458 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
459 "seq": 3, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
460 "pos": 14, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
461 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
463 "lflank": "CCCAGGTTTC", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
464 "match": "TGAGTATATAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
465 "rflank": "TCGCCGCACC" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
466 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
467 "seq": 16, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
468 "pos": 22, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
469 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
471 "lflank": "AGTTTCAGTT", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
472 "match": "GGCATCTAAAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
473 "rflank": "attatataac" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
474 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
475 "seq": 27, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
476 "pos": 36, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
477 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
479 "lflank": "TGCCTGGGTC", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
480 "match": "CAGGTATAAAG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
481 "rflank": "GCT" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
482 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
483 "seq": 26, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
484 "pos": 37, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
485 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
487 "lflank": "TGCCTGGGCC", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
488 "match": "CAGGTATAAAG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
489 "rflank": "GC" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
490 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
491 "seq": 17, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
492 "pos": 2, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
493 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
495 "lflank": "ga", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
496 "match": "TGGTTTTATAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
497 "rflank": "ggggcctcac" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
498 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
499 "seq": 8, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
500 "pos": 13, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
501 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
503 "lflank": "TATAACTCAG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
504 "match": "GTTGGATAAAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
505 "rflank": "TAATTTGTAC" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
506 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
507 "seq": 10, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
508 "pos": 7, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
509 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
511 "lflank": "aaactta", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
512 "match": "AAACTCTATAA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
513 "rflank": "acttaaaact" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
514 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
515 "seq": 2, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
516 "pos": 26, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
517 "rc": false, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
519 "lflank": "GGTGGGGGTG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
520 "match": "GGGGTTTCACT", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
521 "rflank": "GGTCCACTAT" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
522 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
523 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
524 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
525 ], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
526 "scan": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
527 { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
529 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
530 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
531 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
532 "pos": 39, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
533 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
535 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
536 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
537 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
539 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
540 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
541 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
542 "pos": 27, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
543 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
545 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
546 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
547 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
549 "sites": [] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
550 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
551 "pvalue": 2.49e-03, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
552 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
553 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
554 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
555 "pos": 14, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
556 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
558 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
559 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
560 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
562 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
563 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
564 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
565 "pos": 12, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
566 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
568 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
569 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
570 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
572 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
573 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
574 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
575 "pos": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
576 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
578 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
579 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
580 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
582 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
583 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
584 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
585 "pos": 15, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
586 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
588 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
589 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
590 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
591 "pvalue": 2.26e-03, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
592 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
593 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
594 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
595 "pos": 4, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
596 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
598 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
599 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
600 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
602 "sites": [] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
603 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
604 "pvalue": 1.95e-04, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
605 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
606 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
607 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
608 "pos": 13, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
609 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
611 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
612 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
613 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
614 "pvalue": 5.73e-02, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
615 "sites": [] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
616 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
618 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
619 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
620 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
621 "pos": 16, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
622 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
624 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
625 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
626 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
627 "pvalue": 2.59e-04, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
628 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
629 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
630 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
631 "pos": 18, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
632 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
634 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
635 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
636 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
637 "pvalue": 1.10e-04, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
638 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
639 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
640 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
641 "pos": 13, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
642 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
644 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
645 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
646 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
647 "pvalue": 7.78e-04, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
648 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
649 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
650 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
651 "pos": 17, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
652 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
654 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
655 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
656 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
657 "pvalue": 5.52e-04, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
658 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
659 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
660 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
661 "pos": 21, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
662 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
664 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
665 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
666 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
667 "pvalue": 2.85e-03, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
668 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
669 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
670 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
671 "pos": 22, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
672 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
674 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
675 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
676 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
678 "sites": [] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
679 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
680 "pvalue": 8.63e-04, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
681 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
682 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
683 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
684 "pos": 37, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
685 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
687 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
688 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
689 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
691 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
692 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
693 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
694 "pos": 9, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
695 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
697 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
698 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
699 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
701 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
702 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
703 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
704 "pos": 4, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
705 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
707 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
708 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
709 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
711 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
712 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
713 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
714 "pos": 7, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
715 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
717 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
718 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
719 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
721 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
722 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
723 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
724 "pos": 2, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
725 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
727 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
728 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
729 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
731 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
732 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
733 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
734 "pos": 15, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
735 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
737 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
738 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
739 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
741 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
742 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
743 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
744 "pos": 12, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
745 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
747 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
748 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
749 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
751 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
752 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
753 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
754 "pos": 36, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
755 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
757 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
758 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
759 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
761 "sites": [] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
762 }, { |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
764 "sites": [] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
765 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
766 "pvalue": 2.59e-04, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
767 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
768 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
769 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
770 "pos": 32, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
771 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
773 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
774 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
775 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
776 "pvalue": 1.22e-03, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
777 "sites": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
778 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
779 "motif": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
780 "pos": 30, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
781 "rc": false, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
783 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
784 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
785 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
786 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
787 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
788 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
789 <script> |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
791 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
792 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
793 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
794 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
795 * $ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
796 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
797 * Shorthand function for getElementById |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
798 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
799 function $(el) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
801 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
802 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
803 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
804 /* |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
807 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
808 function string_mult(pattern, count) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
809 if (count < 1) return ''; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
810 var result = ''; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
811 while (count > 1) { |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
814 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
815 return result + pattern; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
816 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
817 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
818 /* |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
822 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
823 function parse_params() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
824 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
830 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
831 if (query === search || query === "") return {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
832 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
833 params = {}; |
cb8a2242bf03
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("&"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
835 |
cb8a2242bf03
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++) { |
cb8a2242bf03
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("="); |
cb8a2242bf03
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]); |
cb8a2242bf03
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]); |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
843 params[n] = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
844 } |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
846 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
847 return params; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
848 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
849 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
850 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
851 * coords |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
852 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
853 * Calculates the x and y offset of an element. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
854 * From http://www.quirksmode.org/js/findpos.html |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
855 * with alterations to take into account scrolling regions |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
856 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
857 function coords(elem) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
859 if (elem.getBoundingClientRect) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
860 var rect; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
861 rect = elem.getBoundingClientRect(); |
cb8a2242bf03
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") ? |
cb8a2242bf03
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); |
cb8a2242bf03
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") ? |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
866 } else { |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
869 var node; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
870 if (elem.offsetParent) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
871 // subtract all scrolling |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
872 node = elem; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
873 do { |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
880 // sum up offsets |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
881 node = elem; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
882 do { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
883 myX += node.offsetLeft; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
884 myY += node.offsetTop; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
886 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
887 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
888 return [myX, myY]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
889 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
890 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
891 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
892 * position_popup |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
893 * |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
895 * |
cb8a2242bf03
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: |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
898 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
899 function position_popup(anchor, popup, position) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
900 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
903 // define constants |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
904 spacer = 5; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
905 margin = 15; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
906 scrollbar = 15; |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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]; |
cb8a2242bf03
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]; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
915 page_w = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
916 if (window.innerWidth) { |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
920 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
921 // check the position type is defined |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
922 if (typeof position !== "number") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
923 position = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
924 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
925 // calculate the popup position |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
926 switch (position) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
927 case 1: |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
930 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
931 case 0: |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
932 default: |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
935 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
936 } |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
939 p_x = margin; |
cb8a2242bf03
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)) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
942 } |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
944 p_y = margin; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
945 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
946 // position the popup |
cb8a2242bf03
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"; |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
949 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
950 |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
954 if (pop == null) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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; |
cb8a2242bf03
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"; |
cb8a2242bf03
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"; |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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 + "\".")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
964 pop.appendChild(info); |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
968 } |
cb8a2242bf03
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")) { |
cb8a2242bf03
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)) { |
cb8a2242bf03
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"; |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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")); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
978 help_return(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
979 }, false); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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")); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
988 help_popup(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
989 }, false); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
992 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
993 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
994 return pop; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
995 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
996 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
997 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
998 * help_popup |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
999 * |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1001 * below an activator. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1002 */ |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1004 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1005 var pop; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1006 // set default values |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1008 help_popup.popup = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1009 } |
cb8a2242bf03
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") { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1012 } |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
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'; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1017 help_popup.popup = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1018 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1019 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1020 } |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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) { |
cb8a2242bf03
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) |
cb8a2242bf03
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'; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1026 help_popup.popup = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1027 return; // toggling complete! |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1028 } |
cb8a2242bf03
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) { |
cb8a2242bf03
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 |
cb8a2242bf03
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'; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1032 } |
cb8a2242bf03
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]; |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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'; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1039 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1040 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1041 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1042 * help_refine |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1043 * |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1046 */ |
cb8a2242bf03
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) { |
cb8a2242bf03
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) { |
cb8a2242bf03
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!"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1050 } |
cb8a2242bf03
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); |
cb8a2242bf03
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]; |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"; |
cb8a2242bf03
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 |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1060 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1061 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1062 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1063 * help_return |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1064 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1065 * Intended for links within a help popup. Stores a stack of state so |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1066 * you can go back. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1067 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1068 function help_return() { |
cb8a2242bf03
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) { |
cb8a2242bf03
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!"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1071 } |
cb8a2242bf03
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(); |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1075 if (pop != null) { |
cb8a2242bf03
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); |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1079 } else { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1081 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1082 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1083 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1084 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1085 * update_scroll_pad |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1086 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1087 * Creates padding at the bottom of the page to allow |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1088 * scrolling of anything into view. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1089 */ |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1091 var page, pad; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1093 pad = $("scrollpad"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1094 if (pad === null) { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1096 pad.id = 'scrollpad'; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1098 } |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1100 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1101 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1103 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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+/); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1106 all = {}; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1109 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1110 for (i = 0; i < remove.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1111 if (all.hasOwnProperty(remove[i])) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1112 delete all[remove[i]]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1113 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1114 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1115 for (i = 0; i < add.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1116 all[add[i]] = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1117 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1118 classes = ""; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1120 classes += cls + " "; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1121 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1122 node.className = classes; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1123 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1124 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1125 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1126 * toggle_class |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1127 * |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1131 */ |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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+/); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1135 var found = false; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1139 i--; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1140 found = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1141 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1142 } |
cb8a2242bf03
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") { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1145 } else { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1147 } |
cb8a2242bf03
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(" "); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1149 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1150 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1151 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1152 * find_child |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1153 * |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1157 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1158 function find_child(node, className) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1159 var pattern; |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1161 return null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1162 } |
cb8a2242bf03
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") { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1165 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1166 pattern = className; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1167 } |
cb8a2242bf03
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 && |
cb8a2242bf03
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)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1170 return node; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1171 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1172 var result = null; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1176 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1177 return result; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1178 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1179 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1180 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1181 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1182 * find_parent |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1183 * |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1186 */ |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1188 var pattern; |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1190 do { |
cb8a2242bf03
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 && |
cb8a2242bf03
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)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1193 return node; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1194 } |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1196 return null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1197 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1198 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1199 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1200 * find_parent_tag |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1201 * |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1204 */ |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1206 do { |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1208 return node; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1209 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1210 } while (node = node.parentNode); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1211 return null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1212 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1213 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1214 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1215 * __toggle_help |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1216 * |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1219 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1220 * This function is not intended to be called directly. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1221 */ |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1226 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1227 } |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1229 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1230 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1231 |
cb8a2242bf03
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")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1233 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1234 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1236 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1237 var topic; |
cb8a2242bf03
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")) { |
cb8a2242bf03
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"); |
cb8a2242bf03
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) { |
cb8a2242bf03
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 |
cb8a2242bf03
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() { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1244 }, false); |
cb8a2242bf03
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) { |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1249 e.preventDefault(); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1251 }, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1252 } else { |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1254 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1255 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1256 button.className += " active"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1257 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1258 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1259 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1260 * help_button |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1261 * |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1263 */ |
cb8a2242bf03
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) { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1266 btn.className = "help"; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1269 return btn; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1270 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1271 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1272 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1273 * prepare_download |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1274 * |
cb8a2242bf03
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. |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1277 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1278 function prepare_download(content, mimetype, filename, link) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1279 "use strict"; |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1282 if (!link) { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1284 click_link = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1285 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1286 try { |
cb8a2242bf03
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. |
cb8a2242bf03
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. |
cb8a2242bf03
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, |
cb8a2242bf03
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. |
cb8a2242bf03
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}); |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1293 reader.onloadend = function() { |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
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. |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1299 if (click_link) { |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1302 link.click(); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1304 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1305 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1306 reader.readAsDataURL(blob); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1307 } catch (error) { |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1310 link.href = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1311 link.visible = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1312 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1313 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1314 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1315 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1316 * add_cell |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1317 * |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1319 */ |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1325 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1326 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1327 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1328 * add_header_cell |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1329 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1330 * Add a header cell to the table row. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1331 */ |
cb8a2242bf03
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) { |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
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)); |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1338 row.appendChild(th); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1339 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1340 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1341 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1342 * add_text_cell |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1343 * |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1345 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1346 function add_text_cell(row, text, cls, action) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1347 var node = null; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1350 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1351 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1352 /* |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1354 * |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1356 */ |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1358 var node = null; |
cb8a2242bf03
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') { |
cb8a2242bf03
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" : ""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1361 var str = "" + text; |
cb8a2242bf03
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/); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1364 if (action) { |
cb8a2242bf03
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"); |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1367 } else { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1369 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1370 } else { |
cb8a2242bf03
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"); |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1373 if (i !== 0) { |
cb8a2242bf03
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")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1375 } |
cb8a2242bf03
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])); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1377 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1378 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1379 if (action) { |
cb8a2242bf03
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); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1382 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1383 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1384 add_header_cell(row, node, help_topic, cls, colspan); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1385 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1386 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1387 function setup_help() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1388 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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)"); |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1393 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1394 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1395 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1396 function setup_scrollpad() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1397 "use strict"; |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1400 update_scroll_pad(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1401 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1402 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1403 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1405 (function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1406 "use strict"; |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1409 setup_help(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1410 setup_scrollpad(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1411 }, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1412 })(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1413 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1414 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1415 * make_link |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1416 * |
cb8a2242bf03
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. |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1420 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1421 function make_link(text, url) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1422 var textNode = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1423 var link = null; |
cb8a2242bf03
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); |
cb8a2242bf03
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") { |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1427 url = "http://" + url; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1428 } |
cb8a2242bf03
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'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1430 link.href = url; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1432 return link; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1433 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1434 return textNode; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1435 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1436 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1437 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1438 // |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1440 // |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1442 var rect; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1443 try { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1444 rect = elem.getBoundingClientRect(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1445 } catch (e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1446 return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1447 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1448 return ( |
cb8a2242bf03
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) && |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1450 rect.bottom > 0 && |
cb8a2242bf03
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) && |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1452 rect.right > 0 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1453 ); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1454 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1455 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1456 // |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1458 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1459 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1461 var drawable_list = []; |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1470 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1471 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1472 // Drawable |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1473 // |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1476 // |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1478 this.elem = elem; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1479 this.task = task; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1480 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1481 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1482 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1483 // Drawable.is_visible |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1484 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1485 // Determines if the element is visible in the viewport |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1486 // |
cb8a2242bf03
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() { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1489 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1490 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1491 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1492 // Drawable.run |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1493 // |
cb8a2242bf03
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 |
cb8a2242bf03
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() { |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1497 this.task = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1498 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1499 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1500 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1501 // Drawable.run |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1502 // |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1506 if (this.task) { |
cb8a2242bf03
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)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1508 this.task.run(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1509 this.task = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1510 return true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1511 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1512 return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1513 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1514 return true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1515 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1516 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1517 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1518 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1519 // draw_on_screen |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1520 // |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1522 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1523 function draw_on_screen() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1524 var found = false; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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()) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1528 found = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1529 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1530 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1531 return found; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1532 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1533 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1534 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1535 // process_draw_tasks |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1536 // |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1538 // draw task. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1539 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1540 function process_draw_tasks() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1541 var delay = draw_delay; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1542 draw_timer = null; |
cb8a2242bf03
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 |
cb8a2242bf03
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()) { |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1546 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1547 //get next task |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1549 drawable.task.run(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1550 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1551 //allow UI updates between tasks |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1552 draw_timer = window.setTimeout("process_draw_tasks()", delay); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1553 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1554 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1555 // |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1557 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1558 // Call process_draw_tasks after a short delay. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1559 // The delay serves to group multiple redundant events. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1560 // Should be set as event handler for onscroll and onresize. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1561 // |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1563 //reset the timer |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1567 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1568 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1569 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1570 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1571 // add_draw_task |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1572 // |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1579 task.run(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1580 } else { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1582 //reset timer |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1585 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1586 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1587 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1588 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1589 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1590 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1591 // start Alphabet object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1592 //====================================================================== |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1594 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1597 if (generate_background) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1598 background = []; |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1602 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1603 this.name = alphabet.name; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1604 this.like = (alphabet.like != null ? alphabet.like.toUpperCase() : null); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1605 this.ncore = alphabet.ncore; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1606 this.symbols = alphabet.symbols; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1607 this.background = background; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1609 this.encode = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1610 this.encode2core = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1611 this.complement = {}; |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1616 var s, sym; |
cb8a2242bf03
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") { |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1622 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1623 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1624 }; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1628 } |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1631 var s, sym; |
cb8a2242bf03
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") { |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1635 array[sym] = index; |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
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') { |
cb8a2242bf03
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; |
cb8a2242bf03
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') { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1642 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1643 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1644 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1645 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1646 } |
cb8a2242bf03
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 |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1653 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1654 // map ambigous symbols to index |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1655 ambigs = {}; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1660 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1661 // determine complements |
cb8a2242bf03
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++) { |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1666 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1667 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1668 next_symbol: |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1670 complement = ""; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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)]]; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1675 } |
cb8a2242bf03
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(""); |
cb8a2242bf03
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") { |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1679 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1680 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1681 // determine case insensitivity |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1686 loop: |
cb8a2242bf03
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++) { |
cb8a2242bf03
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; |
cb8a2242bf03
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') { |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1692 break loop; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1693 } |
cb8a2242bf03
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') { |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1697 break loop; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1698 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1699 } |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1701 if (aliases != null) { |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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') { |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1707 break loop; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1708 } |
cb8a2242bf03
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') { |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1712 break loop; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1713 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1714 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1715 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1716 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1717 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1718 } |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1721 var seen, out; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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 = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1726 seen = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1727 out = []; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1729 sym = sym.toUpperCase(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1730 aliases = aliases.toUpperCase(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1731 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1732 seen[sym] = true; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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)]) { |
cb8a2242bf03
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; |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1737 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1738 } |
cb8a2242bf03
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(""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1740 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1741 }; |
cb8a2242bf03
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 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1744 return this.name; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1745 }; |
cb8a2242bf03
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 |
cb8a2242bf03
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() { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1749 }; |
cb8a2242bf03
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 |
cb8a2242bf03
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() { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1753 }; |
cb8a2242bf03
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 |
cb8a2242bf03
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() { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1757 }; |
cb8a2242bf03
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 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1760 return this.ncore; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1761 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1762 // return the count of all alphabet symbols |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1763 Alphabet.prototype.get_size_full = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1764 return this.symbols.length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1765 }; |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1768 "use strict"; |
cb8a2242bf03
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) { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1771 } |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1773 }; |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1776 "use strict"; |
cb8a2242bf03
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) { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1779 } |
cb8a2242bf03
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]; |
cb8a2242bf03
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 : ""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1782 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1783 // return the name for the given alphabet index |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1784 Alphabet.prototype.get_name = function(alph_index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1785 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1786 var sym; |
cb8a2242bf03
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) { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1789 } |
cb8a2242bf03
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]; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1792 }; |
cb8a2242bf03
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 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1795 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1796 return this.like; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1797 }; |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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") { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1803 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1804 return -1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1805 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1806 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1807 // return a string containing the core symbols |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1808 Alphabet.prototype.get_symbols = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1809 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1811 core_symbols = ""; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1814 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1815 return core_symbols; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1816 }; |
cb8a2242bf03
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 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1819 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1820 return !this.genbg; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1821 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1822 // get the background frequency for the index |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1823 Alphabet.prototype.get_bg_freq = function(alph_index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1824 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1830 freq = 0; |
cb8a2242bf03
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; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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)]]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1834 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1835 return freq; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1836 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1837 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1838 throw new Error("The alphabet index is out of range."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1839 }; |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1842 "use strict"; |
cb8a2242bf03
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) { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1845 } |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1847 return "black"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1848 } |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1850 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1851 // get the rgb componets of the colour at the index |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1852 Alphabet.prototype.get_rgb = function(alph_index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1853 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1854 if (alph_index < 0 || alph_index >= this.symbols.length) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1855 throw new Error("BAD_ALPHABET_INDEX"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1856 } |
cb8a2242bf03
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") { |
cb8a2242bf03
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}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1859 } |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1865 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1866 // convert a symbol into the index |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1867 Alphabet.prototype.get_index = function(letter) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1868 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1869 var alph_index; |
cb8a2242bf03
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]; |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1872 return -1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1873 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1874 return alph_index; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1875 }; |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1878 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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]; |
cb8a2242bf03
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") { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1883 } |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1885 comprise_list = []; |
cb8a2242bf03
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") { |
cb8a2242bf03
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++) { |
cb8a2242bf03
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)]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1889 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1890 } else { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1892 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1893 return comprise_list; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1894 }; |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1897 var alph_index; |
cb8a2242bf03
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]; |
cb8a2242bf03
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; |
cb8a2242bf03
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()) { |
cb8a2242bf03
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()); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1902 } else { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1904 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1905 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1906 // compare 2 alphabets |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1908 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
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)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1912 return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1913 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1914 // second shortcircuit if it's the same object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1915 if (this === other) return true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1916 // compare |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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]; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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 || |
cb8a2242bf03
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" && |
cb8a2242bf03
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))) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1929 return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1930 } |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1933 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1934 return true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1935 }; |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1938 var seen_set = {}; |
cb8a2242bf03
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; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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]; |
cb8a2242bf03
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; |
cb8a2242bf03
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]; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1947 // check complement |
cb8a2242bf03
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) { |
cb8a2242bf03
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]) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1950 complement_same = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1951 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1952 } else if (sub_symbol.complement != null || super_symbol.complement != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1953 complement_same = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1954 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1955 } |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1957 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1958 // convert a sequence to its reverse complement |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1959 Alphabet.prototype.invcomp_seq = function(seq) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1960 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1963 syms = seq.split(""); |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]]; |
cb8a2242bf03
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") { |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1968 } |
cb8a2242bf03
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]; |
cb8a2242bf03
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") { |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1972 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1973 syms[i] = this.symbols[comp_e_sym].symbol; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1974 } |
cb8a2242bf03
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(""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1976 }; |
cb8a2242bf03
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 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1979 "use strict"; |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1982 out = "\""; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1985 if (c == "\"") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1986 out += "\\\""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1987 } else if (c == "/") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1988 out += "\\/"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1989 } else if (c == "\\") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1990 out += "\\\\"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1991 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1992 out += c; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1993 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1994 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1995 out += "\""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1996 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1997 } |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1999 var out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2000 out = sym.symbol; |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2003 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2004 if (typeof sym.colour === "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2005 out += " " + sym.colour; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2006 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2007 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2008 } |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2010 out = ""; |
cb8a2242bf03
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 |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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) { |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2016 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2017 } |
cb8a2242bf03
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 |
cb8a2242bf03
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++) { |
cb8a2242bf03
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") { |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2022 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2023 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2024 // output ambiguous symbols that have comprising characters |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2025 for (i = this.ncore; i < this.symbols.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2026 if (this.symbols[i].equals.length == 0) break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2027 out += symbol_as_text(this.symbols[i]) + " = " + this.symbols[i].equals + "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2028 if (typeof this.symbols[i].aliases === "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2029 for (j = 0; j < this.symbols[i].aliases.length; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2030 if (this.symbols[i].aliases.charAt(j) == this.symbols[i].symbol) continue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2031 out += this.symbols[i].aliases.charAt(j) + " = " + this.symbols[i].equals + "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2032 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2033 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2034 } |
cb8a2242bf03
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 |
cb8a2242bf03
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++) { |
cb8a2242bf03
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") { |
cb8a2242bf03
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++) { |
cb8a2242bf03
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; |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2041 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2042 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2043 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2044 // output gap symbols |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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"; |
cb8a2242bf03
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") { |
cb8a2242bf03
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++) { |
cb8a2242bf03
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; |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2052 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2053 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2054 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2055 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2056 }; |
cb8a2242bf03
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 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2059 "use strict"; |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2062 out = "\""; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2065 if (c == "\"") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2066 out += "\\\""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2067 } else if (c == "/") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2068 out += "\\/"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2069 } else if (c == "\\") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2070 out += "\\\\"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2071 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2072 out += c; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2073 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2074 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2075 out += "\""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2076 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2077 } |
cb8a2242bf03
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)) { |
cb8a2242bf03
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"; |
cb8a2242bf03
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)) { |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2082 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2083 return "ALPHABET" + |
cb8a2242bf03
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) : "") + |
cb8a2242bf03
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" + |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2087 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2088 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2089 |
cb8a2242bf03
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 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2092 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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"); |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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)")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2099 row.appendChild(th); |
cb8a2242bf03
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"); |
cb8a2242bf03
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")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2102 row.appendChild(th); |
cb8a2242bf03
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"); |
cb8a2242bf03
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()) { |
cb8a2242bf03
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")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2106 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2107 row.appendChild(th); |
cb8a2242bf03
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 |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2114 } |
cb8a2242bf03
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)); |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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(' '))); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2119 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2120 row.appendChild(td); |
cb8a2242bf03
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"); |
cb8a2242bf03
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) { |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2124 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2125 row.appendChild(td); |
cb8a2242bf03
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"); |
cb8a2242bf03
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) { |
cb8a2242bf03
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)); |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2130 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2131 row.appendChild(td); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2132 } |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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)")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2137 row.appendChild(th); |
cb8a2242bf03
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"); |
cb8a2242bf03
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")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2140 row.appendChild(th); |
cb8a2242bf03
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"); |
cb8a2242bf03
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")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2143 row.appendChild(th); |
cb8a2242bf03
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 |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2150 } |
cb8a2242bf03
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)); |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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(' '))); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2155 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2156 row.appendChild(td); |
cb8a2242bf03
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"); |
cb8a2242bf03
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) { |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2160 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2161 row.appendChild(td); |
cb8a2242bf03
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"); |
cb8a2242bf03
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(''); |
cb8a2242bf03
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++) { |
cb8a2242bf03
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(' ')); |
cb8a2242bf03
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"); |
cb8a2242bf03
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])); |
cb8a2242bf03
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])); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2169 td.appendChild(sym); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2170 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2171 row.appendChild(td); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2172 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2173 return table; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2174 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2175 |
cb8a2242bf03
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 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2178 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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"; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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, "\\\\"); |
cb8a2242bf03
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, "\\("); |
cb8a2242bf03
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, "\\)"); |
cb8a2242bf03
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); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2188 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2189 out += ">> def\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2190 out += "/mutedColourDict <<\n"; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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, "\\\\"); |
cb8a2242bf03
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, "\\("); |
cb8a2242bf03
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, "\\)"); |
cb8a2242bf03
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)); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2198 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2199 out += ">> def\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2200 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2201 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2202 |
cb8a2242bf03
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 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2205 "use strict"; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2207 return this.name; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2208 } else { |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2210 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2211 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2212 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2213 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2214 // Helper functions |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2215 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2216 |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2219 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2220 var xyzHelper, labHelper; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2221 // XYZ helper |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2222 xyzHelper = function(value) { |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2226 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2227 value /= 12.92; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2228 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2229 value *= 100; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2230 return value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2231 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2232 // lab helper |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2233 labHelper = function(value) { |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2236 } else { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2238 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2239 return value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2240 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2241 // convert into XYZ colourspace |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2242 var c1, c2, c3; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2243 if (typeof rgb == "number") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2244 c1 = xyzHelper(((rgb >> 16) & 0xFF) / 255.0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2245 c2 = xyzHelper(((rgb >> 8) & 0xFF) / 255.0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2246 c3 = xyzHelper((rgb & 0xFF) / 255.0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2247 } else { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2251 } |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2263 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2264 |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2267 // achromatic (grey) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2268 var r = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2269 var g = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2270 var b = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2271 if (sat != 0) { |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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)); |
cb8a2242bf03
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))); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2278 if (i == 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2279 r = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2280 g = t; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2281 b = p; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2283 r = q; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2284 g = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2285 b = p; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2287 r = p; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2288 g = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2289 b = t; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2291 r = p; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2292 g = q; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2293 b = value; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2295 r = t; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2296 g = p; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2297 b = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2298 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2299 r = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2300 g = p; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2301 b = q; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2302 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2303 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2304 if (output_object) { |
cb8a2242bf03
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}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2306 } else { |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2308 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2309 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2310 |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
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)); |
cb8a2242bf03
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)); |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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... |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2320 var dh = 0; |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2324 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2325 var first = dl; |
cb8a2242bf03
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)); |
cb8a2242bf03
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)); |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2329 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2330 |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2333 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2339 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2340 r = rgb.red; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2341 g = rgb.green; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2342 b = rgb.blue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2343 } |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2346 delta = max - min; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2348 if (max == min) { |
cb8a2242bf03
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) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2350 s = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2351 } else { |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2354 } else { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2356 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2357 if (max == r) { |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2362 } else { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2364 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2365 h /= 6; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2366 } |
cb8a2242bf03
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}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2368 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2369 |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2372 "use strict"; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2374 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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)) { |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2380 return q; |
cb8a2242bf03
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)) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2383 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2384 return p; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2385 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2386 } |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2389 // achromatic (grayscale) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2390 r = hsl.l; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2391 g = hsl.l; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2392 b = hsl.l; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2393 } else { |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2396 } else { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2398 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2399 p = (2 * hsl.l) - q; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2400 r = _hue(p, q, hsl.h + (1.0 / 3.0)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2401 g = _hue(p, q, hsl.h); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2402 b = _hue(p, q, hsl.h - (1.0 / 3.0)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2403 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2404 if (output_object) { |
cb8a2242bf03
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}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2406 } else { |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2408 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2409 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2410 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2412 "use strict"; |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2416 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2417 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2418 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2419 // end Alphabet object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2420 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2421 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2422 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2423 // start StandardAlphabet object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2424 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2425 |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
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) { |
cb8a2242bf03
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]); |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2432 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2433 StandardAlphabet.prototype = Alphabet.prototype; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2434 StandardAlphabet.prototype.constructor = StandardAlphabet; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2435 |
cb8a2242bf03
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. |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
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() { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2441 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2442 |
cb8a2242bf03
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. |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
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() { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2448 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2449 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2450 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2451 // end StandardAlphabet object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2452 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2453 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2454 // A collection of standard alphabets. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2455 var AlphStd = { |
cb8a2242bf03
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", { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2457 "name": "RNA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2458 "like": "RNA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2459 "ncore": 4, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2460 "symbols": [ |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2465 "aliases": "T"}, |
cb8a2242bf03
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."}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2477 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2478 }), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2479 DNA: new StandardAlphabet(2, "DNA", { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2480 "name": "DNA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2481 "like": "DNA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2482 "ncore": 4, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2483 "symbols": [ |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2488 "aliases": "U"}, |
cb8a2242bf03
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."}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2500 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2501 }), |
cb8a2242bf03
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", { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2503 "name": "Protein", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2504 "like": "PROTEIN", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2505 "ncore": 20, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2506 "symbols": [ |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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": "*."}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"}, |
cb8a2242bf03
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"} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2531 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2532 }) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2533 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2534 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2535 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2536 // start Symbol object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2537 //====================================================================== |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2539 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2540 //variable prototype |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2542 this.scale = scale; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2544 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2545 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2546 Symbol.prototype.get_symbol = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2547 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2548 return this.symbol; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2549 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2550 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2552 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2553 return this.scale; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2554 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2555 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2557 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2558 return this.colour; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2559 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2560 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2562 "use strict"; |
cb8a2242bf03
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) + "%"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2564 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2565 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2567 "use strict"; |
cb8a2242bf03
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()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2569 return -1; |
cb8a2242bf03
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()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2571 return 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2572 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2573 return 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2574 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2575 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2576 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2577 // end Symbol object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2578 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2579 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2580 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2581 // start Pspm object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2582 //====================================================================== |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2584 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2587 name = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2588 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2589 this.name = name; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2590 //construct |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2592 // copy constructor |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2601 this.pspm = []; |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2603 this.pspm[row] = []; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2606 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2607 } |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2609 this.pssm = []; |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2611 this.pspm[row] = []; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2614 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2615 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2616 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2617 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2618 // check parameters |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2619 if (ltrim == null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2620 ltrim = 0; |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2623 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2624 if (rtrim == null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2625 rtrim = 0; |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2628 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2629 if (nsites != null) { |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2633 nsites = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2634 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2635 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2636 if (evalue != null) { |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2638 if (evalue < 0) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2640 } |
cb8a2242bf03
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") { |
cb8a2242bf03
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)$/; |
cb8a2242bf03
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)) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2645 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2646 } else { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2648 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2649 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2650 // set properties |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2651 this.name = name; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2652 this.alt = alt; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2653 this.nsites = nsites; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2654 this.evalue = evalue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2655 this.ltrim = ltrim; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2656 this.rtrim = rtrim; |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2658 // string constructor |
cb8a2242bf03
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); |
cb8a2242bf03
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"]; |
cb8a2242bf03
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"]; |
cb8a2242bf03
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"]; |
cb8a2242bf03
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) { |
cb8a2242bf03
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) { |
cb8a2242bf03
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"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2666 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2667 this.evalue = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2668 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2669 } |
cb8a2242bf03
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) { |
cb8a2242bf03
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") { |
cb8a2242bf03
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"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2673 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2674 this.nsites = 20; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2675 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2676 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2677 } else { |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2682 this.nsites = 20; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2683 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2684 if (this.evalue == null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2685 this.evalue = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2686 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2687 this.pspm = []; |
cb8a2242bf03
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 |
cb8a2242bf03
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++) { |
cb8a2242bf03
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) { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2692 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2693 this.pspm[row] = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2694 row_sum = 0; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2698 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2699 delta = 0.1; |
cb8a2242bf03
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) || |
cb8a2242bf03
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)) { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2703 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2704 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2705 // copy pssm |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2706 if (pssm != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2707 this.pssm = []; |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2709 this.pssm[row] = []; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2712 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2713 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2714 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2715 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2716 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2717 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2718 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2720 "use strict"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2722 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2723 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2725 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2727 //reverse |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2728 x = 0; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2730 while (x < y) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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]; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2734 x++; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2735 y--; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2736 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2737 // reverse pssm (if defined) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2738 if (typeof this.pssm !== "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2739 //reverse |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2740 x = 0; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2742 while (x < y) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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]; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2746 x++; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2747 y--; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2748 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2749 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2750 //swap triming |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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... |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2755 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2756 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2758 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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()) { |
cb8a2242bf03
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."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2762 } |
cb8a2242bf03
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()) { |
cb8a2242bf03
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."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2765 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2766 // reverse motif |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2767 this.reverse(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2768 //complement |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2774 temp = row[i]; |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2776 row[c] = temp; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2777 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2778 } |
cb8a2242bf03
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) |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2781 //complement |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2787 temp = row[i]; |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2789 row[c] = temp; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2790 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2791 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2792 } |
cb8a2242bf03
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... |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2794 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2795 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2797 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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()) { |
cb8a2242bf03
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."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2801 } |
cb8a2242bf03
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]; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2806 stack = []; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2810 continue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2811 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2812 stack.push(sym); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2813 } |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2815 return stack; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2816 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2817 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2818 Pspm.prototype.get_stack_ic = function(position, alphabet) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2819 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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()) { |
cb8a2242bf03
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."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2823 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2824 row = this.pspm[position]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2825 H = 0; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2828 continue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2829 } |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2831 } |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2833 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2834 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2836 "use strict"; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2838 return 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2839 } |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2841 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2842 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2844 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2846 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2847 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2849 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2851 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2852 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2854 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2855 return this.ltrim; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2856 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2857 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2859 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2860 return this.rtrim; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2861 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2862 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2863 Pspm.prototype.as_best_match = function(alphabet) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2864 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2866 var i, j; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2867 match = ""; |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2869 best_index = 0; |
cb8a2242bf03
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); |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2874 best_odds = odds; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2875 best_index = j; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2876 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2877 } |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2879 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2880 return match; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2881 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2882 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2884 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2886 var i, j; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2887 text = ""; |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2889 if (i !== 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2890 text += "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2891 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2892 for (j = 0; j < this.alph_length; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2893 if (j !== 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2894 text += " "; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2895 } |
cb8a2242bf03
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]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2897 count_text = "" + count; |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2901 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2902 text += count_text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2903 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2904 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2905 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2906 return text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2907 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2908 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2910 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2911 var text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2912 var i, j; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2913 text = ""; |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2915 if (i !== 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2916 text += "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2917 } |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2919 if (j !== 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2920 text += " "; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2921 } |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2923 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2924 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2925 return text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2926 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2927 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2929 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2931 me = this; |
cb8a2242bf03
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") { |
cb8a2242bf03
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)) { |
cb8a2242bf03
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."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2935 } |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2937 pseudo = 0.01; |
cb8a2242bf03
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) { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2940 } |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2942 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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]; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2948 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2949 } else { |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2951 "use strict"; |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2953 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2954 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2955 out = ""; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2958 if (col !== 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2959 out += " "; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2960 } |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2965 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2966 out += score_text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2967 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2968 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2969 out += "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2970 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2971 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2972 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2973 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2974 Pspm.prototype.as_pspm = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2975 "use strict"; |
cb8a2242bf03
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 + |
cb8a2242bf03
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 + |
cb8a2242bf03
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" ? |
cb8a2242bf03
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" + |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2981 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2982 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2984 "use strict"; |
cb8a2242bf03
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 + |
cb8a2242bf03
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 + |
cb8a2242bf03
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" ? |
cb8a2242bf03
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" + |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2990 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2991 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2992 Pspm.prototype.as_meme = function(options) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2993 var with_header, with_pspm, with_pssm, version, alphabet, bg_source, pseudocount, strands; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2994 var out, alen, i; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2995 // get the options |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2997 options = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2998 } |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3003 if (with_header) { |
cb8a2242bf03
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"])) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3005 version = options["version"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3006 } else if (typeof options["version"] === "number") { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3008 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3009 version = "4"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3010 } |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3012 strands = 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3013 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3014 strands = 2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3015 } |
cb8a2242bf03
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") { |
cb8a2242bf03
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"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3018 } else { |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3020 } |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3023 alphabet = options["alphabet"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3024 } else { |
cb8a2242bf03
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."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3026 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3027 } |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3029 out = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3030 if (with_header) { |
cb8a2242bf03
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"; |
cb8a2242bf03
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"; |
cb8a2242bf03
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 |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3035 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3036 out += "Background letter frequencies (from " + bg_source + "):\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3037 alen = alphabet.get_size_core(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3038 for (i = 0; i < alen; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3039 if (i !== 0) { |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3041 out += "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3042 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3043 out += " "; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3044 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3045 } |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3047 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3048 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3049 out += "\n\n"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3051 if (with_pssm) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3052 out += "\n\n"; |
cb8a2242bf03
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"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3054 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3055 if (with_pspm) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3056 out += "\n\n"; |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3058 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3059 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3060 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3061 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3063 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3065 str = ""; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3069 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3070 return str; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3071 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3072 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3074 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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)$/; |
cb8a2242bf03
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+/); |
cb8a2242bf03
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 = |
cb8a2242bf03
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;) { |
cb8a2242bf03
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("="); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3081 if (eqpos != -1) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3086 i += 3; |
cb8a2242bf03
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) { |
cb8a2242bf03
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, "="); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3089 i += 2; |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3092 i += 2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3093 } else { |
cb8a2242bf03
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, "="); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3095 i++; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3096 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3097 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3098 i++; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3099 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3100 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3101 properties = {}; |
cb8a2242bf03
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) { |
cb8a2242bf03
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) { |
cb8a2242bf03
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. "+ |
cb8a2242bf03
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(" ")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3106 } |
cb8a2242bf03
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] !== "=") { |
cb8a2242bf03
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 " + |
cb8a2242bf03
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]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3110 } |
cb8a2242bf03
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(); |
cb8a2242bf03
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]; |
cb8a2242bf03
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)) { |
cb8a2242bf03
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 '" + |
cb8a2242bf03
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 + "'"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3116 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3117 properties[prop] = num; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3118 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3119 return properties; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3120 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3121 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3123 "use strict"; |
cb8a2242bf03
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, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3126 j, prob; |
cb8a2242bf03
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; |
cb8a2242bf03
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/); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3129 first_line = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3130 line_num = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3131 col_num = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3132 alph_length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3133 motif_length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3134 nsites; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3135 evalue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3136 pspm = []; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3140 continue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3141 } |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3143 if (first_line) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3144 first_line = false; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3146 if (match !== null) { |
cb8a2242bf03
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]); |
cb8a2242bf03
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")) { |
cb8a2242bf03
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"]); |
cb8a2242bf03
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) { |
cb8a2242bf03
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" + |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3153 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3154 } |
cb8a2242bf03
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")) { |
cb8a2242bf03
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"]); |
cb8a2242bf03
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) { |
cb8a2242bf03
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 " + |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3160 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3161 } |
cb8a2242bf03
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")) { |
cb8a2242bf03
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"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3164 if (nsites <= 0) { |
cb8a2242bf03
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 " + |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3167 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3168 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3169 if (props.hasOwnProperty("e")) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3170 evalue = props["e"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3171 if (evalue < 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3172 throw new Error("PSPM property evalue should be " + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3173 "non-negative but got " + evalue); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3174 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3175 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3176 continue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3177 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3178 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3179 pspm[line_num] = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3180 col_num = 0; |
cb8a2242bf03
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+/); |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]); |
cb8a2242bf03
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) { |
cb8a2242bf03
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] + "'"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3186 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3187 pspm[line_num][col_num] = prob; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3188 col_num++; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3189 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3190 line_num++; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3191 } |
cb8a2242bf03
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") { |
cb8a2242bf03
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) { |
cb8a2242bf03
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 " + |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3196 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3197 } else { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3199 } |
cb8a2242bf03
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") { |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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 " + |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3205 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3206 } |
cb8a2242bf03
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++) { |
cb8a2242bf03
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) { |
cb8a2242bf03
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 " + |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3211 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3212 } |
cb8a2242bf03
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, |
cb8a2242bf03
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}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3215 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3216 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3217 // end Pspm object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3218 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3219 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3220 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3221 // start Logo object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3222 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3223 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3225 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3226 this.alphabet = alphabet; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3227 this.fine_text = ""; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3233 this.pspm_list = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3234 this.pspm_column = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3235 this.rows = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3236 this.columns = 0; |
cb8a2242bf03
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") { |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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 : ""); |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3248 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3249 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3250 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3252 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3253 var col; |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3255 column = 0; |
cb8a2242bf03
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) { |
cb8a2242bf03
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."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3258 } |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3261 this.rows++; |
cb8a2242bf03
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(); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3264 this.columns = col; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3265 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3266 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3267 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3268 Logo.prototype.get_columns = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3269 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3270 return this.columns; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3271 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3272 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3274 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3276 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3277 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3279 "use strict"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3281 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3282 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3284 "use strict"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3286 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3287 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3288 Logo.prototype.get_xlate_columns = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3289 "use strict"; |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3291 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3292 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3294 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3295 return this.rows; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3296 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3297 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3299 "use strict"; |
cb8a2242bf03
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) { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3302 } |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3304 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3305 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3307 "use strict"; |
cb8a2242bf03
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) { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3310 } |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3312 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3313 |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3316 out = ""; |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3318 out += "\nStartLine\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3319 // Indent |
cb8a2242bf03
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++) { |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3322 } |
cb8a2242bf03
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]; |
cb8a2242bf03
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) { |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3326 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3327 for (pos = 0; pos < pspm.get_motif_length(); pos++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3328 if (pos != 0 && pos == pspm.get_left_trim()) { // enable full colour |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3329 out += "DrawTrimEdge\nRestoreColour\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3330 } else if (pos == (pspm.get_motif_length() - pspm.get_right_trim())) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3331 out += "MuteColour\n" + pspm.get_right_trim() + " DrawTrimBg\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3332 } |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3338 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3339 if (errbars) { |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3341 } |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3343 } |
cb8a2242bf03
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()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3345 out += "RestoreColour\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3346 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3347 out += "EndLine\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3348 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3349 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3350 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3351 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3353 "use strict"; |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3357 |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3361 options = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3362 } |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3366 } else { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3368 } |
cb8a2242bf03
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") { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3371 } else { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3373 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3374 now = new Date(); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3377 var values = { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3378 "LOGOHEIGHT": height, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3379 "LOGOWIDTH": width, |
cb8a2242bf03
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), |
cb8a2242bf03
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), |
cb8a2242bf03
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), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3383 "CHARSPERLINE": this.columns, |
cb8a2242bf03
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(), |
cb8a2242bf03
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"), |
cb8a2242bf03
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(), |
cb8a2242bf03
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), |
cb8a2242bf03
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), |
cb8a2242bf03
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 : ""), |
cb8a2242bf03
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), |
cb8a2242bf03
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 : ""), |
cb8a2242bf03
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"), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3393 "SSC": ssc, |
cb8a2242bf03
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), |
cb8a2242bf03
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), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3396 "ERRBAR": errbars, |
cb8a2242bf03
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), |
cb8a2242bf03
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), |
cb8a2242bf03
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), |
cb8a2242bf03
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"), |
cb8a2242bf03
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), |
cb8a2242bf03
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), |
cb8a2242bf03
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), |
cb8a2242bf03
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), |
cb8a2242bf03
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), |
cb8a2242bf03
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(), |
cb8a2242bf03
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) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3408 }; |
cb8a2242bf03
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! |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3411 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3412 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3413 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3414 // end Logo object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3415 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3416 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3417 // calculate the exact size (in pixels) of an object drawn on the |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3418 // canvas assuming that the background of the canvas is transparent. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3419 function canvas_bounds(ctx, cwidth, cheight) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3420 "use strict"; |
cb8a2242bf03
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, |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3423 |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3426 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3427 // set initial values |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3430 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3431 // Find the top-most line with a non-transparent pixel |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3432 for (r = 0; r < cheight; r++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3433 for (c = 0; c < cwidth; c++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3434 if (data[r * cwidth * 4 + c * 4 + 3]) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3435 top_line = r; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3436 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3437 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3438 } |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3440 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3441 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3442 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3443 |
cb8a2242bf03
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... |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3446 |
cb8a2242bf03
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 |
cb8a2242bf03
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--) { |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3451 bottom_line = r; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3452 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3453 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3454 } |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3456 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3457 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3458 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3459 // calculate height |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3461 |
cb8a2242bf03
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 |
cb8a2242bf03
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++) { |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3466 left_line = c; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3467 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3468 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3469 } |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3471 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3472 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3473 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3474 |
cb8a2242bf03
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 |
cb8a2242bf03
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--) { |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3479 right_line = c; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3480 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3481 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3482 } |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3484 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3485 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3486 } |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3488 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3489 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3490 //return the bounds |
cb8a2242bf03
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, |
cb8a2242bf03
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, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3493 height: txt_height}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3494 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3495 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3496 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3497 // start RasterizedAlphabet |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3498 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3499 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3500 // Rasterize Alphabet |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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') |
cb8a2242bf03
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). |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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). |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3510 "use strict"; |
cb8a2242bf03
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, |
cb8a2242bf03
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, |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3514 //variable prototypes |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3515 this.alphabet = alphabet; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3517 this.sym_cache = {}; |
cb8a2242bf03
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 = []; |
cb8a2242bf03
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 = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3520 // size of canvas |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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'); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3532 ctx.font = font; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3533 ctx.textAlign = "center"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3535 // list of widths |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3536 widths = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3537 sizes = []; |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3540 // reset the canvas |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3545 //measure |
cb8a2242bf03
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); |
cb8a2242bf03
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!"); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3549 sizes[i] = size; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3550 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3551 //sort the widths |
cb8a2242bf03
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;}); |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3556 widths.pop(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3557 widths.shift(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3558 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3559 //calculate average width |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3560 avg_width = 0; |
cb8a2242bf03
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) { |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3563 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3564 avg_width /= widths.length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3565 // calculate the target width |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3566 target_width = width * this.scale * 2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3567 // calculate scales |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3570 size = sizes[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3571 // calculate scale |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3573 // estimate scaled height |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
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"); |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3579 // calculate the middle |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3581 // calculate the baseline |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3585 ctx.font = font; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3587 ctx.textAlign = "center"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3589 ctx.save(); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3591 // draw the text |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3593 ctx.restore(); |
cb8a2242bf03
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)}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3595 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3596 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3597 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3599 return this.alphabet; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3600 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3601 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3603 return this.scale; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3604 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3605 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3607 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3610 image = entry.image; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3611 size = entry.size; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3613 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3614 |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3619 // measure the text |
cb8a2242bf03
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'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3621 image_ctx.save(); |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3624 image_ctx.restore(); |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3628 // draw the text |
cb8a2242bf03
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'); |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
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"; |
cb8a2242bf03
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"; |
cb8a2242bf03
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)); |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3637 } else { |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3639 } |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3641 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3642 |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3647 // measure the text |
cb8a2242bf03
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'); |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3655 // draw the text |
cb8a2242bf03
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'); |
cb8a2242bf03
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; |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3660 } else { |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3666 // draw the text |
cb8a2242bf03
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'); |
cb8a2242bf03
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; |
cb8a2242bf03
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"; |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3672 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3673 this.scale_num_cache[num] = image; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3674 } else { |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3676 } |
cb8a2242bf03
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)) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3678 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3679 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3680 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3681 // end RasterizedAlphabet |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3682 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3683 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3684 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3685 // start LogoMetrics object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3686 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3687 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3689 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3691 //variable prototypes |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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"; |
cb8a2242bf03
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; |
cb8a2242bf03
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"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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"; |
cb8a2242bf03
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(); |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3729 } |
cb8a2242bf03
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) |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3735 } |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3739 } else { |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3742 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3743 |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3750 if (has_names) { |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3756 } else { |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3760 } |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3762 } |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3765 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3767 if (has_names) { |
cb8a2242bf03
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; |
cb8a2242bf03
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), |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3771 } else { |
cb8a2242bf03
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), |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3774 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3775 |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3784 } |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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) |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3789 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3790 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3791 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3792 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3793 // end LogoMetrics object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3794 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3795 |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3798 "use strict"; |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3802 if (!img.complete) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3803 return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3804 } |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3809 return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3810 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3811 // No other way of checking: assume it's ok. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3812 return true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3813 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3814 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3816 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3817 if (!ctx.fillText) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3818 return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3819 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3820 if (!ctx.measureText) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3821 return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3822 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3823 return true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3824 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3825 |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3828 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3831 ctx.save(); |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3834 ctx.save(); |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3838 ctx.textAlign = "center"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3840 ctx.restore(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3841 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3843 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3844 //draw the axis tics |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3845 ctx.save(); |
cb8a2242bf03
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); |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3848 //draw the number |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3849 ctx.save(); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3852 ctx.restore(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3853 //draw the tic |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3857 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3858 ctx.restore(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3859 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3860 ctx.fillRect(metrics.y_tic_width - 2, 0, 2, metrics.stack_height) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3861 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3862 ctx.restore(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3863 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3864 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3866 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3867 ctx.save(); |
cb8a2242bf03
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)); |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3873 ctx.beginPath(); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3876 ctx.fill(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3877 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3878 ctx.restore(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3879 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3880 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3882 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3884 preferred_pad = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3885 sym_min = 5; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3886 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3887 ctx.save();//1 |
cb8a2242bf03
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); |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3890 sym = symbols[i]; |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3892 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3893 pad = preferred_pad; |
cb8a2242bf03
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) { |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3896 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3897 sym_height -= pad; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3898 |
cb8a2242bf03
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 |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3901 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3902 //draw |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3906 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3907 ctx.restore();//1 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3908 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3909 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3910 function draw_dashed_line(ctx, pattern, start, x1, y1, x2, y2) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3911 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3913 dx = x2 - x1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3914 dy = y2 - y1; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3919 lx = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3920 ly = []; |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3924 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3925 i = start; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3926 x = x1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3927 y = y1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3928 len = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3929 ctx.beginPath(); |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3932 x += lx[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3933 y += ly[i]; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3935 len += pattern[i]; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3937 x += lx[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3938 y += ly[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3939 len += pattern[i]; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3941 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3942 if (len < tlen) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3947 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3948 ctx.stroke(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3949 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3950 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3952 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3955 var line_x; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3956 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3957 ctx.save();//s8 |
cb8a2242bf03
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)"; |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3961 } |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3964 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3965 ctx.fillStyle = "rgb(51, 51, 51)"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3966 if (left_size > 0 && left_divider) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3967 line_x = (left_end * metrics.stack_width) - 0.5; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3968 draw_dashed_line(ctx, [3], 0, line_x, 0, line_x, metrics.stack_height); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3969 } |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3973 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3974 ctx.restore();//s8 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3975 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3976 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3977 function size_logo_on_canvas(logo, canvas, show_names, scale) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3978 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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)); |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3983 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3984 } |
cb8a2242bf03
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'), |
cb8a2242bf03
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); |
cb8a2242bf03
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") { |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3991 } else { |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3999 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4000 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4001 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4002 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4004 "use strict"; |
cb8a2242bf03
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, |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4007 ssc = false; |
cb8a2242bf03
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)); |
cb8a2242bf03
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); |
cb8a2242bf03
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'); |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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") { |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4017 } else { |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4019 scale = 1; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4028 } else { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4030 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4031 } |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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") { |
cb8a2242bf03
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 = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4036 } |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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) && |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4041 raster = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4042 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4043 if (raster == null) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4046 } |
cb8a2242bf03
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'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4048 ctx.save();//s1 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4050 ctx.save();//s2 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4051 ctx.save();//s7 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4052 //create margin |
cb8a2242bf03
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)); |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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))) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4059 ctx.save();//s4 |
cb8a2242bf03
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)); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4062 ctx.textAlign = "center"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4064 ctx.restore();//s4 |
cb8a2242bf03
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 + |
cb8a2242bf03
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))); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4067 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4068 //draw scale |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4070 ctx.save();//s5 |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
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 + |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4075 } |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
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(); |
cb8a2242bf03
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(); |
cb8a2242bf03
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; |
cb8a2242bf03
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()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4082 // no overlap |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4083 left_start = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4084 left_end = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4085 left_divider = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4086 } else { |
cb8a2242bf03
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()) { |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4089 } |
cb8a2242bf03
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()) { |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4092 left_divider = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4093 } |
cb8a2242bf03
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(); |
cb8a2242bf03
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(); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4097 left_start = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4098 left_end = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4099 left_divider = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4100 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4101 } |
cb8a2242bf03
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(); |
cb8a2242bf03
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()); |
cb8a2242bf03
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()); |
cb8a2242bf03
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; |
cb8a2242bf03
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()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4107 // no overlap |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4108 right_start = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4109 right_end = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4110 right_divider = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4111 } else { |
cb8a2242bf03
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()) { |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4114 right_divider = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4115 } |
cb8a2242bf03
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()) { |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4118 } |
cb8a2242bf03
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(); |
cb8a2242bf03
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(); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4122 right_start = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4123 right_end = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4124 right_divider = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4125 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4126 } |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4128 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4129 //draw letters |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4130 var xlate_col; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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()); |
cb8a2242bf03
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) { |
cb8a2242bf03
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())) { |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4139 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4140 } else { |
cb8a2242bf03
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())) { |
cb8a2242bf03
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 |
cb8a2242bf03
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)); |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4146 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4147 } |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4149 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4150 ctx.restore();//s5 |
cb8a2242bf03
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 |
cb8a2242bf03
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))) { |
cb8a2242bf03
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 |
cb8a2242bf03
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 + |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4156 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4157 ctx.save();//s6 |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4160 ctx.textAlign = "center"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4162 ctx.restore();//s6 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4164 } else { |
cb8a2242bf03
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 |
cb8a2242bf03
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 + |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4168 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4169 //if not the last row then add middle padding |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4170 if (pspm_i != (logo.get_rows() -1)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4171 ctx.translate(0, metrics.pad_middle); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4172 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4173 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4174 ctx.restore();//s7 |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4178 ctx.textAlign = "right"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4180 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4181 ctx.restore();//s2 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4182 ctx.restore();//s1 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4183 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4184 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4186 "use strict"; |
cb8a2242bf03
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"); |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4189 if (!canvas.getContext) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4190 return null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4191 } |
cb8a2242bf03
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'); |
cb8a2242bf03
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 |
cb8a2242bf03
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)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4195 return null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4196 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4197 //size the canvas |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4203 return canvas; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4204 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4205 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4207 "use strict"; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4210 return logo; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4211 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4212 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4214 "use strict"; |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4219 } else { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4222 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4223 return logo; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4224 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4225 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4226 /* |
cb8a2242bf03
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. |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4230 * to replace it. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4231 * |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4234 */ |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4236 "use strict"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4238 if (!image) { |
cb8a2242bf03
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 + ")"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4240 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4241 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4242 //if the image has loaded then there is no reason to use the canvas |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4243 if (image_ok(image)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4244 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4245 } |
cb8a2242bf03
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. |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4248 if (canvas === null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4249 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4250 } |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4255 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4256 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4257 /* |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4260 */ |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4262 "use strict"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4264 if (!replace_id) { |
cb8a2242bf03
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 + ")"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4266 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4267 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4268 //found the element! |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4270 if (canvas === null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4271 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4272 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4273 //draw the logo on the canvas |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4274 draw_logo_on_canvas(logo, canvas, null, scale); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4275 //replace the element with the canvas |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4276 element.parentNode.replaceChild(canvas, element); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4277 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4278 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4279 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4280 * Fast string trimming implementation found at |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4281 * http://blog.stevenlevithan.com/archives/faster-trim-javascript |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4282 * |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4285 * the whole string. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4286 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4287 function trim (str) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4288 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4289 var ws, i; |
cb8a2242bf03
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*/, ''); |
cb8a2242bf03
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; |
cb8a2242bf03
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))); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4294 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4295 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4296 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4297 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4298 // PRIVATE GLOBAL (uhoh) |
cb8a2242bf03
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 = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4300 |
cb8a2242bf03
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) { |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4303 "use strict"; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4305 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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)) { |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4311 return q; |
cb8a2242bf03
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)) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4314 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4315 return p; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4316 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4317 } |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4321 return hex; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4322 } |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4324 if (saturation == 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4325 // achromatic (grayscale) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4326 r = lightness; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4327 g = lightness; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4328 b = lightness; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4329 } else { |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4332 } else { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4334 } |
cb8a2242bf03
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; |
cb8a2242bf03
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)); |
cb8a2242bf03
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); |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4339 } |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4341 } |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4343 // check for override |
cb8a2242bf03
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) { |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4346 var sat = 100; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4347 var light = 50; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4352 } |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4354 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4355 |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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 + "\"]"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4359 var i; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4362 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4363 var swatches = document.querySelectorAll("div.legend_swatch[data-colour-index=\"" + index + "\"]"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4364 var picker; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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; |
cb8a2242bf03
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\"]"); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4369 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4370 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4371 |
cb8a2242bf03
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) { |
cb8a2242bf03
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") { |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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() { |
cb8a2242bf03
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; |
cb8a2242bf03
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.. |
cb8a2242bf03
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'); |
cb8a2242bf03
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'); |
cb8a2242bf03
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'; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4382 if (value_ok) { |
cb8a2242bf03
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. |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4385 var smile = ':)'; |
cb8a2242bf03
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; |
cb8a2242bf03
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;'; |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4391 doc_ele.offsetWidth; |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4394 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4395 return value_ok; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4396 })(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4397 } |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4400 var swatch; |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4407 picker.type = "color"; |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4411 }, false); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4413 picker.click(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4414 }, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4415 swatch.appendChild(picker); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4416 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4417 entry.appendChild(swatch); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4421 entry.appendChild(name); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4422 return entry; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4423 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4424 |
cb8a2242bf03
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) { |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4428 var step; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4430 step = 1; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4432 step = 2; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4434 step = 4; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4436 step = 10; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4438 step = 20; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4440 step = 40; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4442 step = 100; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4444 step = 200; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4446 step = 400; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4447 } else { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4449 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4450 var peroid; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4452 peroid = 1; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4454 peroid = 2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4455 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4456 peroid = 5; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4457 } |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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) + "%"; |
cb8a2242bf03
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"); |
cb8a2242bf03
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; |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4464 container.appendChild(tic); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4465 if (cycle == 0) { |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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; |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4470 container.appendChild(label); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4471 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4472 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4473 return container; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4474 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4475 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4477 var mouse; |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4481 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4482 mouse = { |
cb8a2242bf03
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, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4485 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4486 } |
cb8a2242bf03
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; |
cb8a2242bf03
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 - |
cb8a2242bf03
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) - |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4495 //in firefox 2. |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4501 return pos; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4502 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4503 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4505 "use strict"; |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4510 // validate needle positions |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4516 if (data.moveboth) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4518 if (data.isleft) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4520 left = pos; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4521 right = pos + size; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4522 } else { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4524 left = pos - size; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4525 right = pos; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4526 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4527 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4528 if (data.isleft) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4530 left = pos; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4531 } else { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4533 right = pos; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4534 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4535 } |
cb8a2242bf03
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 |
cb8a2242bf03
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) + "%"; |
cb8a2242bf03
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); |
cb8a2242bf03
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) + "%"; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4542 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4543 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4544 function _make_block_needle_drag_start_handler(isleft, data) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4545 return function (e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4546 data.isleft = isleft; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4550 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4551 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4552 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4554 return function (e) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4558 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4559 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4560 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4562 return function (e) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4564 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4565 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4566 |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
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'); |
cb8a2242bf03
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"); |
cb8a2242bf03
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)+ "%"; |
cb8a2242bf03
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'); |
cb8a2242bf03
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"); |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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."; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4580 vbar.appendChild(label); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4581 if (isleft) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4582 data.lneedle = vbar; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4583 data.llabel = label; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4584 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4585 data.rneedle = vbar; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4586 data.rlabel = label; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4587 } |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4589 return vbar; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4590 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4591 |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4599 if (is_stranded) { |
cb8a2242bf03
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"); |
cb8a2242bf03
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("+")); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4603 container.appendChild(plus); |
cb8a2242bf03
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) { |
cb8a2242bf03
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"); |
cb8a2242bf03
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("-")); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4608 container.appendChild(minus); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4609 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4610 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4611 var rule = document.createElement("div"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4612 rule.className = "block_rule"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4613 rule.style.width = ((show_len / max_len) * 100) + "%"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4614 container.appendChild(rule); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4616 var range_data = { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4617 "max": max_len, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4618 "len": show_len, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4619 "off": offset, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4620 "handler": range_handler, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4621 "container": container, |
cb8a2242bf03
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, |
cb8a2242bf03
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, |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4625 }; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4630 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4631 return container; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4632 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4633 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4634 function make_block_label(container, max_len, pos, length, message) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4635 "use strict"; |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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) + "%"; |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4640 container.appendChild(label); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4641 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4642 |
cb8a2242bf03
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, |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4645 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
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 : |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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) + "%"; |
cb8a2242bf03
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 : |
cb8a2242bf03
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"; |
cb8a2242bf03
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) + "%"; |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4663 // add to container |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4664 container.appendChild(block); |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4669 }; |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4674 } |
cb8a2242bf03
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 |
cb8a2242bf03
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"); |
cb8a2242bf03
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" + |
cb8a2242bf03
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"); |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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" + |
cb8a2242bf03
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" : ""); |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4692 return block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4693 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4694 |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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")); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4700 left = start - off; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4701 right = end - off; |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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 |
cb8a2242bf03
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) + "%"; |
cb8a2242bf03
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); |
cb8a2242bf03
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) + "%"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4711 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4712 |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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")); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4723 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4724 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4725 <script> |
cb8a2242bf03
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) { |
cb8a2242bf03
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) { |
cb8a2242bf03
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"); |
cb8a2242bf03
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))); |
cb8a2242bf03
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); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4732 return span; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4733 } |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4735 // create table |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4738 // create header |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4740 table.appendChild(thead); |
cb8a2242bf03
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); |
cb8a2242bf03
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()) { |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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, ""); |
cb8a2242bf03
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, ""); |
cb8a2242bf03
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, ""); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4752 } else { |
cb8a2242bf03
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, ""); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4757 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4758 // add alphabet entries |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4760 table.appendChild(tbody); |
cb8a2242bf03
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()) { |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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)); |
cb8a2242bf03
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)); |
cb8a2242bf03
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)); |
cb8a2242bf03
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)); |
cb8a2242bf03
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, "~"); |
cb8a2242bf03
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)); |
cb8a2242bf03
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)); |
cb8a2242bf03
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)); |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4775 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4776 } else { |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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)); |
cb8a2242bf03
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)); |
cb8a2242bf03
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)); |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4783 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4784 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4785 return table; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4786 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4787 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4788 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4789 <script> |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4792 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4794 this.logo = logo; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4795 this.canvas = canvas; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4796 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4797 |
cb8a2242bf03
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 () { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4800 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4801 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4802 function motif_pspm(index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4803 var motif, pwm, psm, name, ltrim, rtrim, nsites, evalue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4804 // get motif |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4806 // get motif paramters |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4807 pwm = motif["pwm"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4808 psm = motif["psm"]; |
cb8a2242bf03
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; |
cb8a2242bf03
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"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4811 // make pspm |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4813 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4814 |
cb8a2242bf03
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) { |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4817 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4818 |
cb8a2242bf03
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) { |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4821 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4822 |
cb8a2242bf03
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) { |
cb8a2242bf03
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({ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4825 "with_header": true, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4826 "with_pspm": true, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4827 "with_pssm": true, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4828 "version": data["version"], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4829 "alphabet": meme_alphabet, |
cb8a2242bf03
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) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4831 }); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4832 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4833 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4835 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4837 counter = {}; |
cb8a2242bf03
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"]; |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4840 sites = motif["sites"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4841 out = ""; |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4843 site = sites[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4844 seq = site["seq"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4845 sequence = sequences[seq]; |
cb8a2242bf03
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 |
cb8a2242bf03
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";} |
cb8a2242bf03
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"] + |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4850 out += site["match"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4851 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4852 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4853 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4854 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4855 function motif_raw(index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4856 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4859 out = ""; |
cb8a2242bf03
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++) { |
cb8a2242bf03
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";} |
cb8a2242bf03
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"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4863 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4864 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4865 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4866 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4868 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4872 node.id = ""; |
cb8a2242bf03
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"); |
cb8a2242bf03
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++) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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")) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4877 button.tabIndex = "0"; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4880 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4881 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4882 return node; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4883 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4884 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4886 var node; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4888 if (node === null) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4890 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4891 node.innerHTML = ""; |
cb8a2242bf03
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") { |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4894 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4895 node.appendChild(value); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4896 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4897 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4898 |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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, ""); |
cb8a2242bf03
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); |
cb8a2242bf03
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'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4904 canvas.height = 50; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4905 canvas.width = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4906 canvas.className = className; |
cb8a2242bf03
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); |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4909 return canvas; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4910 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4911 |
cb8a2242bf03
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) { |
cb8a2242bf03
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 = {}; |
cb8a2242bf03
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); |
cb8a2242bf03
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}); |
cb8a2242bf03
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)); |
cb8a2242bf03
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'); |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4920 canvas.height = 0; |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4923 } else { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4925 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4926 return canvas; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4927 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4928 |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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, ""); |
cb8a2242bf03
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); |
cb8a2242bf03
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'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4934 canvas.height = 200; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4935 canvas.width = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4936 canvas.className = className; |
cb8a2242bf03
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); |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4939 return canvas; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4940 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4941 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4943 var box; |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4945 box.tabIndex = 0; |
cb8a2242bf03
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"; |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4948 box.title = title; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4951 return box; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4952 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4953 |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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"); |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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++) { |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4961 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4962 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4963 } |
cb8a2242bf03
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"); |
cb8a2242bf03
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)); |
cb8a2242bf03
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))); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4967 sbox.appendChild(lbox); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4968 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4969 return sbox; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4970 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4971 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4972 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4973 // make_pv_text |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4974 // |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4976 /// |
cb8a2242bf03
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() { |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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")); |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
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")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4984 return pv_text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4985 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4986 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4988 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4989 var i, end; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4991 var rbody; |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4993 count = 20; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4994 } |
cb8a2242bf03
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"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4996 sites = motif["sites"]; |
cb8a2242bf03
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); |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4999 site = sites[i]; |
cb8a2242bf03
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"]]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5001 |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5011 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5012 return i; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5013 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5014 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5016 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5017 var region; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5018 region = this; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5020 // all sites created |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5022 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5023 } |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5026 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5027 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5028 |
cb8a2242bf03
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( |
cb8a2242bf03
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], |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5032 ); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5033 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5034 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5036 "use strict"; |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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") { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5044 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5045 div.appendChild(title); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5046 if (help_topic) { |
cb8a2242bf03
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")); |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5049 } |
cb8a2242bf03
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); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5052 th.appendChild(div); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5053 th.appendChild(divcp); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5054 if (nopad) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5055 th.className = "nopad"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5056 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5057 if (tag_class) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5059 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5060 row.appendChild(th); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5061 } |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5063 |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5066 |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5070 |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5074 |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5076 tbl.appendChild(thead); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5078 tbl.appendChild(tbody); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5079 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5080 rhead = thead.insertRow(thead.rows.length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5081 add_site_header(rhead, "", true); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5082 add_site_header(rhead, "Name", false, "pop_seq_name"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5083 add_site_header(rhead, "Strand", false, "pop_site_strand", "site_strand_title"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5084 add_site_header(rhead, "Start", false, "pop_site_start"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5085 add_site_header(rhead, make_pv_text(), false, "pop_site_pvalue"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5086 add_site_header(rhead, "", false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5087 add_site_header(rhead, "Sites", true, "pop_site_match"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5088 add_site_header(rhead, "", false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5089 |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5094 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5095 return outer_tbl; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5096 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5097 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5099 "use strict"; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5101 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5103 ev_re = /^(.*)e(.*)$/; |
cb8a2242bf03
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)) { |
cb8a2242bf03
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]); |
cb8a2242bf03
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]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5107 if (exp >= 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5108 return false; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5110 return true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5111 } else { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5113 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5114 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5115 return true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5116 } |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5118 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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"]) { |
cb8a2242bf03
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"]; |
cb8a2242bf03
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"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5124 } else { |
cb8a2242bf03
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"]); |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
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()) { |
cb8a2242bf03
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"); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5131 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5132 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5133 if (preview_rc) { |
cb8a2242bf03
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"); |
cb8a2242bf03
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("+")); |
cb8a2242bf03
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"; |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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("-")); |
cb8a2242bf03
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"; |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5150 } |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5159 if (preview_rc) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5160 if (motif["rc"]) { |
cb8a2242bf03
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"; |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5163 } else { |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5165 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5166 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5167 return box; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5168 } |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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"])) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5174 } |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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.", |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5182 add_cell(row, |
cb8a2242bf03
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", |
cb8a2242bf03
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.", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5185 action_show_outpop), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5186 "motif_submit"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5187 if (colw) { |
cb8a2242bf03
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++) { |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5190 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5191 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5192 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5193 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5195 var i, j; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5197 var motif, pspm; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5198 |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5200 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5201 thead = document.createElement("thead"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5202 tbl.appendChild(thead); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5204 tbl.appendChild(tbody); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5206 tbl.appendChild(tfoot); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5207 |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5216 |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5220 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5221 |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5224 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5225 return tbl; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5226 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5227 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5229 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5232 |
cb8a2242bf03
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"); |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5236 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5237 pspm = new Pspm(motif["pwm"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5238 if (typeof motif["rc"] !== "boolean") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5239 motif["rc"] = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5240 } |
cb8a2242bf03
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"]) { |
cb8a2242bf03
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"]; |
cb8a2242bf03
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"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5244 } else { |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
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()) { |
cb8a2242bf03
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"); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5250 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5251 } |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5254 |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5259 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5260 tab_logo = find_child(box, "tvar_tab"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5261 tab_logo_rc = find_child(box, "tvar_tab_rc"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5262 |
cb8a2242bf03
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"]); |
cb8a2242bf03
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"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5265 |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5270 |
cb8a2242bf03
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); |
cb8a2242bf03
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"]); |
cb8a2242bf03
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"]); |
cb8a2242bf03
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"]); |
cb8a2242bf03
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"]); |
cb8a2242bf03
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"]); |
cb8a2242bf03
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"]); |
cb8a2242bf03
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"]); |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5280 |
cb8a2242bf03
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 ?? |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5282 |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5291 return box; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5292 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5293 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5294 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5295 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5296 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5297 /// |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5298 function make_motifs() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5299 "use strict"; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5301 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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$/; |
cb8a2242bf03
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)) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5306 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5307 return 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5308 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5309 var container, tbl; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5311 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5313 container = $("motifs"); |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5315 |
cb8a2242bf03
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"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5317 container.appendChild(tbl); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5318 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5319 // measure table column widths |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5320 colw = []; |
cb8a2242bf03
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]; |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5323 var padLeft, padRight; |
cb8a2242bf03
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]; |
cb8a2242bf03
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); |
cb8a2242bf03
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")); |
cb8a2242bf03
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")); |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5330 colw[c] = 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5331 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5332 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5333 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5334 // set minimum table column widths on each row so later when we remove rows it still aligns |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5335 for (r = 0; r < tbl.tBodies[0].rows.length; r++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5336 row = tbl.tBodies[0].rows[r]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5337 for (c = 0; c < row.cells.length; c++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5338 row.cells[c].style.minWidth = colw[c] + "px"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5339 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5340 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5341 |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5344 |
cb8a2242bf03
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 |
cb8a2242bf03
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]; |
cb8a2242bf03
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]; |
cb8a2242bf03
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]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5349 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5350 draw_on_screen(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5351 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5352 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5354 "use strict"; |
cb8a2242bf03
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]; |
cb8a2242bf03
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, |
cb8a2242bf03
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); |
cb8a2242bf03
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 ? |
cb8a2242bf03
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) : |
cb8a2242bf03
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)); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5363 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5364 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5365 function append_blocks_entries(tbody, seq_index, count) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5366 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5371 // define some constants |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5376 // get the sequence |
cb8a2242bf03
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]; |
cb8a2242bf03
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 |
cb8a2242bf03
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(), |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5382 sites = sequence["sites"]; |
cb8a2242bf03
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++) |
cb8a2242bf03
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]); |
cb8a2242bf03
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 |
cb8a2242bf03
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]; |
cb8a2242bf03
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++) |
cb8a2242bf03
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]); |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5397 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5398 return end; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5399 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5400 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5401 function make_blocks_entries() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5402 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5403 var region; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5404 region = this; |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5406 // all sites created |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5408 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5409 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5410 // if there's still 100 pixels to scroll than don't do anything yet |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5411 if (region.scrollHeight - (region.scrollTop + region.offsetHeight) > 100) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5412 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5413 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5414 |
cb8a2242bf03
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( |
cb8a2242bf03
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], |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5418 ); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5419 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5420 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5421 function make_blocks() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5422 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5423 function add_seqs_filter(container, id, checked, label_text, help_topic) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5424 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5425 var label, radio; |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5427 radio.type = "radio"; |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5429 radio.id = id; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5430 radio.checked = checked; |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5434 label.htmlFor = id; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5435 container.appendChild(radio); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5436 container.appendChild(label); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5437 if (help_topic) { |
cb8a2242bf03
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")); |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5440 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5441 } |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5443 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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") { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5450 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5451 div.appendChild(title); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5452 if (help_topic) { |
cb8a2242bf03
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")); |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5455 } |
cb8a2242bf03
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); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5458 th.appendChild(div); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5459 th.appendChild(divcp); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5460 if (nopad) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5461 th.className = "nopad"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5462 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5463 row.appendChild(th); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5464 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5465 var container; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5468 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5469 page = (document.compatMode === "CSS1Compat") ? document.documentElement : document.body; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5470 view_height = Math.max(page.clientHeight - 300, 300); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5471 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5472 container = $("blocks"); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5475 container.innerHTML = ""; |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5479 |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5482 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5483 inner_tbl = document.createElement("div"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5484 inner_tbl.id = "blocks_scroll"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5485 inner_tbl.className = "blocks_inner"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5486 inner_tbl.style.maxHeight = view_height + "px"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5487 outer_tbl.appendChild(inner_tbl); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5488 |
cb8a2242bf03
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"); |
cb8a2242bf03
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"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5492 |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5494 tbl.appendChild(thead); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5496 tbl.appendChild(tbody); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5497 |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5503 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5505 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5506 |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5510 |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5513 } |
cb8a2242bf03
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; |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5517 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5518 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5519 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5521 return function (e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5522 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5528 if (pop) return; |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"})); |
cb8a2242bf03
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); |
cb8a2242bf03
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)); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5537 |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5542 if (pop) { |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5545 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5546 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5547 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5548 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5549 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5551 return function (e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5552 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5553 var pop; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5558 if (pop) return; |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5566 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5567 lflank = site.lflank; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5568 match = site.match; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5569 rflank = site.rflank; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5570 } |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5573 ruler.innerHTML = ""; |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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})); |
cb8a2242bf03
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); |
cb8a2242bf03
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)); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5586 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5587 document.body.appendChild(pop); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5588 position_popup(block, pop); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5589 make_block_popup.pop = pop; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5590 } else if (e.type === "mouseout") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5591 if (pop) { |
cb8a2242bf03
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); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5594 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5595 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5596 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5597 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5598 |
cb8a2242bf03
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) { |
cb8a2242bf03
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)) { |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5604 break; |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5608 break; |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5612 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5613 case 3: // fasta |
cb8a2242bf03
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); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5616 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5617 case 4: // raw |
cb8a2242bf03
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); |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5620 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5621 default: |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5623 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5624 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5625 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5627 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5629 motifs = data["motifs"]; |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5631 current_motif = index; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5632 motif = motifs[index]; |
cb8a2242bf03
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"]); |
cb8a2242bf03
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, ""); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5636 canvas = $("outpop_logo"); |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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()) { |
cb8a2242bf03
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); |
cb8a2242bf03
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, ""); |
cb8a2242bf03
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"); |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5645 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5646 num = $("outpop_num"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5647 num.innerHTML = ""; |
cb8a2242bf03
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))); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5650 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5651 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5652 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5653 // action_show_more |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5654 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5655 // Show more information on the motif. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5656 /// |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5659 var expanded_motif; |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5663 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5664 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5665 // stop a submit or something like that |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5666 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5667 } |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5669 node = this; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5670 do { |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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!?"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5674 tr = node; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5675 // get info |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5678 // find tbody |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5679 do { |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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!?"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5683 tbody = node; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5684 // find table |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5685 do { |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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!?"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5689 table = node; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5690 // find container |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5691 container = node.parentNode; |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5693 motif["expanded"] = true; |
cb8a2242bf03
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, |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5708 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5709 var table2, tbody2; |
cb8a2242bf03
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); |
cb8a2242bf03
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)); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5713 table2.appendChild(tbody2); |
cb8a2242bf03
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); |
cb8a2242bf03
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--) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5718 if (row === tr) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5719 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5720 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5721 tbody2.insertBefore(row, tbody2.rows[0]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5722 } |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5724 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5725 find_child(expanded_motif, "tvar_less").focus(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5726 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5727 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5728 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5729 // action_show_less |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5730 // |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5732 /// |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5733 function action_show_less(e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5734 var btn; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5740 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5741 } |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5743 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5744 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5745 btn = this; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5746 // find expanded motif |
cb8a2242bf03
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"); |
cb8a2242bf03
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."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5749 // find the container |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5751 // get data |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5758 table_before = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5759 } |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5763 table_after = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5764 } |
cb8a2242bf03
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. |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5768 motif["expanded"] = false; |
cb8a2242bf03
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) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
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]; |
cb8a2242bf03
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) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5779 tbody.appendChild(row); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5780 } |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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]; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5794 } else { |
cb8a2242bf03
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! |
cb8a2242bf03
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 |
cb8a2242bf03
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"]); |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5800 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5801 focus_target.focus(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5802 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5803 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5805 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5806 function init() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5807 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5811 var format_list; |
cb8a2242bf03
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; |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5827 tab1.tabIndex = 0; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5831 tab2.tabIndex = 0; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5835 tab3.tabIndex = 0; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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"; |
cb8a2242bf03
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"; |
cb8a2242bf03
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"; |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5849 // setup program selection |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5850 tbl_submit = $("programs"); |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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']"); |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5857 } |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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(); |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5866 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5867 var node; |
cb8a2242bf03
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 |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5873 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5874 } |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5876 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5877 } |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5879 help_popup(); |
cb8a2242bf03
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 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5882 init(); |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5884 } |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5886 node = this; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5887 do { |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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!"); |
cb8a2242bf03
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); |
cb8a2242bf03
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 |
cb8a2242bf03
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"; |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5895 $("outpop_close").focus(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5896 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5897 |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5902 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5903 } |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5905 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5906 } |
cb8a2242bf03
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"; |
cb8a2242bf03
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"; |
cb8a2242bf03
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") { |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5911 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5912 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5913 |
cb8a2242bf03
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) { |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5918 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5919 } |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5921 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5922 } |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5924 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5925 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5926 function action_outpop_prev(e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5927 if (!e) e = window.event; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5928 if (e.type === "keydown") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5929 if (e.keyCode !== 13 && e.keyCode !== 32) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5930 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5931 } |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5933 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5934 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5935 update_outpop_motif(current_motif - 1); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5936 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5937 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5939 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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++) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5946 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5947 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5948 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5950 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5952 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5953 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5955 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5958 var radios, i; |
cb8a2242bf03
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"); |
cb8a2242bf03
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 |
cb8a2242bf03
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++) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5963 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5964 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5965 motifs = motif_minimal_meme(current_motif); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5966 form = document.createElement("form"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5967 form.setAttribute("method", "post"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5968 form.setAttribute("action", site_url + "/tools/" + program); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5969 |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5974 form.appendChild(input); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5975 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5977 form.submit(); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5979 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5980 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5981 function action_outpop_download_motif(e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5982 $("text_form").submit(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5983 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5984 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5986 "use strict"; |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5988 $("logo_form").submit(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5989 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5990 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5991 function action_btn_rc(e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5992 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5997 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5998 } |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6000 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6001 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6002 node = this; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6003 do { |
cb8a2242bf03
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; |
cb8a2242bf03
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); |
cb8a2242bf03
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!?"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6007 tr = node; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6008 // get info |
cb8a2242bf03
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; |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6015 motif["rc"] = rc; |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6019 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6020 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6021 function action_rc_tab(e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6022 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6027 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6028 } |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6030 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6031 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6032 box = find_parent(this, "expanded_motif"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6033 logo_box = find_child(box, "tvar_logo"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6034 tab_st = find_child(box, "tvar_tab"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6035 tab_rc = find_child(box, "tvar_tab_rc"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6036 rc = (this === tab_rc); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6037 box.data_motif["rc"] = rc; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6038 toggle_class(logo_box, "show_rc_logo", rc); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6039 toggle_class(tab_st, "activeTab", !rc); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6040 toggle_class(tab_rc, "activeTab", rc); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6041 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6042 |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6044 "use strict"; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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") { |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6049 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6050 } |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6052 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6053 } |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6061 |
cb8a2242bf03
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)); |
cb8a2242bf03
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)); |
cb8a2242bf03
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)); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6072 if (this === tab1) { |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6076 } else { |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6078 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6079 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6080 |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6082 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6083 var block_container; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6084 block_container = $("blocks"); |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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) { |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6094 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6095 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6096 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6097 function action_outpop_format() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6098 update_outpop_format(current_motif); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6099 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6100 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6101 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6102 // page_loaded |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6103 // |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6105 /// |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6106 function page_loaded() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6107 post_load_setup(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6108 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6109 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6110 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6111 // page_loaded |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6112 // |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6114 /// |
cb8a2242bf03
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) { |
cb8a2242bf03
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(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6117 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6118 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6119 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6120 // page_loaded |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6121 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6122 // Called when the page is resized |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6123 /// |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6124 function page_resized() { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6126 update_scroll_pad(); |
cb8a2242bf03
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; |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6129 if (blocks_scroll) { |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6131 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6132 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6133 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6134 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6135 // pre_load_setup |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6136 // |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6138 /// |
cb8a2242bf03
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() { |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6143 motifs = data["motifs"]; |
cb8a2242bf03
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"]; |
cb8a2242bf03
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; |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6147 sequence = sequences[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6148 sequence["sites"] = []; |
cb8a2242bf03
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) { |
cb8a2242bf03
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"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6151 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6152 } |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6154 // use hsl colours |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6155 start = 0; //red |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6156 sat = 100; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6157 light = 50; |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6159 motif = motifs[i]; |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
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); |
cb8a2242bf03
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 + "%)"; |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6166 sites = motif["sites"]; |
cb8a2242bf03
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++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6168 site = sites[j]; |
cb8a2242bf03
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"]]; |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6171 site["motif"] = i; |
cb8a2242bf03
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 |
cb8a2242bf03
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); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6174 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6175 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6176 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6177 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6178 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6179 // post_load_setup |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6180 // |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6181 // Run when the page has loaded, or been reloaded. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6182 // |
cb8a2242bf03
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() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6184 update_scroll_pad(); |
cb8a2242bf03
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) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6186 make_motifs(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6187 make_blocks(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6188 } else { |
cb8a2242bf03
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 |
cb8a2242bf03
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>"; |
cb8a2242bf03
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>"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6192 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6193 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6194 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6195 pre_load_setup(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6196 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6197 <style> |
cb8a2242bf03
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 */ |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6200 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6201 div.help { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6202 display: inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6203 margin: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6204 padding: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6205 width: 12px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6206 height: 13px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6207 cursor: pointer; |
cb8a2242bf03
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==); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6209 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6210 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6211 div.help:hover { |
cb8a2242bf03
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==); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6213 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6214 |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6216 |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6218 |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6220 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6221 td.jump { font-size: 13px; color: #ffffff; background-color: #00666a; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6222 font-family: Georgia, "Times New Roman", Times, serif;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6223 |
cb8a2242bf03
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; |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6226 |
cb8a2242bf03
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; |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6229 |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6233 |
cb8a2242bf03
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; |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6236 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6237 h5 {margin: 0px} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6238 |
cb8a2242bf03
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; |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6241 |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6243 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6244 div.pad1 { margin: 10px 5px;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6245 |
cb8a2242bf03
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;} |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6248 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6249 div.pad3 { padding: 5px 0px 10px 30px;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6250 |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6252 |
cb8a2242bf03
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; } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6254 |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6256 |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6258 |
cb8a2242bf03
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;} |
cb8a2242bf03
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;} |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6262 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6263 .explain h5 {font-size:1em; margin-left: 1em;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6264 |
cb8a2242bf03
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;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6266 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6267 th.trainingset { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6269 font-weight:normal; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6270 padding:0px 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6271 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6272 div.pop_content { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6273 position:absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6274 z-index:50; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6275 width:300px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6276 padding: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6277 background: #E4ECEC; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6278 font-size: 12px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6279 font-family: Arial; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6280 border-style: double; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6281 border-width: 3px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6282 border-color: #AA2244; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6283 display:none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6284 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6285 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6287 margin-top: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6288 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6289 |
cb8a2242bf03
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, |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6292 margin: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6293 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6294 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6295 div.pop_content p + h1, div.pop_content p + h2, div.pop_content p + h3, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6296 div.pop_content p + h4, div.pop_content p + h5, div.pop_content p + h6 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6297 margin-top: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6298 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6299 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6301 margin-top: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6302 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6303 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6305 margin-bottom: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6306 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6307 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6309 /* old definition */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6310 float:right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6311 bottom: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6312 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6313 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6314 div.pop_content span.pop_close, div.pop_content span.pop_back { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6315 display: inline-block; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6317 background-color: #CCC; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6318 padding-left: 1px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6319 padding-right: 1px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6320 padding-top: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6321 padding-bottom: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6322 cursor: pointer; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6323 color: #AA2244; /*#661429;*/ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6324 font-weight: bold; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6325 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6326 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6327 div.pop_content span.pop_close:active, div.pop_content span.pop_back:active { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6328 border-style: inset; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6329 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6330 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6331 div.pop_content span.pop_close { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6332 float:right; |
cb8a2242bf03
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;*/ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6334 /*color: #AA2244;*/ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6335 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6336 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6338 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6339 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6340 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6342 margin-bottom: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6343 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6344 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6346 margin-top: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6347 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6348 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6350 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6351 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6352 span.show_more { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6353 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6354 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6356 display: inline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6357 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6358 table.hide_advanced span.show_less { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6359 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6360 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6361 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6362 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6363 /***************************************************************************** |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6364 * Program logo styling |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6365 ****************************************************************************/ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6366 div.prog_logo { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6368 height: 4.5em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6369 width: 24em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6370 display:inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6371 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6372 div.prog_logo img { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6373 float:left; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6374 width: 4em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6375 border-style: none; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6377 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6379 margin:0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6380 padding:0; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6383 line-height: 1em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6384 vertical-align: top; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6385 display: block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6386 color: #026666; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6389 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6391 display: block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6392 margin:0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6393 padding:0; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6396 line-height: 1em; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6398 color: black; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6399 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6400 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6402 font-size: 18px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6403 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6404 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6405 </style> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6406 <style> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6407 .block_td { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6408 height:25px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6409 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6410 .block_container { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6411 position:relative; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6413 height: 25px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6414 padding: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6415 margin: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6416 margin-left: 1em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6417 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6418 .block_label { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6419 position: absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6420 display: inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6421 padding: 3px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6422 z-index: 4; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6423 top: 6px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6424 height: 12px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6425 line-height: 12px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6426 font-size: 12px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6427 background-color: white; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6431 border-radius: 12px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6432 transform: translateX(-50%); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6433 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6434 .block_motif { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6435 position: absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6436 z-index: 3; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6437 top: 0px; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6440 height: 12px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6441 background-color: cyan; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6442 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6443 .block_motif.top { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6445 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6446 .block_motif.bottom { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6448 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6450 opacity: 0.3; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6451 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6453 opacity: 0.9; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6454 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6455 .block_region { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6456 position:absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6457 z-index:6; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6458 height:25px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6459 top:0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6460 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6461 .block_region.main { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6462 z-index:8; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6463 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6465 z-index:5; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6466 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6468 z-index:7; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6469 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6470 .block_region.top { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6471 height:13px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6472 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6473 .block_region.bottom { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6474 height:13px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6475 top:12px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6476 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6477 .block_rule { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6478 position:absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6479 z-index:2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6480 width:100%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6481 height:1px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6482 top:12px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6483 left:0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6484 background-color:gray; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6485 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6486 .block_plus_sym { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6487 position:absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6488 z-index:4; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6489 line-height:12px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6490 top:0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6491 left:-1em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6492 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6493 .block_minus_sym { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6494 position:absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6495 z-index:4; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6496 line-height:12px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6497 top:13px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6498 left:-1em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6499 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6500 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6501 .tic_major { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6502 position:absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6503 top:0em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6504 height:0.5em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6505 width: 2px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6506 margin-left: -1px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6507 background-color: blue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6508 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6509 .tic_minor { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6510 position:absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6511 top:0em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6512 height:0.2em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6513 width: 1px; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6515 background-color: blue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6516 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6517 .tic_label { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6518 position:absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6519 display: inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6520 top:0.5em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6521 height: 1em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6522 color: blue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6523 transform: translateX(-50%); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6524 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6525 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6526 .block_needle { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6527 position:absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6528 z-index:4; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6529 height:30px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6530 width:1px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6531 top:-2px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6532 background-color:gray; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6533 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6534 .block_needle.right { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6535 height: 60px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6536 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6537 .block_handle { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6538 position: absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6539 display: inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6540 z-index: 5; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6541 top: 27px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6542 min-width: 3ex; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6543 text-align: center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6544 font-size: 12px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6545 line-height: 12px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6546 transform: translateX(-50%); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6547 background-color: LightGrey; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6549 cursor: pointer; |
cb8a2242bf03
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 */ |
cb8a2242bf03
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 */ |
cb8a2242bf03
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+ */ |
cb8a2242bf03
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 */ |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6555 user-select: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6556 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6557 .block_handle.right { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6558 top: 47px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6559 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6560 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6561 .legend_container { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6562 text-align: right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6563 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6564 .legend_entry { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6565 display: inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6566 padding: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6567 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6568 div.legend_swatch { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6570 width: 15px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6571 height: 15px; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6573 background-color: cyan; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6574 float: left; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6575 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6577 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6578 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6579 .legend_text { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6580 line-height: 15px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6581 margin-left: 20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6582 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6583 </style> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6584 <style> |
cb8a2242bf03
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 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6586 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6587 div.pop_block { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6588 position:absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6589 z-index:5; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6590 padding: 5px; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6592 display: inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6593 background-color: white; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6594 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6595 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6596 #measure_match { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6597 position: absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6598 visibility: hidden; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6599 height: auto; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6600 width: auto; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6601 white-space: nowrap; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6602 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6603 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6604 div.template { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6605 position: absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6606 z-index: 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6607 left: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6608 top: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6609 visibility: hidden; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6610 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6611 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6612 table.block_information { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6613 margin-left: auto; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6614 margin-right: auto; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6615 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6616 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6618 text-align: right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6619 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6620 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6622 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6623 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6624 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6625 *.hide_only_scan * tr.only_scan { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6626 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6627 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6628 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6629 *.hide_only_scan * div.scanned_site { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6630 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6631 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6632 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6633 td.symaction { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6634 text-align: center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6635 text-decoration: underline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6636 font-size: 20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6637 cursor: pointer; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6638 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6639 div.sym_btn { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6640 display:inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6641 text-decoration: underline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6642 cursor: pointer; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6643 font-size: 20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6644 line-height:20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6645 text-align: center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6646 width: 20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6647 height: 20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6648 color: blue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6649 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6651 color: white; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6652 background-color: blue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6653 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6654 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6655 div.sym_btn.positioned { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6656 position: absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6657 top: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6658 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6659 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6660 div.actionbutton { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6661 display:inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6662 cursor: pointer; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6663 font-size: 18px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6664 line-height:20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6665 padding: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6666 margin: 10px 0; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6668 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6669 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6670 div.actionbutton:hover { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6671 color:#FFF; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6672 background-color:#000; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6673 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6674 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6675 div.param_box { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6676 display: inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6677 margin-right: 20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6678 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6679 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6680 span.param { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6681 font-weight: bold; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6682 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6683 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6684 div.box + div.box { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6685 margin-top: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6686 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6687 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6688 div.sites_outer { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6689 position: relative; |
cb8a2242bf03
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 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6691 display: inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6692 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6693 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6694 div.sites_inner { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6695 overflow-x: hidden; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6696 overflow-y: auto; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6697 max-height: 200px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6698 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6699 table.sites_tbl { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6700 border-collapse: collapse; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6701 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6702 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6704 position: absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6705 top: 0; |
cb8a2242bf03
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 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6707 text-align: left; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6708 padding-left: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6709 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6711 padding-left: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6712 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6714 visibility: hidden; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6715 height: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6716 padding: 0 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6717 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6718 th.nopad div.sites_th_hidden { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6719 padding: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6720 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6722 height: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6723 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6724 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6725 table.sites_tbl { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6726 overflow-x: hidden; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6727 overflow-y: auto; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6728 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6729 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6730 .site_num { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6731 text-align: right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6732 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6733 .site_name { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6734 padding:0px 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6735 text-align:left; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6736 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6737 .site_strand { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6738 padding:0px 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6739 text-align:center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6740 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6742 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6743 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6744 .site_start { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6745 padding:0px 15px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6746 text-align: right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6747 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6748 .site_pvalue { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6749 text-align:center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6750 padding:0px 15px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6751 text-align:right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6752 white-space: nowrap; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6753 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6755 font-weight:bold; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6756 font-size:15px; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6758 color:gray; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6759 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6760 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6761 .site.lflank { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6762 text-align:right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6763 padding-right:5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6764 color:gray; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6765 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6766 .site.match { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6767 text-align:center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6768 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6769 .site.rflank { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6770 text-align:left; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6771 padding-left:5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6772 padding-right: 20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6773 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6774 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6775 th.stop_reason { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6776 text-align: left; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6777 padding-right: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6778 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6779 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6780 th.motif_ordinal { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6781 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6782 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6783 td.motif_ordinal { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6784 text-align: right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6785 padding-right: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6786 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6787 th.motif_logo { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6788 padding-right: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6789 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6790 td.motif_logo { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6791 padding-right: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6792 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6793 th.motif_evalue { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6794 text-align:right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6795 padding-right: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6796 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6797 td.motif_evalue { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6798 text-align: right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6799 white-space: nowrap; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6800 padding-right: 20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6801 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6802 th.motif_nsites { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6803 text-align: right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6804 padding-right: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6805 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6806 td.motif_nsites { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6807 text-align: right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6808 padding-right: 20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6809 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6810 th.motif_width { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6811 text-align: right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6812 padding-right: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6813 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6814 td.motif_width { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6815 text-align: right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6816 padding-right: 15px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6817 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6818 th.motif_more { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6819 padding: 0 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6820 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6821 td.motif_more { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6822 text-align: center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6823 padding: 0 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6824 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6825 th.motif_submit { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6826 padding: 0 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6827 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6828 td.motif_submit { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6829 text-align: center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6830 padding: 0 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6831 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6832 th.motif_download { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6833 padding-left: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6834 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6835 td.motif_download { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6836 text-align: center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6837 padding-left: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6838 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6839 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6840 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6841 div.tabArea { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6842 font-size: 80%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6843 font-weight: bold; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6844 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6845 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6846 .norc div.tabArea { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6847 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6848 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6849 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6850 span.tab, span.tab:visited { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6851 cursor: pointer; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6852 color: #888; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6853 background-color: #ddd; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6855 padding: 2px 1em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6856 text-decoration: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6857 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6858 span.tab.middle { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6860 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6861 div.tabArea.base span.tab { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6862 border-top-width: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6863 } |
cb8a2242bf03
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 { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6866 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6867 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6868 span.tab:hover { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6869 background-color: #bbb; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6870 border-color: #bbb; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6871 color: #666; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6872 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6874 background-color: white; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6875 color: black; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6876 cursor: default; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6877 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6878 div.tabMain { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6880 background-color: white; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6881 padding: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6882 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6883 div.tabMain.base { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6884 margin-top: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6885 display: inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6886 max-width: 98%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6887 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6888 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6889 div.tabMain.top { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6890 margin-bottom: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6891 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6892 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6893 div.tabCenter { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6894 max-width: 100%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6895 overflow-x: auto; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6896 height: 200px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6897 overflow-y: hidden; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6898 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6899 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6900 canvas.logo_rc { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6901 display:none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6902 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6903 .show_rc_logo > canvas { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6904 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6905 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6907 display: block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6908 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6909 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6910 canvas.scan_logo { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6911 margin-left: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6912 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6913 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6914 div.blocks_outer { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6915 position: relative; |
cb8a2242bf03
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 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6917 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6918 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6919 div.blocks_inner { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6920 overflow-x: hidden; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6921 overflow-y: auto; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6922 max-height: 200px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6923 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6924 table.blocks_tbl { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6925 border-collapse: collapse; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6926 width: 100%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6927 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6928 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6929 div.blocks_th_inner { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6930 position: absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6931 top: 0; |
cb8a2242bf03
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 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6933 text-align: left; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6934 padding-left: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6935 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6936 th.nopad div.blocks_th_inner { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6937 padding-left: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6938 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6940 visibility: hidden; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6941 height: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6942 padding: 0 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6943 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6945 padding: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6946 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6948 height: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6949 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6950 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6951 table.blocks_tbl { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6952 overflow-x: hidden; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6953 overflow-y: auto; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6954 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6955 td.block_td { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6956 width: 99%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6957 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6958 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6959 *.blockdiag_num { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6960 text-align: right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6961 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6962 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6963 td.blockdiag_name { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6964 text-align: left; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6965 padding:0px 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6966 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6967 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6968 td.blockdiag_pvalue { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6969 padding:0px 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6970 text-align:right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6971 white-space: nowrap; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6972 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6973 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6974 div.preview_btn { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6976 height: 16px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6977 width: 16px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6978 font-size: 12px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6979 line-height: 16px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6980 text-align: center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6981 cursor: pointer; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6982 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6984 margin-top: 3px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6985 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6986 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6987 div.preview_btn.active { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6989 cursor: default; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6990 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6991 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6992 div.preview_btn:hover { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6993 background-color: black; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6994 color: white; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6995 border-color: black; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6996 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6997 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6999 background-color: white; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7000 color: black; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7001 border-color: black; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7002 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7003 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7004 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7006 position: absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7007 left: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7008 top: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7009 padding: 3px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7010 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7011 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7012 div.preview_logo_box { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7013 height: 50px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7014 overflow-y: hidden; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7015 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7016 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7018 margin-left: 25px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7019 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7020 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7021 div.preview_box { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7022 position: relative; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7023 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7024 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7025 div.grey_background { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7026 position:fixed; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7027 z-index: 8; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7028 background-color: #000; |
cb8a2242bf03
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)"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7030 opacity: 0.5; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7031 left: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7032 top: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7033 width: 100%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7034 height: 100%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7035 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7036 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7037 div.popup_wrapper { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7038 position:fixed; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7039 z-index:9; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7040 width:100%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7041 height:0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7042 top:50%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7043 left:0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7044 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7045 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7046 div.popup { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7047 width: 600px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7048 z-index:9; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7049 margin-left: auto; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7050 margin-right: auto; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7051 padding: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7052 background-color: #FFF; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7053 border-style: double; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7054 border-width: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7055 border-color: #00666a; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7056 position:relative; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7057 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7058 div.close { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7059 cursor: pointer; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7061 width:15px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7062 height:15px; |
cb8a2242bf03
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 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7064 text-align:center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7065 background-color:#FFF; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7066 color:#000; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7067 font-size:15px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7068 font-family:monospace; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7069 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7070 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7071 div.close:hover { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7072 color:#FFF; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7073 background-color:#000; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7074 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7075 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7076 div.navnum { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7077 width:100%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7078 height:20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7079 line-height:20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7080 text-align:center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7081 font-size:medium; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7082 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7083 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7084 div.navarrow { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7085 font-size: 30px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7086 text-decoration:none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7087 cursor: pointer; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7091 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7092 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7093 div.navarrow > span.inactive { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7094 display: inline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7095 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7097 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7098 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7099 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7101 display: inline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7102 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7104 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7105 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7106 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7107 table.programs { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7108 width: 100%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7109 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7110 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7111 table.programs tr { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7112 background-color: #EFE; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7113 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7114 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7116 background-color: #262; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7117 color: #FFF; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7118 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7119 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7121 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7122 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7123 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7125 display: table-row; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7126 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7127 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7128 div.programs_scroll { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7129 width: 100%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7130 height: 90px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7131 overflow-y: auto; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7132 overflow-x: hidden; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7133 margin: 0 auto; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7134 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7136 margin-top: 20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7137 border-collapse:collapse; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7138 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7139 table.inputs * td, table.inputs * th, table.alpha_bg_table * td, table.alpha_bg_table * th { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7140 padding-left: 15px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7141 padding-right: 15px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7142 padding-top: 1px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7143 padding-bottom: 1px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7144 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7145 |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7147 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7148 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7149 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7150 /* program settings */ |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7152 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7153 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7155 display: inline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7156 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7158 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7159 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7160 td.none span.strand_none, td.given span.strand_given, td.both span.strand_both { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7161 display: inline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7162 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7164 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7165 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7167 display: inline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7168 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7170 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7171 } |
cb8a2242bf03
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, |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7174 display: inline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7175 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7177 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7178 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7179 td.on span.noendgaps_on, td.off span.noendgaps_off { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7180 display: inline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7181 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7182 span.substring_on, span.substring_off { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7183 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7184 } |
cb8a2242bf03
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 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7186 display: inline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7187 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7188 </style> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7189 </head> |
cb8a2242bf03
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()"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7191 <!-- --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7192 <div id="grey_out_page" class="grey_background" style="display:none;"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7193 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7194 <!-- Help popups --> |
cb8a2242bf03
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_"> |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7199 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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, |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7215 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7220 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7226 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7231 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7238 <dl> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7239 <dt>Tomtom</dt> |
cb8a2242bf03
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. |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7242 <dt>MAST</dt> |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7246 <dt>FIMO</dt> |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7250 <dt>GOMO</dt> |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7254 <dt>SpaMo</dt> |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7258 </dl> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7261 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7262 <div class="pop_content" id="pop_llr"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7263 <p>The log likelihood ratio of the motif.The log likelihood ratio is the |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7264 logarithm of the ratio of the probability of the occurrences of the motif |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7265 given the motif model (likelihood given the motif) versus their |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7266 probability given the background model (likelihood given the null model). |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7267 (Normally the background model is a 0-order Markov model using the |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7268 background letter frequencies, but higher order Markov models may be |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7269 specified via the -bfile option to MEME.).</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7270 <div style="float:right; bottom:0px;">[ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7271 <a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7272 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7280 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7283 |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7287 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7292 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7295 <dl> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7296 <dt>+</dt> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7298 <dt>-</dt> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7300 </dl> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7303 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7310 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7314 frequencies.</p> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7317 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7324 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7325 |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7332 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7333 |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7341 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7342 |
cb8a2242bf03
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"> |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7346 algorithm.</p> |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
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. |
cb8a2242bf03
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> |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7357 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7358 |
cb8a2242bf03
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"> |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7366 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7367 |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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 |
cb8a2242bf03
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) |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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 |
cb8a2242bf03
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) |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7381 |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7384 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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 |
cb8a2242bf03
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, |
cb8a2242bf03
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> |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7403 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7404 |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7407 <div style="float:right; bottom:0px;">[ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7408 <a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7409 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7410 <div class="pop_content" id="pop_psp_source"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7411 <p>The position specific priors file used by MEME to find the motifs.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7412 <div style="float:right; bottom:0px;">[ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7413 <a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7414 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7419 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7424 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7425 |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7430 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7436 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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;">[ |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7441 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7442 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7443 <!-- templates --> |
cb8a2242bf03
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> |
cb8a2242bf03
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"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7446 <div> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7449 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7454 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7460 </table> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7461 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7462 |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7471 </table> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7472 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7473 |
cb8a2242bf03
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"> |
cb8a2242bf03
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"> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7478 </div> |
cb8a2242bf03
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" |
cb8a2242bf03
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.">↥</div> |
cb8a2242bf03
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" |
cb8a2242bf03
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.">⇢</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7483 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7484 <div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7489 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7494 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7499 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7500 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7503 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7507 Complement</span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7508 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7514 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7515 <div class="param_box"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7516 <span class="param">Information Content:</span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7517 <span class="tvar_ic"></span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7518 <div class="help" data-topic="pop_ic"></div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7519 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7524 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7529 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7530 </div> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7532 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7533 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7534 |
cb8a2242bf03
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"> |
cb8a2242bf03
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"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7537 <div> |
cb8a2242bf03
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; "> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7540 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7541 <h2 class="mainh" style="margin:0; padding:0;">Submit or Download</h2> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7542 <div style="clear:both"></div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7543 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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;"> |
cb8a2242bf03
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"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7547 <span class="inactive">⇧</span><span class="active">⬆</span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7548 </div> |
cb8a2242bf03
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> |
cb8a2242bf03
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"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7551 <span class="inactive">⇩</span><span class="active">⬇</span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7552 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7553 </div> |
cb8a2242bf03
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;"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7557 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7558 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7559 <div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7560 <!-- tabs start --> |
cb8a2242bf03
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"> |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7565 </div> |
cb8a2242bf03
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"> |
cb8a2242bf03
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 --> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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"> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7576 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7577 <tr> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7582 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7583 <tr> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7588 </tr> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7594 </tr> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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 |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7600 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7601 </table> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7602 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7603 <!-- download text format --> |
cb8a2242bf03
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"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7605 <div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7606 <label for="text_format">Format:</label> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7607 <select id="text_format"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7608 <option value="0">Count Matrix</option> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7609 <option value="1">Probability Matrix</option> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7610 <option value="2">Minimal MEME</option> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7611 <option value="3">FASTA</option> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7612 <option value="4">Raw</option> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7613 </select> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7614 </div> |
cb8a2242bf03
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=""> |
cb8a2242bf03
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> |
cb8a2242bf03
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"> |
cb8a2242bf03
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"> |
cb8a2242bf03
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" |
cb8a2242bf03
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;" |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7622 </form> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7623 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7624 <!-- download logo format --> |
cb8a2242bf03
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"> |
cb8a2242bf03
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=""> |
cb8a2242bf03
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> |
cb8a2242bf03
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"/> |
cb8a2242bf03
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=""/> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7630 <table> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7631 <tr> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7633 <td> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7637 </select> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7638 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7639 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7640 <tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7641 <td><label for="logo_rc">Orientation:</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7642 <td> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7646 </select> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7647 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7648 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7649 <tr> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7651 <td> |
cb8a2242bf03
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"/> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7656 </select> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7657 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7658 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7659 <tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7660 <td><label for="logo_width">Width:</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7661 <td> |
cb8a2242bf03
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"/> cm |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7663 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7664 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7665 <tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7666 <td><label for="logo_height">Height:</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7667 <td> |
cb8a2242bf03
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"/> cm |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7669 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7670 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7671 </table> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7672 </form> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7673 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7674 <!-- Buttons --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7675 <div> |
cb8a2242bf03
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;"> |
cb8a2242bf03
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" /> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7678 </div> |
cb8a2242bf03
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;"> |
cb8a2242bf03
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" /> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7681 </div> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7683 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7684 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7685 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7686 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7687 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7688 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7689 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7690 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7691 <!-- Page starts here --> |
cb8a2242bf03
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"> |
cb8a2242bf03
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"> |
cb8a2242bf03
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"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7695 <h1>MEME</h1> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7697 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7698 <p> |
cb8a2242bf03
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 |
cb8a2242bf03
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 |
cb8a2242bf03
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>. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7702 </p> |
cb8a2242bf03
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 /> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7704 <span class="citation"> |
cb8a2242bf03
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, |
cb8a2242bf03
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", |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7710 </span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7711 </p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7712 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7713 <!-- navigation --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7714 <div class="pad2"> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7716 | |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7718 | |
cb8a2242bf03
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 & Settings</a> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7720 | |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7722 </div> |
cb8a2242bf03
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 --> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7726 <script> |
cb8a2242bf03
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"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7728 </script> |
cb8a2242bf03
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> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7733 </div> |
cb8a2242bf03
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> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7738 </div> |
cb8a2242bf03
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 & Settings</h2> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7740 <div class="box"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7741 <h4>Sequences</h4> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7747 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7748 <tr> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7753 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7754 </table> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7755 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7756 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7757 var db = data.sequence_db; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7758 $("ins_seq_source").innerHTML = db.source; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7759 $("ins_seq_alphabet").innerHTML = meme_alphabet.get_alphabet_name(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7760 $("ins_seq_count").innerHTML = db.sequences.length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7761 if (db.psp) { |
cb8a2242bf03
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; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7763 } |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7765 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7766 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7767 <h4>Background</h4> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7769 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7770 { |
cb8a2242bf03
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)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7772 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7773 </script> |
cb8a2242bf03
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> |
cb8a2242bf03
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"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7776 <tr> |
cb8a2242bf03
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> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7782 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7783 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7784 <tr> |
cb8a2242bf03
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> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7790 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7791 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7792 <tr> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7795 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7796 <tr> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7799 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7800 <tr> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7803 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7804 <tr> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7807 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7808 <tr> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7811 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7812 <tr> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7815 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7816 <tr class="advanced"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7819 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7820 <tr class="advanced"> |
cb8a2242bf03
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> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7828 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7829 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7830 <tr class="advanced"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7833 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7834 <tr class="advanced"> |
cb8a2242bf03
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> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7839 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7840 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7841 <tr class="advanced"> |
cb8a2242bf03
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> |
cb8a2242bf03
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"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7846 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7847 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7848 <tr class="advanced"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7851 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7852 <tr class="advanced"> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7854 <td id="opt_maxiter"></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7855 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7856 <tr class="advanced"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7859 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7860 <tr class="advanced"> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7862 <td id="opt_wg"></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7863 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7864 <tr class="advanced"> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7866 <td id="opt_ws"></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7867 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7868 <tr class="advanced"> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7870 <td id="opt_noendgaps"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7873 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7874 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7875 <tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7876 <td colspan="2" style="text-align: center"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7877 <a href="javascript:toggle_class(document.getElementById('tbl_settings'), 'hide_advanced')"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7878 <span class="show_more">Show Advanced Settings</span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7879 <span class="show_less">Hide Advanced Settings</span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7880 </a> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7881 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7882 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7883 </table> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7884 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7885 { |
cb8a2242bf03
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; |
cb8a2242bf03
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"); |
cb8a2242bf03
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; |
cb8a2242bf03
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"); |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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; |
cb8a2242bf03
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"); |
cb8a2242bf03
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"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7905 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7906 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7907 </div> |
cb8a2242bf03
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 --> |
cb8a2242bf03
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"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7910 <div class="subsection"> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7914 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7915 <script> |
cb8a2242bf03
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"]; |
cb8a2242bf03
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"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7918 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7919 <div class="subsection"> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7921 <span class="citation"> |
cb8a2242bf03
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, |
cb8a2242bf03
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", |
cb8a2242bf03
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 |
cb8a2242bf03
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. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7926 </span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7927 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7928 <div class="subsection"> |
cb8a2242bf03
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> |
cb8a2242bf03
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"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7931 </textarea> |
cb8a2242bf03
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> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7933 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7934 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7935 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7936 </body> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7937 </html> |