Mercurial > repos > iuc > meme_psp_gen
annotate test-data/meme_output_test2.html @ 2:b48e673af4e8 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:15 -0400 |
parents | |
children | ff2f53a32d0e |
rev | line source |
---|---|
2
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1 <!DOCTYPE HTML> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2 <html> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3 <head> |
b48e673af4e8
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"> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5 <title>MEME</title> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6 <script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7 // @JSON_VAR data |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
8 var data = { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
9 "program": "MEME", |
b48e673af4e8
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", |
b48e673af4e8
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", |
b48e673af4e8
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.", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
13 "cmd": [ |
b48e673af4e8
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", |
b48e673af4e8
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", |
b48e673af4e8
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", |
b48e673af4e8
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", |
b48e673af4e8
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", |
b48e673af4e8
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" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
20 ], |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
21 "options": { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
22 "mod": "zoops", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
23 "revcomp": false, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
24 "nmotifs": 1, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
25 "minw": 8, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
26 "maxw": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
27 "minsites": 2, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
28 "maxsites": 30, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
29 "wnsites": 0.8, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
30 "spmap": "uni", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
31 "spfuzz": 0.5, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
32 "maxwords": -1, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
33 "prior": "dirichlet", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
34 "b": 0.01, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
35 "maxiter": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
36 "distance": 0.001, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
37 "wg": 11, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
38 "ws": 1, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
39 "noendgaps": false, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
40 "substring": true |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
41 }, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
42 "alphabet": { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
43 "name": "DNA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
44 "like": "dna", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
45 "ncore": 4, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
46 "symbols": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
47 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
48 "symbol": "A", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
49 "name": "Adenine", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
50 "colour": "CC0000", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
51 "complement": "T" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
52 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
53 "symbol": "C", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
54 "name": "Cytosine", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
55 "colour": "0000CC", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
56 "complement": "G" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
57 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
58 "symbol": "G", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
59 "name": "Guanine", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
60 "colour": "FFB300", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
61 "complement": "C" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
62 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
63 "symbol": "T", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
64 "aliases": "U", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
65 "name": "Thymine", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
66 "colour": "008000", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
67 "complement": "A" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
68 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
69 "symbol": "N", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
70 "aliases": "X.", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
71 "name": "Any base", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
72 "equals": "ACGT" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
73 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
74 "symbol": "V", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
75 "name": "Not T", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
76 "equals": "ACG" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
77 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
78 "symbol": "H", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
79 "name": "Not G", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
80 "equals": "ACT" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
81 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
82 "symbol": "D", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
83 "name": "Not C", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
84 "equals": "AGT" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
85 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
86 "symbol": "B", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
87 "name": "Not A", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
88 "equals": "CGT" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
89 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
90 "symbol": "M", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
91 "name": "Amino", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
92 "equals": "AC" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
93 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
94 "symbol": "R", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
95 "name": "Purine", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
96 "equals": "AG" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
97 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
98 "symbol": "W", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
99 "name": "Weak", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
100 "equals": "AT" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
101 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
102 "symbol": "S", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
103 "name": "Strong", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
104 "equals": "CG" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
105 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
106 "symbol": "Y", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
107 "name": "Pyrimidine", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
108 "equals": "CT" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
109 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
110 "symbol": "K", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
111 "name": "Keto", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
112 "equals": "GT" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
113 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
114 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
115 }, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
116 "background": { |
b48e673af4e8
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] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
118 }, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
119 "sequence_db": { |
b48e673af4e8
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", |
b48e673af4e8
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", |
b48e673af4e8
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], |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
123 "sequences": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
124 { |
b48e673af4e8
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_+", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
126 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
127 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
128 }, { |
b48e673af4e8
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_+", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
130 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
131 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
132 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
134 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
135 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
136 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
138 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
139 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
140 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
142 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
143 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
144 }, { |
b48e673af4e8
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_+", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
146 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
147 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
148 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
150 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
151 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
152 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
154 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
155 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
156 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
158 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
159 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
160 }, { |
b48e673af4e8
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_+", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
162 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
163 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
164 }, { |
b48e673af4e8
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_+", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
166 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
167 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
168 }, { |
b48e673af4e8
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_+", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
170 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
171 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
172 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
174 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
175 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
176 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
178 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
179 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
180 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
182 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
183 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
184 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
186 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
187 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
188 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
190 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
191 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
192 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
194 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
195 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
196 }, { |
b48e673af4e8
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_+", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
198 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
199 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
200 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
202 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
203 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
204 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
206 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
207 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
208 }, { |
b48e673af4e8
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_+", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
210 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
211 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
212 }, { |
b48e673af4e8
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_+", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
214 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
215 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
216 }, { |
b48e673af4e8
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_+", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
218 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
219 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
220 }, { |
b48e673af4e8
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_+", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
222 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
223 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
224 }, { |
b48e673af4e8
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_+", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
226 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
227 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
228 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
230 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
231 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
232 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
234 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
235 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
236 }, { |
b48e673af4e8
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_+", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
238 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
239 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
240 }, { |
b48e673af4e8
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_-", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
242 "length": 50, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
243 "weight": 1.000000 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
244 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
245 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
246 }, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
247 "motifs": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
248 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
249 "db": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
250 "id": "GGSRTATAAAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
251 "alt": "MEME-1", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
252 "len": 11, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
253 "nsites": 30, |
b48e673af4e8
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", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
255 "ic": 13.0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
256 "re": 12.2, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
257 "llr": 254, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
258 "bt": 5.2854, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
259 "time": 0.376000, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
260 "psm": [ |
b48e673af4e8
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], |
b48e673af4e8
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], |
b48e673af4e8
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], |
b48e673af4e8
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], |
b48e673af4e8
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], |
b48e673af4e8
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] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
267 ], |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
268 "pwm": [ |
b48e673af4e8
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], |
b48e673af4e8
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], |
b48e673af4e8
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], |
b48e673af4e8
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], |
b48e673af4e8
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], |
b48e673af4e8
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], |
b48e673af4e8
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], |
b48e673af4e8
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], |
b48e673af4e8
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], |
b48e673af4e8
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], |
b48e673af4e8
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] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
280 ], |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
281 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
282 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
283 "seq": 24, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
284 "pos": 12, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
285 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
287 "lflank": "AAGGCCAGGA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
288 "match": "GGGGTATAAAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
289 "rflank": "GCCTGAGAGC" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
290 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
291 "seq": 23, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
292 "pos": 15, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
293 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
295 "lflank": "ATACCCAGGG", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
296 "match": "AGGGTATAAAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
297 "rflank": "CCTCAGCAGC" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
298 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
299 "seq": 13, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
300 "pos": 13, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
301 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
303 "lflank": "CCACCAGCTT", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
304 "match": "GAGGTATAAAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
305 "rflank": "AGCCCTGTAC" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
306 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
307 "seq": 25, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
308 "pos": 36, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
309 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
311 "lflank": "ACAGGCCCTG", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
312 "match": "GGCATATAAAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
313 "rflank": "GCC" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
314 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
315 "seq": 21, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
316 "pos": 7, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
317 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
319 "lflank": "CCAAGGA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
320 "match": "GGAGTATAAAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
321 "rflank": "GCCCCACAAA" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
322 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
323 "seq": 19, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
324 "pos": 9, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
325 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
327 "lflank": "CAGGCCCTG", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
328 "match": "GGCATATAAAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
329 "rflank": "GCCCCAGCAG" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
330 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
331 "seq": 9, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
332 "pos": 13, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
333 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
335 "lflank": "GATTCACTGA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
336 "match": "GGCATATAAAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
337 "rflank": "GGCCCTCTGC" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
338 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
339 "seq": 28, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
340 "pos": 32, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
341 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
343 "lflank": "CCGGCGGGGC", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
344 "match": "GGGGTATAAAG", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
345 "rflank": "GGGGCGG" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
346 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
347 "seq": 20, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
348 "pos": 4, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
349 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
351 "lflank": "CAGA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
352 "match": "GGGGTATAAAG", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
353 "rflank": "GTTCCGACCA" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
354 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
355 "seq": 12, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
356 "pos": 18, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
357 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
359 "lflank": "CACCAGAGCT", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
360 "match": "GGGATATATAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
361 "rflank": "AGAAGGTTCT" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
362 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
363 "seq": 15, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
364 "pos": 21, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
365 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
367 "lflank": "AATCACTGAG", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
368 "match": "GATGTATAAAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
369 "rflank": "GTCCCAGGGA" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
370 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
371 "seq": 11, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
372 "pos": 16, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
373 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
375 "lflank": "CACTATTGAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
376 "match": "GATGTATAAAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
377 "rflank": "TTTCATTTGC" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
378 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
379 "seq": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
380 "pos": 39, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
381 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
383 "lflank": "CCTCGGGACG", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
384 "match": "TGGGTATATAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
385 "rflank": "" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
386 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
387 "seq": 6, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
388 "pos": 15, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
389 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
391 "lflank": "CCCACTACTT", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
392 "match": "AGAGTATAAAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
393 "rflank": "TCATTCTGAG" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
394 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
395 "seq": 22, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
396 "pos": 2, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
397 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
399 "lflank": "GA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
400 "match": "GACATATAAAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
401 "rflank": "GCCAACATCC" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
402 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
403 "seq": 14, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
404 "pos": 17, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
405 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
407 "lflank": "CCCACCAGCA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
408 "match": "AGGATATATAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
409 "rflank": "AAGCTCAGGA" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
410 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
411 "seq": 18, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
412 "pos": 37, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
413 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
415 "lflank": "CGTGGTCGCG", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
416 "match": "GGGGTATAACA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
417 "rflank": "GC" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
418 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
419 "seq": 29, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
420 "pos": 30, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
421 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
423 "lflank": "GCTGCCGGTG", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
424 "match": "AGCGTATAAAG", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
425 "rflank": "GCCCTGGCG" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
426 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
427 "seq": 4, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
428 "pos": 12, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
429 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
431 "lflank": "CAGGTCTAAG", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
432 "match": "AGCATATATAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
433 "rflank": "CTTGGAGTCC" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
434 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
435 "seq": 5, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
436 "pos": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
437 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
439 "lflank": "", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
440 "match": "AACGTATATAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
441 "rflank": "ATGGTCCTGT" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
442 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
443 "seq": 1, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
444 "pos": 27, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
445 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
447 "lflank": "AGTCACAAGT", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
448 "match": "GAGTTATAAAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
449 "rflank": "GGGTCGCACG" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
450 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
451 "seq": 7, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
452 "pos": 4, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
453 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
455 "lflank": "TCAG", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
456 "match": "AGTATATATAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
457 "rflank": "ATGTTCCTGT" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
458 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
459 "seq": 3, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
460 "pos": 14, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
461 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
463 "lflank": "CCCAGGTTTC", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
464 "match": "TGAGTATATAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
465 "rflank": "TCGCCGCACC" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
466 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
467 "seq": 16, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
468 "pos": 22, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
469 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
471 "lflank": "AGTTTCAGTT", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
472 "match": "GGCATCTAAAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
473 "rflank": "attatataac" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
474 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
475 "seq": 27, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
476 "pos": 36, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
477 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
479 "lflank": "TGCCTGGGTC", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
480 "match": "CAGGTATAAAG", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
481 "rflank": "GCT" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
482 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
483 "seq": 26, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
484 "pos": 37, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
485 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
487 "lflank": "TGCCTGGGCC", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
488 "match": "CAGGTATAAAG", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
489 "rflank": "GC" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
490 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
491 "seq": 17, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
492 "pos": 2, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
493 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
495 "lflank": "ga", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
496 "match": "TGGTTTTATAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
497 "rflank": "ggggcctcac" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
498 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
499 "seq": 8, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
500 "pos": 13, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
501 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
503 "lflank": "TATAACTCAG", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
504 "match": "GTTGGATAAAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
505 "rflank": "TAATTTGTAC" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
506 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
507 "seq": 10, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
508 "pos": 7, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
509 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
511 "lflank": "aaactta", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
512 "match": "AAACTCTATAA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
513 "rflank": "acttaaaact" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
514 }, { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
515 "seq": 2, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
516 "pos": 26, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
517 "rc": false, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
519 "lflank": "GGTGGGGGTG", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
520 "match": "GGGGTTTCACT", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
521 "rflank": "GGTCCACTAT" |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
522 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
523 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
524 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
525 ], |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
526 "scan": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
527 { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
529 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
530 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
531 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
532 "pos": 39, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
533 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
535 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
536 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
537 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
539 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
540 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
541 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
542 "pos": 27, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
543 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
545 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
546 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
547 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
549 "sites": [] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
550 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
552 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
553 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
554 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
555 "pos": 14, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
556 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
558 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
559 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
560 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
562 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
563 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
564 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
565 "pos": 12, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
566 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
568 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
569 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
570 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
572 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
573 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
574 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
575 "pos": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
576 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
578 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
579 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
580 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
582 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
583 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
584 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
585 "pos": 15, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
586 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
588 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
589 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
590 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
592 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
593 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
594 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
595 "pos": 4, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
596 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
598 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
599 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
600 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
602 "sites": [] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
603 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
605 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
606 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
607 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
608 "pos": 13, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
609 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
611 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
612 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
613 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
615 "sites": [] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
616 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
618 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
619 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
620 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
621 "pos": 16, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
622 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
624 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
625 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
626 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
628 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
629 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
630 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
631 "pos": 18, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
632 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
634 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
635 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
636 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
638 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
639 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
640 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
641 "pos": 13, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
642 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
644 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
645 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
646 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
648 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
649 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
650 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
651 "pos": 17, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
652 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
654 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
655 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
656 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
658 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
659 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
660 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
661 "pos": 21, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
662 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
664 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
665 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
666 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
668 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
669 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
670 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
671 "pos": 22, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
672 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
674 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
675 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
676 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
678 "sites": [] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
679 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
681 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
682 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
683 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
684 "pos": 37, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
685 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
687 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
688 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
689 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
691 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
692 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
693 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
694 "pos": 9, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
695 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
697 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
698 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
699 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
701 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
702 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
703 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
704 "pos": 4, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
705 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
707 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
708 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
709 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
711 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
712 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
713 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
714 "pos": 7, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
715 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
717 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
718 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
719 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
721 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
722 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
723 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
724 "pos": 2, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
725 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
727 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
728 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
729 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
731 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
732 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
733 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
734 "pos": 15, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
735 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
737 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
738 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
739 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
741 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
742 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
743 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
744 "pos": 12, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
745 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
747 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
748 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
749 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
751 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
752 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
753 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
754 "pos": 36, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
755 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
757 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
758 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
759 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
761 "sites": [] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
762 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
764 "sites": [] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
765 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
767 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
768 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
769 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
770 "pos": 32, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
771 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
773 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
774 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
775 }, { |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
777 "sites": [ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
778 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
779 "motif": 0, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
780 "pos": 30, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
781 "rc": false, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
783 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
784 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
785 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
786 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
787 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
788 </script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
789 <script> |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
791 </script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
792 <script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
793 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
794 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
795 * $ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
796 * |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
798 */ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
799 function $(el) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
801 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
802 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
803 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
804 /* |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
807 */ |
b48e673af4e8
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) { |
b48e673af4e8
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 ''; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
810 var result = ''; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
811 while (count > 1) { |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
814 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
815 return result + pattern; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
816 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
817 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
818 /* |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
822 */ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
823 function parse_params() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
824 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
830 |
b48e673af4e8
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 {}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
832 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
833 params = {}; |
b48e673af4e8
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("&"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
835 |
b48e673af4e8
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++) { |
b48e673af4e8
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("="); |
b48e673af4e8
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]); |
b48e673af4e8
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]); |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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)) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
843 params[n] = []; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
844 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
846 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
847 return params; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
848 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
849 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
850 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
851 * coords |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
852 * |
b48e673af4e8
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. |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
856 */ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
857 function coords(elem) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
859 if (elem.getBoundingClientRect) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
860 var rect; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
861 rect = elem.getBoundingClientRect(); |
b48e673af4e8
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") ? |
b48e673af4e8
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); |
b48e673af4e8
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") ? |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
866 } else { |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
869 var node; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
870 if (elem.offsetParent) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
871 // subtract all scrolling |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
872 node = elem; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
873 do { |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
880 // sum up offsets |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
881 node = elem; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
882 do { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
883 myX += node.offsetLeft; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
884 myY += node.offsetTop; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
886 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
887 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
888 return [myX, myY]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
889 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
890 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
891 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
892 * position_popup |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
893 * |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
895 * |
b48e673af4e8
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: |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
898 */ |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
900 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
903 // define constants |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
904 spacer = 5; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
905 margin = 15; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
906 scrollbar = 15; |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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]; |
b48e673af4e8
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]; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
915 page_w = null; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
916 if (window.innerWidth) { |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
920 } |
b48e673af4e8
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 |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
923 position = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
924 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
926 switch (position) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
927 case 1: |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
930 break; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
931 case 0: |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
932 default: |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
935 break; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
936 } |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
939 p_x = margin; |
b48e673af4e8
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)) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
942 } |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
944 p_y = margin; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
945 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
946 // position the popup |
b48e673af4e8
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"; |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
949 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
950 |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
954 if (pop == null) { |
b48e673af4e8
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]; |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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; |
b48e673af4e8
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"; |
b48e673af4e8
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"; |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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 + "\".")); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
964 pop.appendChild(info); |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
968 } |
b48e673af4e8
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")) { |
b48e673af4e8
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)) { |
b48e673af4e8
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"; |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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")); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
978 help_return(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
979 }, false); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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")); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
988 help_popup(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
989 }, false); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
992 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
993 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
994 return pop; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
995 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
996 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
997 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
998 * help_popup |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
999 * |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1001 * below an activator. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1002 */ |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1004 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1005 var pop; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1006 // set default values |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1008 help_popup.popup = []; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1009 } |
b48e673af4e8
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") { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1012 } |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
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'; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1017 help_popup.popup = []; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1018 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1019 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1020 } |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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) { |
b48e673af4e8
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) |
b48e673af4e8
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'; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1026 help_popup.popup = []; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1027 return; // toggling complete! |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1028 } |
b48e673af4e8
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) { |
b48e673af4e8
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 |
b48e673af4e8
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'; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1032 } |
b48e673af4e8
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]; |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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'; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1039 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1040 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1041 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1042 * help_refine |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1043 * |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1046 */ |
b48e673af4e8
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) { |
b48e673af4e8
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) { |
b48e673af4e8
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!"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1050 } |
b48e673af4e8
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); |
b48e673af4e8
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]; |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"; |
b48e673af4e8
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 |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1060 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1061 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1062 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1063 * help_return |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1064 * |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1067 */ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1068 function help_return() { |
b48e673af4e8
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) { |
b48e673af4e8
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!"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1071 } |
b48e673af4e8
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(); |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1075 if (pop != null) { |
b48e673af4e8
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); |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1079 } else { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1081 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1082 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1083 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1084 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1085 * update_scroll_pad |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1086 * |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1089 */ |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1091 var page, pad; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1093 pad = $("scrollpad"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1094 if (pad === null) { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1096 pad.id = 'scrollpad'; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1098 } |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1100 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1101 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1103 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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+/); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1106 all = {}; |
b48e673af4e8
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++) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1109 } |
b48e673af4e8
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++) { |
b48e673af4e8
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])) { |
b48e673af4e8
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]]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1113 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1114 } |
b48e673af4e8
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++) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1117 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1118 classes = ""; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1120 classes += cls + " "; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1121 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1122 node.className = classes; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1123 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1124 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1125 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1126 * toggle_class |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1127 * |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1131 */ |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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+/); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1135 var found = false; |
b48e673af4e8
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++) { |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1139 i--; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1140 found = true; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1141 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1142 } |
b48e673af4e8
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") { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1145 } else { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1147 } |
b48e673af4e8
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(" "); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1149 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1150 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1151 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1152 * find_child |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1153 * |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1157 */ |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1159 var pattern; |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1161 return null; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1162 } |
b48e673af4e8
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") { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1165 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1166 pattern = className; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1167 } |
b48e673af4e8
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 && |
b48e673af4e8
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)) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1170 return node; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1171 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1172 var result = null; |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1176 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1177 return result; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1178 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1179 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1180 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1181 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1182 * find_parent |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1183 * |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1186 */ |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1188 var pattern; |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1190 do { |
b48e673af4e8
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 && |
b48e673af4e8
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)) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1193 return node; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1194 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1196 return null; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1197 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1198 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1199 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1200 * find_parent_tag |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1201 * |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1204 */ |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1206 do { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1208 return node; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1209 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1211 return null; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1212 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1213 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1214 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1215 * __toggle_help |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1216 * |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1219 * |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1221 */ |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1226 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1227 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1229 e.preventDefault(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1230 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1231 |
b48e673af4e8
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")); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1233 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1234 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1236 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1237 var topic; |
b48e673af4e8
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")) { |
b48e673af4e8
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"); |
b48e673af4e8
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) { |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1244 }, false); |
b48e673af4e8
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) { |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1249 e.preventDefault(); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1251 }, false); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1252 } else { |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1254 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1255 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1256 button.className += " active"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1257 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1258 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1259 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1260 * help_button |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1261 * |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1263 */ |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1266 btn.className = "help"; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1269 return btn; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1270 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1271 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1272 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1273 * prepare_download |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1274 * |
b48e673af4e8
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. |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1277 */ |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1279 "use strict"; |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1282 if (!link) { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1284 click_link = true; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1285 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1286 try { |
b48e673af4e8
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. |
b48e673af4e8
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. |
b48e673af4e8
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, |
b48e673af4e8
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. |
b48e673af4e8
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}); |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1293 reader.onloadend = function() { |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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. |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1299 if (click_link) { |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1302 link.click(); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1304 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1305 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1306 reader.readAsDataURL(blob); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1307 } catch (error) { |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1310 link.href = ""; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1311 link.visible = false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1312 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1313 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1314 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1315 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1316 * add_cell |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1317 * |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1319 */ |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1325 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1326 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1327 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1328 * add_header_cell |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1329 * |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1331 */ |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
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)); |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1338 row.appendChild(th); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1339 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1340 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1341 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1342 * add_text_cell |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1343 * |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1345 */ |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1347 var node = null; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1350 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1351 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1352 /* |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1354 * |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1356 */ |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1358 var node = null; |
b48e673af4e8
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') { |
b48e673af4e8
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" : ""); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1361 var str = "" + text; |
b48e673af4e8
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/); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1364 if (action) { |
b48e673af4e8
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"); |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1367 } else { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1369 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1370 } else { |
b48e673af4e8
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"); |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1373 if (i !== 0) { |
b48e673af4e8
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")); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1375 } |
b48e673af4e8
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])); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1377 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1378 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1379 if (action) { |
b48e673af4e8
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); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1382 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1383 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1385 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1386 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1387 function setup_help() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1388 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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)"); |
b48e673af4e8
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++) { |
b48e673af4e8
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]); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1393 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1394 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1395 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1396 function setup_scrollpad() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1397 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1400 update_scroll_pad(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1401 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1402 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1403 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1405 (function() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1406 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1409 setup_help(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1410 setup_scrollpad(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1411 }, false); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1412 })(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1413 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1414 /* |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1415 * make_link |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1416 * |
b48e673af4e8
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. |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1420 */ |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1422 var textNode = null; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1423 var link = null; |
b48e673af4e8
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); |
b48e673af4e8
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") { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1427 url = "http://" + url; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1428 } |
b48e673af4e8
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'); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1430 link.href = url; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1432 return link; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1433 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1434 return textNode; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1435 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1436 </script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1437 <script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1438 // |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1440 // |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1442 var rect; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1443 try { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1444 rect = elem.getBoundingClientRect(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1445 } catch (e) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1446 return false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1447 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1448 return ( |
b48e673af4e8
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) && |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1450 rect.bottom > 0 && |
b48e673af4e8
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) && |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1452 rect.right > 0 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1453 ); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1454 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1455 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1456 // |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1458 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1459 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1461 var drawable_list = []; |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1470 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1471 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1472 // Drawable |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1473 // |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1476 // |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1478 this.elem = elem; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1479 this.task = task; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1480 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1481 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1482 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1483 // Drawable.is_visible |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1484 // |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1486 // |
b48e673af4e8
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() { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1489 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1490 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1491 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1492 // Drawable.run |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1493 // |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1497 this.task = null; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1498 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1499 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1500 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1501 // Drawable.run |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1502 // |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1506 if (this.task) { |
b48e673af4e8
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)) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1508 this.task.run(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1509 this.task = null; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1510 return true; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1511 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1512 return false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1513 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1514 return true; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1515 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1516 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1517 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1518 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1519 // draw_on_screen |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1520 // |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1522 // |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1524 var found = false; |
b48e673af4e8
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++) { |
b48e673af4e8
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()) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1528 found = true; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1529 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1530 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1531 return found; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1532 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1533 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1534 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1535 // process_draw_tasks |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1536 // |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1538 // draw task. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1539 // |
b48e673af4e8
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() { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1542 draw_timer = null; |
b48e673af4e8
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 |
b48e673af4e8
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()) { |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1546 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1547 //get next task |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1549 drawable.task.run(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1550 } |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1553 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1554 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1555 // |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1557 // |
b48e673af4e8
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. |
b48e673af4e8
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. |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1561 // |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1563 //reset the timer |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1567 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1568 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1569 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1570 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1571 // add_draw_task |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1572 // |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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()) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1579 task.run(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1580 } else { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1582 //reset timer |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1585 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1586 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1587 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1588 </script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1589 <script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1590 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1591 // start Alphabet object |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1592 //====================================================================== |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1594 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1597 if (generate_background) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1598 background = []; |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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."); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1602 } |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1607 this.background = background; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1609 this.encode = {}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1610 this.encode2core = {}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1611 this.complement = {}; |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1616 var s, sym; |
b48e673af4e8
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") { |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1622 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1623 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1624 }; |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1628 } |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1631 var s, sym; |
b48e673af4e8
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") { |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1635 array[sym] = index; |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
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') { |
b48e673af4e8
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; |
b48e673af4e8
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') { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1642 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1643 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1644 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1645 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1646 } |
b48e673af4e8
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 |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1653 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1655 ambigs = {}; |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1660 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1661 // determine complements |
b48e673af4e8
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++) { |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1666 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1667 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1668 next_symbol: |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1670 complement = ""; |
b48e673af4e8
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++) { |
b48e673af4e8
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)]]; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1675 } |
b48e673af4e8
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(""); |
b48e673af4e8
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") { |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1679 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1680 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1681 // determine case insensitivity |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1686 loop: |
b48e673af4e8
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++) { |
b48e673af4e8
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; |
b48e673af4e8
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') { |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1692 break loop; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1693 } |
b48e673af4e8
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') { |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1697 break loop; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1698 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1699 } |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1701 if (aliases != null) { |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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') { |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1707 break loop; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1708 } |
b48e673af4e8
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') { |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1712 break loop; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1713 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1714 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1715 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1716 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1717 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1718 } |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1721 var seen, out; |
b48e673af4e8
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++) { |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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 = ""; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1726 seen = {}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1727 out = []; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1729 sym = sym.toUpperCase(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1730 aliases = aliases.toUpperCase(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1731 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1732 seen[sym] = true; |
b48e673af4e8
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++) { |
b48e673af4e8
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)]) { |
b48e673af4e8
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; |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1737 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1738 } |
b48e673af4e8
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(""); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1740 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1741 }; |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1744 return this.name; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1745 }; |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1749 }; |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1753 }; |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1757 }; |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1760 return this.ncore; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1761 }; |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1765 }; |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1768 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1771 } |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1773 }; |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1776 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1779 } |
b48e673af4e8
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]; |
b48e673af4e8
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 : ""); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1782 }; |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1785 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1786 var sym; |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1789 } |
b48e673af4e8
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]; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1792 }; |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1795 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1796 return this.like; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1797 }; |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
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]; |
b48e673af4e8
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") { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1803 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1804 return -1; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1805 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1806 }; |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1809 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1811 core_symbols = ""; |
b48e673af4e8
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++) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1814 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1815 return core_symbols; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1816 }; |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1819 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1820 return !this.genbg; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1821 }; |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1824 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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) { |
b48e673af4e8
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]; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1830 freq = 0; |
b48e673af4e8
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; |
b48e673af4e8
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++) { |
b48e673af4e8
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)]]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1834 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1835 return freq; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1836 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1837 } |
b48e673af4e8
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."); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1839 }; |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1842 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1845 } |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1847 return "black"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1848 } |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1850 }; |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1853 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1856 } |
b48e673af4e8
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") { |
b48e673af4e8
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}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1859 } |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1865 }; |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1868 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1869 var alph_index; |
b48e673af4e8
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]; |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1872 return -1; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1873 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1874 return alph_index; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1875 }; |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1878 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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]; |
b48e673af4e8
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") { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1883 } |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1885 comprise_list = []; |
b48e673af4e8
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") { |
b48e673af4e8
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++) { |
b48e673af4e8
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)]); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1889 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1890 } else { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1892 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1893 return comprise_list; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1894 }; |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1897 var alph_index; |
b48e673af4e8
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]; |
b48e673af4e8
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; |
b48e673af4e8
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()) { |
b48e673af4e8
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()); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1902 } else { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1904 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1905 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1906 // compare 2 alphabets |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1908 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
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)) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1912 return false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1913 } |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1916 // compare |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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++) { |
b48e673af4e8
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]; |
b48e673af4e8
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]; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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 || |
b48e673af4e8
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" && |
b48e673af4e8
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))) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1929 return false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1930 } |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1933 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1934 return true; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1935 }; |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1938 var seen_set = {}; |
b48e673af4e8
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; |
b48e673af4e8
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++) { |
b48e673af4e8
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]; |
b48e673af4e8
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]; |
b48e673af4e8
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; |
b48e673af4e8
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]; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1947 // check complement |
b48e673af4e8
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) { |
b48e673af4e8
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]) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1950 complement_same = false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1951 } |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1953 complement_same = false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1954 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1955 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1957 }; |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1960 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1963 syms = seq.split(""); |
b48e673af4e8
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++) { |
b48e673af4e8
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]]; |
b48e673af4e8
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") { |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1968 } |
b48e673af4e8
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]; |
b48e673af4e8
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") { |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1972 } |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1974 } |
b48e673af4e8
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(""); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1976 }; |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1979 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1982 out = "\""; |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1985 if (c == "\"") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1986 out += "\\\""; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1987 } else if (c == "/") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1988 out += "\\/"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1989 } else if (c == "\\") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1990 out += "\\\\"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1991 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1992 out += c; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1993 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1994 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1995 out += "\""; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1996 return out; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1997 } |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1999 var out; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2000 out = sym.symbol; |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2003 } |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2005 out += " " + sym.colour; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2006 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2007 return out; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2008 } |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2010 out = ""; |
b48e673af4e8
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 |
b48e673af4e8
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++) { |
b48e673af4e8
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]; |
b48e673af4e8
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) { |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2016 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2017 } |
b48e673af4e8
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 |
b48e673af4e8
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++) { |
b48e673af4e8
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") { |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2022 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2023 } |
b48e673af4e8
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 |
b48e673af4e8
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++) { |
b48e673af4e8
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; |
b48e673af4e8
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"; |
b48e673af4e8
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") { |
b48e673af4e8
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++) { |
b48e673af4e8
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; |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2032 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2033 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2034 } |
b48e673af4e8
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 |
b48e673af4e8
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++) { |
b48e673af4e8
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") { |
b48e673af4e8
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++) { |
b48e673af4e8
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; |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2041 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2042 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2043 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2044 // output gap symbols |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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"; |
b48e673af4e8
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") { |
b48e673af4e8
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++) { |
b48e673af4e8
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; |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2052 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2053 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2054 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2055 return out; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2056 }; |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2059 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2062 out = "\""; |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2065 if (c == "\"") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2066 out += "\\\""; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2067 } else if (c == "/") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2068 out += "\\/"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2069 } else if (c == "\\") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2070 out += "\\\\"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2071 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2072 out += c; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2073 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2074 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2075 out += "\""; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2076 return out; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2077 } |
b48e673af4e8
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)) { |
b48e673af4e8
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"; |
b48e673af4e8
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)) { |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2082 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2083 return "ALPHABET" + |
b48e673af4e8
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) : "") + |
b48e673af4e8
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" + |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2087 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2088 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2089 |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2092 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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"); |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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)")); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2099 row.appendChild(th); |
b48e673af4e8
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"); |
b48e673af4e8
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")); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2102 row.appendChild(th); |
b48e673af4e8
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"); |
b48e673af4e8
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()) { |
b48e673af4e8
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")); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2106 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2107 row.appendChild(th); |
b48e673af4e8
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 |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2114 } |
b48e673af4e8
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)); |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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(' '))); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2119 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2120 row.appendChild(td); |
b48e673af4e8
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"); |
b48e673af4e8
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) { |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2124 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2125 row.appendChild(td); |
b48e673af4e8
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"); |
b48e673af4e8
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) { |
b48e673af4e8
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)); |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2130 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2131 row.appendChild(td); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2132 } |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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)")); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2137 row.appendChild(th); |
b48e673af4e8
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"); |
b48e673af4e8
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")); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2140 row.appendChild(th); |
b48e673af4e8
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"); |
b48e673af4e8
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")); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2143 row.appendChild(th); |
b48e673af4e8
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 |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2150 } |
b48e673af4e8
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)); |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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(' '))); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2155 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2156 row.appendChild(td); |
b48e673af4e8
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"); |
b48e673af4e8
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) { |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2160 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2161 row.appendChild(td); |
b48e673af4e8
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"); |
b48e673af4e8
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(''); |
b48e673af4e8
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++) { |
b48e673af4e8
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(' ')); |
b48e673af4e8
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"); |
b48e673af4e8
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])); |
b48e673af4e8
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])); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2169 td.appendChild(sym); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2170 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2171 row.appendChild(td); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2172 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2173 return table; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2174 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2175 |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2178 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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"; |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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, "\\\\"); |
b48e673af4e8
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, "\\("); |
b48e673af4e8
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, "\\)"); |
b48e673af4e8
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); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2188 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2189 out += ">> def\n"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2190 out += "/mutedColourDict <<\n"; |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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, "\\\\"); |
b48e673af4e8
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, "\\("); |
b48e673af4e8
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, "\\)"); |
b48e673af4e8
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)); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2198 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2199 out += ">> def\n"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2200 return out; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2201 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2202 |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2205 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2207 return this.name; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2208 } else { |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2210 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2211 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2212 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2213 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2214 // Helper functions |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2215 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2216 |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2219 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2220 var xyzHelper, labHelper; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2221 // XYZ helper |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2222 xyzHelper = function(value) { |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2226 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2227 value /= 12.92; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2228 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2229 value *= 100; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2230 return value; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2231 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2232 // lab helper |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2233 labHelper = function(value) { |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2236 } else { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2238 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2239 return value; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2240 }; |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2247 } else { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2251 } |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2263 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2264 |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2267 // achromatic (grey) |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2268 var r = value; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2269 var g = value; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2270 var b = value; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2271 if (sat != 0) { |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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)); |
b48e673af4e8
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))); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2278 if (i == 0) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2279 r = value; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2280 g = t; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2281 b = p; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2283 r = q; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2284 g = value; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2285 b = p; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2287 r = p; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2288 g = value; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2289 b = t; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2291 r = p; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2292 g = q; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2293 b = value; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2295 r = t; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2296 g = p; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2297 b = value; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2298 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2299 r = value; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2300 g = p; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2301 b = q; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2302 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2303 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2304 if (output_object) { |
b48e673af4e8
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}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2306 } else { |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2308 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2309 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2310 |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
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)); |
b48e673af4e8
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)); |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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... |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2320 var dh = 0; |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2324 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2325 var first = dl; |
b48e673af4e8
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)); |
b48e673af4e8
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)); |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2329 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2330 |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2333 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2339 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2340 r = rgb.red; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2341 g = rgb.green; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2342 b = rgb.blue; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2343 } |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2346 delta = max - min; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2348 if (max == min) { |
b48e673af4e8
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) |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2350 s = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2351 } else { |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2354 } else { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2356 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2357 if (max == r) { |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2362 } else { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2364 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2365 h /= 6; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2366 } |
b48e673af4e8
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}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2368 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2369 |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2372 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2374 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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)) { |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2380 return q; |
b48e673af4e8
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)) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2383 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2384 return p; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2385 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2386 } |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2389 // achromatic (grayscale) |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2390 r = hsl.l; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2391 g = hsl.l; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2392 b = hsl.l; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2393 } else { |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2396 } else { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2398 } |
b48e673af4e8
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; |
b48e673af4e8
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)); |
b48e673af4e8
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); |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2403 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2404 if (output_object) { |
b48e673af4e8
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}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2406 } else { |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2408 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2409 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2410 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2412 "use strict"; |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2416 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2417 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2418 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2419 // end Alphabet object |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2420 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2421 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2422 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2423 // start StandardAlphabet object |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2424 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2425 |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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) { |
b48e673af4e8
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]); |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2432 }; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2435 |
b48e673af4e8
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. |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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() { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2441 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2442 |
b48e673af4e8
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. |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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() { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2448 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2449 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2450 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2451 // end StandardAlphabet object |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2452 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2453 |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2455 var AlphStd = { |
b48e673af4e8
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", { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2457 "name": "RNA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2458 "like": "RNA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2459 "ncore": 4, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2460 "symbols": [ |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2465 "aliases": "T"}, |
b48e673af4e8
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."}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2477 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2478 }), |
b48e673af4e8
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", { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2480 "name": "DNA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2481 "like": "DNA", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2482 "ncore": 4, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2483 "symbols": [ |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2488 "aliases": "U"}, |
b48e673af4e8
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."}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2500 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2501 }), |
b48e673af4e8
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", { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2503 "name": "Protein", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2504 "like": "PROTEIN", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2505 "ncore": 20, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2506 "symbols": [ |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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": "*."}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"}, |
b48e673af4e8
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"} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2531 ] |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2532 }) |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2533 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2534 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2535 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2536 // start Symbol object |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2537 //====================================================================== |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2539 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2540 //variable prototype |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2542 this.scale = scale; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2544 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2545 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2547 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2548 return this.symbol; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2549 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2550 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2552 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2553 return this.scale; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2554 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2555 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2557 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2558 return this.colour; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2559 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2560 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2562 "use strict"; |
b48e673af4e8
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) + "%"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2564 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2565 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2567 "use strict"; |
b48e673af4e8
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()) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2569 return -1; |
b48e673af4e8
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()) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2571 return 1; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2572 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2573 return 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2574 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2575 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2576 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2577 // end Symbol object |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2578 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2579 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2580 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2581 // start Pspm object |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2582 //====================================================================== |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2584 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2587 name = ""; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2588 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2589 this.name = name; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2590 //construct |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2592 // copy constructor |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2601 this.pspm = []; |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2603 this.pspm[row] = []; |
b48e673af4e8
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++) { |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2606 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2607 } |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2609 this.pssm = []; |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2611 this.pspm[row] = []; |
b48e673af4e8
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++) { |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2614 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2615 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2616 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2617 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2618 // check parameters |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2619 if (ltrim == null) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2620 ltrim = 0; |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2623 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2624 if (rtrim == null) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2625 rtrim = 0; |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2628 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2629 if (nsites != null) { |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2633 nsites = null; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2634 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2635 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2636 if (evalue != null) { |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2638 if (evalue < 0) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2640 } |
b48e673af4e8
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") { |
b48e673af4e8
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)$/; |
b48e673af4e8
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)) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2645 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2646 } else { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2648 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2649 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2650 // set properties |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2651 this.name = name; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2652 this.alt = alt; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2653 this.nsites = nsites; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2654 this.evalue = evalue; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2655 this.ltrim = ltrim; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2656 this.rtrim = rtrim; |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2658 // string constructor |
b48e673af4e8
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); |
b48e673af4e8
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"]; |
b48e673af4e8
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"]; |
b48e673af4e8
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"]; |
b48e673af4e8
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) { |
b48e673af4e8
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) { |
b48e673af4e8
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"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2666 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2667 this.evalue = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2668 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2669 } |
b48e673af4e8
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) { |
b48e673af4e8
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") { |
b48e673af4e8
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"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2673 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2674 this.nsites = 20; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2675 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2676 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2677 } else { |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2682 this.nsites = 20; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2683 } |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2685 this.evalue = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2686 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2687 this.pspm = []; |
b48e673af4e8
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 |
b48e673af4e8
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++) { |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2692 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2693 this.pspm[row] = []; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2694 row_sum = 0; |
b48e673af4e8
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++) { |
b48e673af4e8
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]; |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2698 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2699 delta = 0.1; |
b48e673af4e8
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) || |
b48e673af4e8
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)) { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2703 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2704 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2705 // copy pssm |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2706 if (pssm != null) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2707 this.pssm = []; |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2709 this.pssm[row] = []; |
b48e673af4e8
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++) { |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2712 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2713 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2714 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2715 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2716 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2717 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2718 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2720 "use strict"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2722 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2723 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2725 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2727 //reverse |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2728 x = 0; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2730 while (x < y) { |
b48e673af4e8
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]; |
b48e673af4e8
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]; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2734 x++; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2735 y--; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2736 } |
b48e673af4e8
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) |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2739 //reverse |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2740 x = 0; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2742 while (x < y) { |
b48e673af4e8
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]; |
b48e673af4e8
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]; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2746 x++; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2747 y--; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2748 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2749 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2750 //swap triming |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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... |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2755 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2756 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2758 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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()) { |
b48e673af4e8
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."); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2762 } |
b48e673af4e8
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()) { |
b48e673af4e8
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."); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2765 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2766 // reverse motif |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2767 this.reverse(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2768 //complement |
b48e673af4e8
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++) { |
b48e673af4e8
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]; |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2774 temp = row[i]; |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2776 row[c] = temp; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2777 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2778 } |
b48e673af4e8
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) |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2781 //complement |
b48e673af4e8
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++) { |
b48e673af4e8
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]; |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2787 temp = row[i]; |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2789 row[c] = temp; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2790 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2791 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2792 } |
b48e673af4e8
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... |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2794 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2795 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2797 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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()) { |
b48e673af4e8
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."); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2801 } |
b48e673af4e8
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]; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2806 stack = []; |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2810 continue; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2811 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2812 stack.push(sym); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2813 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2815 return stack; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2816 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2817 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2819 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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()) { |
b48e673af4e8
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."); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2823 } |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2825 H = 0; |
b48e673af4e8
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++) { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2828 continue; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2829 } |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2831 } |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2833 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2834 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2836 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2838 return 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2839 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2841 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2842 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2844 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2846 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2847 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2849 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2851 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2852 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2854 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2855 return this.ltrim; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2856 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2857 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2859 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2860 return this.rtrim; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2861 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2862 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2864 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2866 var i, j; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2867 match = ""; |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2869 best_index = 0; |
b48e673af4e8
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); |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2874 best_odds = odds; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2875 best_index = j; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2876 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2877 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2879 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2880 return match; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2881 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2882 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2884 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2886 var i, j; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2887 text = ""; |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2889 if (i !== 0) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2890 text += "\n"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2891 } |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2893 if (j !== 0) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2894 text += " "; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2895 } |
b48e673af4e8
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]); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2897 count_text = "" + count; |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2901 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2902 text += count_text; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2903 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2904 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2905 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2906 return text; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2907 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2908 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2910 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2911 var text; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2912 var i, j; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2913 text = ""; |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2915 if (i !== 0) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2916 text += "\n"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2917 } |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2919 if (j !== 0) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2920 text += " "; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2921 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2923 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2924 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2925 return text; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2926 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2927 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2929 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2931 me = this; |
b48e673af4e8
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") { |
b48e673af4e8
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)) { |
b48e673af4e8
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."); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2935 } |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2937 pseudo = 0.01; |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2940 } |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2942 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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]; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2948 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2949 } else { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2951 "use strict"; |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2953 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2954 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2955 out = ""; |
b48e673af4e8
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++) { |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2958 if (col !== 0) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2959 out += " "; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2960 } |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2965 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2966 out += score_text; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2967 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2968 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2969 out += "\n"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2970 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2971 return out; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2972 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2973 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2975 "use strict"; |
b48e673af4e8
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 + |
b48e673af4e8
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 + |
b48e673af4e8
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" ? |
b48e673af4e8
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" + |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2981 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2982 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2984 "use strict"; |
b48e673af4e8
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 + |
b48e673af4e8
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 + |
b48e673af4e8
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" ? |
b48e673af4e8
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" + |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2990 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2991 |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2995 // get the options |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2997 options = {}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2998 } |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3003 if (with_header) { |
b48e673af4e8
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"])) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3005 version = options["version"]; |
b48e673af4e8
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") { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3008 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3009 version = "4"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3010 } |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3012 strands = 1; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3013 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3014 strands = 2; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3015 } |
b48e673af4e8
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") { |
b48e673af4e8
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"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3018 } else { |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3020 } |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3023 alphabet = options["alphabet"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3024 } else { |
b48e673af4e8
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."); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3026 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3027 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3029 out = ""; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3030 if (with_header) { |
b48e673af4e8
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"; |
b48e673af4e8
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"; |
b48e673af4e8
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 |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3035 } |
b48e673af4e8
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"; |
b48e673af4e8
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(); |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3039 if (i !== 0) { |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3041 out += "\n"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3042 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3043 out += " "; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3044 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3045 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3047 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3048 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3049 out += "\n\n"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3051 if (with_pssm) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3052 out += "\n\n"; |
b48e673af4e8
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"]); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3054 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3055 if (with_pspm) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3056 out += "\n\n"; |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3058 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3059 return out; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3060 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3061 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3063 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3065 str = ""; |
b48e673af4e8
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++) { |
b48e673af4e8
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]; |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3069 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3070 return str; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3071 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3072 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3074 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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)$/; |
b48e673af4e8
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+/); |
b48e673af4e8
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 = |
b48e673af4e8
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;) { |
b48e673af4e8
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("="); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3081 if (eqpos != -1) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3086 i += 3; |
b48e673af4e8
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) { |
b48e673af4e8
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, "="); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3089 i += 2; |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3092 i += 2; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3093 } else { |
b48e673af4e8
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, "="); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3095 i++; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3096 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3097 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3098 i++; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3099 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3100 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3101 properties = {}; |
b48e673af4e8
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) { |
b48e673af4e8
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) { |
b48e673af4e8
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. "+ |
b48e673af4e8
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(" ")); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3106 } |
b48e673af4e8
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] !== "=") { |
b48e673af4e8
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 " + |
b48e673af4e8
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]); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3110 } |
b48e673af4e8
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(); |
b48e673af4e8
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]; |
b48e673af4e8
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)) { |
b48e673af4e8
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 '" + |
b48e673af4e8
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 + "'"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3116 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3117 properties[prop] = num; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3118 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3119 return properties; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3120 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3121 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3123 "use strict"; |
b48e673af4e8
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, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3126 j, prob; |
b48e673af4e8
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; |
b48e673af4e8
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/); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3129 first_line = true; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3130 line_num = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3131 col_num = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3132 alph_length; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3133 motif_length; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3134 nsites; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3135 evalue; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3136 pspm = []; |
b48e673af4e8
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++) { |
b48e673af4e8
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]); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3140 continue; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3141 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3143 if (first_line) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3144 first_line = false; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3146 if (match !== null) { |
b48e673af4e8
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]); |
b48e673af4e8
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")) { |
b48e673af4e8
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"]); |
b48e673af4e8
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) { |
b48e673af4e8
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" + |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3153 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3154 } |
b48e673af4e8
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")) { |
b48e673af4e8
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"]); |
b48e673af4e8
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) { |
b48e673af4e8
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 " + |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3160 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3161 } |
b48e673af4e8
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")) { |
b48e673af4e8
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"]); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3164 if (nsites <= 0) { |
b48e673af4e8
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 " + |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3167 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3168 } |
b48e673af4e8
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")) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3170 evalue = props["e"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3171 if (evalue < 0) { |
b48e673af4e8
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 " + |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3174 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3175 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3176 continue; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3177 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3178 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3179 pspm[line_num] = []; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3180 col_num = 0; |
b48e673af4e8
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+/); |
b48e673af4e8
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++) { |
b48e673af4e8
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]); |
b48e673af4e8
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) { |
b48e673af4e8
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] + "'"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3186 } |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3188 col_num++; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3189 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3190 line_num++; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3191 } |
b48e673af4e8
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") { |
b48e673af4e8
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) { |
b48e673af4e8
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 " + |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3196 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3197 } else { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3199 } |
b48e673af4e8
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") { |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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 " + |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3205 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3206 } |
b48e673af4e8
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++) { |
b48e673af4e8
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) { |
b48e673af4e8
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 " + |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3211 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3212 } |
b48e673af4e8
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, |
b48e673af4e8
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}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3215 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3216 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3217 // end Pspm object |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3218 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3219 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3220 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3221 // start Logo object |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3222 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3223 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3225 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3226 this.alphabet = alphabet; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3227 this.fine_text = ""; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3233 this.pspm_list = []; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3234 this.pspm_column = []; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3235 this.rows = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3236 this.columns = 0; |
b48e673af4e8
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") { |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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 : ""); |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3248 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3249 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3250 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3252 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3253 var col; |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3255 column = 0; |
b48e673af4e8
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) { |
b48e673af4e8
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."); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3258 } |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3261 this.rows++; |
b48e673af4e8
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(); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3264 this.columns = col; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3265 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3266 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3267 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3269 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3270 return this.columns; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3271 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3272 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3274 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3276 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3277 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3279 "use strict"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3281 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3282 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3284 "use strict"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3286 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3287 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3289 "use strict"; |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3291 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3292 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3294 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3295 return this.rows; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3296 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3297 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3299 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3302 } |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3304 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3305 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3307 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3310 } |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3312 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3313 |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3316 out = ""; |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3318 out += "\nStartLine\n"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3319 // Indent |
b48e673af4e8
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++) { |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3322 } |
b48e673af4e8
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]; |
b48e673af4e8
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) { |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3326 } |
b48e673af4e8
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++) { |
b48e673af4e8
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 |
b48e673af4e8
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"; |
b48e673af4e8
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())) { |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3332 } |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
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++) { |
b48e673af4e8
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]; |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3338 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3339 if (errbars) { |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3341 } |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3343 } |
b48e673af4e8
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()) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3345 out += "RestoreColour\n"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3346 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3347 out += "EndLine\n"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3348 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3349 return out; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3350 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3351 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3353 "use strict"; |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3357 |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3361 options = {}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3362 } |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3366 } else { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3368 } |
b48e673af4e8
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") { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3371 } else { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3373 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3374 now = new Date(); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3377 var values = { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3378 "LOGOHEIGHT": height, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3379 "LOGOWIDTH": width, |
b48e673af4e8
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), |
b48e673af4e8
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), |
b48e673af4e8
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), |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3383 "CHARSPERLINE": this.columns, |
b48e673af4e8
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(), |
b48e673af4e8
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"), |
b48e673af4e8
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(), |
b48e673af4e8
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), |
b48e673af4e8
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), |
b48e673af4e8
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 : ""), |
b48e673af4e8
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), |
b48e673af4e8
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 : ""), |
b48e673af4e8
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"), |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3393 "SSC": ssc, |
b48e673af4e8
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), |
b48e673af4e8
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), |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3396 "ERRBAR": errbars, |
b48e673af4e8
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), |
b48e673af4e8
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), |
b48e673af4e8
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), |
b48e673af4e8
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"), |
b48e673af4e8
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), |
b48e673af4e8
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), |
b48e673af4e8
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), |
b48e673af4e8
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), |
b48e673af4e8
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), |
b48e673af4e8
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(), |
b48e673af4e8
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) |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3408 }; |
b48e673af4e8
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! |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3411 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3412 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3413 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3414 // end Logo object |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3415 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3416 |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3420 "use strict"; |
b48e673af4e8
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, |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3423 |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3426 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3427 // set initial values |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3430 |
b48e673af4e8
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 |
b48e673af4e8
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++) { |
b48e673af4e8
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++) { |
b48e673af4e8
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]) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3435 top_line = r; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3436 break; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3437 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3438 } |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3440 break; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3441 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3442 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3443 |
b48e673af4e8
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... |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3446 |
b48e673af4e8
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 |
b48e673af4e8
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--) { |
b48e673af4e8
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++) { |
b48e673af4e8
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]) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3451 bottom_line = r; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3452 break; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3453 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3454 } |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3456 break; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3457 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3458 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3459 // calculate height |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3461 |
b48e673af4e8
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 |
b48e673af4e8
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++) { |
b48e673af4e8
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++) { |
b48e673af4e8
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]) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3466 left_line = c; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3467 break; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3468 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3469 } |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3471 break; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3472 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3473 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3474 |
b48e673af4e8
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 |
b48e673af4e8
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--) { |
b48e673af4e8
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++) { |
b48e673af4e8
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]) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3479 right_line = c; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3480 break; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3481 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3482 } |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3484 break; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3485 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3486 } |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3488 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3489 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3490 //return the bounds |
b48e673af4e8
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, |
b48e673af4e8
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, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3493 height: txt_height}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3494 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3495 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3496 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3497 // start RasterizedAlphabet |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3498 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3499 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3500 // Rasterize Alphabet |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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') |
b48e673af4e8
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). |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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). |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3510 "use strict"; |
b48e673af4e8
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, |
b48e673af4e8
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, |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3514 //variable prototypes |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3515 this.alphabet = alphabet; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3517 this.sym_cache = {}; |
b48e673af4e8
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 = []; |
b48e673af4e8
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 = []; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3520 // size of canvas |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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'); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3532 ctx.font = font; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3533 ctx.textAlign = "center"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3535 // list of widths |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3536 widths = []; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3537 sizes = []; |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3540 // reset the canvas |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3545 //measure |
b48e673af4e8
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); |
b48e673af4e8
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!"); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3549 sizes[i] = size; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3550 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3551 //sort the widths |
b48e673af4e8
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;}); |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3556 widths.pop(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3557 widths.shift(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3558 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3559 //calculate average width |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3560 avg_width = 0; |
b48e673af4e8
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) { |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3563 } |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3567 // calculate scales |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3570 size = sizes[i]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3571 // calculate scale |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3573 // estimate scaled height |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
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"); |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3579 // calculate the middle |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3581 // calculate the baseline |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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'); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3585 ctx.font = font; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3587 ctx.textAlign = "center"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3589 ctx.save(); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3591 // draw the text |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3593 ctx.restore(); |
b48e673af4e8
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)}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3595 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3596 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3597 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3599 return this.alphabet; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3600 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3601 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3603 return this.scale; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3604 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3605 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3607 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3610 image = entry.image; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3611 size = entry.size; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3613 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3614 |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3619 // measure the text |
b48e673af4e8
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'); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3621 image_ctx.save(); |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3624 image_ctx.restore(); |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3628 // draw the text |
b48e673af4e8
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'); |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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"; |
b48e673af4e8
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"; |
b48e673af4e8
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)); |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3637 } else { |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3639 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3641 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3642 |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3647 // measure the text |
b48e673af4e8
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'); |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3655 // draw the text |
b48e673af4e8
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'); |
b48e673af4e8
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; |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3660 } else { |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3666 // draw the text |
b48e673af4e8
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'); |
b48e673af4e8
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; |
b48e673af4e8
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"; |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3672 } |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3674 } else { |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3676 } |
b48e673af4e8
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)) |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3678 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3679 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3680 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3681 // end RasterizedAlphabet |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3682 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3683 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3684 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3685 // start LogoMetrics object |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3686 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3687 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3689 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3691 //variable prototypes |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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"; |
b48e673af4e8
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; |
b48e673af4e8
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"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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"; |
b48e673af4e8
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(); |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3729 } |
b48e673af4e8
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) |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3735 } |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3739 } else { |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3742 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3743 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3750 if (has_names) { |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3756 } else { |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3760 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3762 } |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3765 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3767 if (has_names) { |
b48e673af4e8
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; |
b48e673af4e8
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), |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3771 } else { |
b48e673af4e8
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), |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3774 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3775 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3784 } |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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) |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3789 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3790 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3791 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3792 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3793 // end LogoMetrics object |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3794 //====================================================================== |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3795 |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3798 "use strict"; |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3802 if (!img.complete) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3803 return false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3804 } |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3809 return false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3810 } |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3812 return true; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3813 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3814 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3816 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3817 if (!ctx.fillText) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3818 return false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3819 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3820 if (!ctx.measureText) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3821 return false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3822 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3823 return true; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3824 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3825 |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3828 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3831 ctx.save(); |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3834 ctx.save(); |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3838 ctx.textAlign = "center"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3840 ctx.restore(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3841 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3843 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3845 ctx.save(); |
b48e673af4e8
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); |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3848 //draw the number |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3849 ctx.save(); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3852 ctx.restore(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3853 //draw the tic |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3857 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3858 ctx.restore(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3859 |
b48e673af4e8
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) |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3861 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3862 ctx.restore(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3863 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3864 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3866 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3867 ctx.save(); |
b48e673af4e8
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)); |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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) |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3873 ctx.beginPath(); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3876 ctx.fill(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3877 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3878 ctx.restore(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3879 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3880 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3882 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3884 preferred_pad = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3885 sym_min = 5; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3886 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3887 ctx.save();//1 |
b48e673af4e8
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); |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3890 sym = symbols[i]; |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3892 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3893 pad = preferred_pad; |
b48e673af4e8
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) { |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3896 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3897 sym_height -= pad; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3898 |
b48e673af4e8
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 |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3901 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3902 //draw |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3906 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3907 ctx.restore();//1 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3908 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3909 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3911 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3913 dx = x2 - x1; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3914 dy = y2 - y1; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3919 lx = []; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3920 ly = []; |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3924 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3925 i = start; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3926 x = x1; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3927 y = y1; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3928 len = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3929 ctx.beginPath(); |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3932 x += lx[i]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3933 y += ly[i]; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3935 len += pattern[i]; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3937 x += lx[i]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3938 y += ly[i]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3939 len += pattern[i]; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3941 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3942 if (len < tlen) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3947 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3948 ctx.stroke(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3949 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3950 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3952 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3955 var line_x; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3956 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3957 ctx.save();//s8 |
b48e673af4e8
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)"; |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3961 } |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3964 } |
b48e673af4e8
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)"; |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3969 } |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3973 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3974 ctx.restore();//s8 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3975 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3976 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3978 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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)); |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3983 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3984 } |
b48e673af4e8
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'), |
b48e673af4e8
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); |
b48e673af4e8
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") { |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3991 } else { |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3999 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4000 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4001 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4002 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4004 "use strict"; |
b48e673af4e8
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, |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4007 ssc = false; |
b48e673af4e8
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)); |
b48e673af4e8
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); |
b48e673af4e8
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'); |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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") { |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4017 } else { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4019 scale = 1; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4028 } else { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4030 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4031 } |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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") { |
b48e673af4e8
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 = []; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4036 } |
b48e673af4e8
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++) { |
b48e673af4e8
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]; |
b48e673af4e8
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) && |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4041 raster = null; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4042 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4043 if (raster == null) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4046 } |
b48e673af4e8
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'); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4048 ctx.save();//s1 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4050 ctx.save();//s2 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4051 ctx.save();//s7 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4052 //create margin |
b48e673af4e8
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)); |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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))) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4059 ctx.save();//s4 |
b48e673af4e8
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)); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4062 ctx.textAlign = "center"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4064 ctx.restore();//s4 |
b48e673af4e8
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 + |
b48e673af4e8
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))); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4067 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4068 //draw scale |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4070 ctx.save();//s5 |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
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 + |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4075 } |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
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(); |
b48e673af4e8
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(); |
b48e673af4e8
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; |
b48e673af4e8
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()) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4082 // no overlap |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4083 left_start = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4084 left_end = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4085 left_divider = false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4086 } else { |
b48e673af4e8
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()) { |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4089 } |
b48e673af4e8
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()) { |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4092 left_divider = false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4093 } |
b48e673af4e8
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(); |
b48e673af4e8
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(); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4097 left_start = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4098 left_end = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4099 left_divider = false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4100 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4101 } |
b48e673af4e8
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(); |
b48e673af4e8
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()); |
b48e673af4e8
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()); |
b48e673af4e8
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; |
b48e673af4e8
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()) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4107 // no overlap |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4108 right_start = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4109 right_end = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4110 right_divider = false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4111 } else { |
b48e673af4e8
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()) { |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4114 right_divider = false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4115 } |
b48e673af4e8
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()) { |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4118 } |
b48e673af4e8
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(); |
b48e673af4e8
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(); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4122 right_start = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4123 right_end = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4124 right_divider = false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4125 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4126 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4128 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4129 //draw letters |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4130 var xlate_col; |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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()); |
b48e673af4e8
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) { |
b48e673af4e8
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())) { |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4139 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4140 } else { |
b48e673af4e8
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())) { |
b48e673af4e8
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 |
b48e673af4e8
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)); |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4146 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4147 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4149 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4150 ctx.restore();//s5 |
b48e673af4e8
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 |
b48e673af4e8
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))) { |
b48e673af4e8
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 |
b48e673af4e8
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 + |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4156 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4157 ctx.save();//s6 |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4160 ctx.textAlign = "center"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4162 ctx.restore();//s6 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4164 } else { |
b48e673af4e8
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 |
b48e673af4e8
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 + |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4168 } |
b48e673af4e8
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 |
b48e673af4e8
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)) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4172 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4173 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4174 ctx.restore();//s7 |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4178 ctx.textAlign = "right"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4180 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4181 ctx.restore();//s2 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4182 ctx.restore();//s1 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4183 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4184 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4186 "use strict"; |
b48e673af4e8
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"); |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4189 if (!canvas.getContext) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4190 return null; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4191 } |
b48e673af4e8
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'); |
b48e673af4e8
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 |
b48e673af4e8
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)) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4195 return null; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4196 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4197 //size the canvas |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4203 return canvas; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4204 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4205 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4207 "use strict"; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4210 return logo; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4211 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4212 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4214 "use strict"; |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4219 } else { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4222 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4223 return logo; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4224 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4225 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4226 /* |
b48e673af4e8
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. |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4230 * to replace it. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4231 * |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4234 */ |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4236 "use strict"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4238 if (!image) { |
b48e673af4e8
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 + ")"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4240 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4241 } |
b48e673af4e8
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 |
b48e673af4e8
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)) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4244 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4245 } |
b48e673af4e8
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. |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4248 if (canvas === null) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4249 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4250 } |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4255 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4256 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4257 /* |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4260 */ |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4262 "use strict"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4264 if (!replace_id) { |
b48e673af4e8
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 + ")"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4266 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4267 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4268 //found the element! |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4270 if (canvas === null) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4271 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4272 } |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4277 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4278 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4279 /* |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4282 * |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4285 * the whole string. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4286 */ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4287 function trim (str) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4288 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4289 var ws, i; |
b48e673af4e8
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*/, ''); |
b48e673af4e8
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; |
b48e673af4e8
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))); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4294 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4295 </script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4296 <script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4297 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4298 // PRIVATE GLOBAL (uhoh) |
b48e673af4e8
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 = {}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4300 |
b48e673af4e8
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) { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4303 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4305 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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)) { |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4311 return q; |
b48e673af4e8
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)) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4314 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4315 return p; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4316 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4317 } |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4321 return hex; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4322 } |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4324 if (saturation == 0) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4325 // achromatic (grayscale) |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4326 r = lightness; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4327 g = lightness; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4328 b = lightness; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4329 } else { |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4332 } else { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4334 } |
b48e673af4e8
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; |
b48e673af4e8
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)); |
b48e673af4e8
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); |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4339 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4341 } |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4343 // check for override |
b48e673af4e8
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) { |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4346 var sat = 100; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4347 var light = 50; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4352 } |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4354 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4355 |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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 + "\"]"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4359 var i; |
b48e673af4e8
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++) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4362 } |
b48e673af4e8
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 + "\"]"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4364 var picker; |
b48e673af4e8
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++) { |
b48e673af4e8
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; |
b48e673af4e8
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\"]"); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4369 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4370 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4371 |
b48e673af4e8
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) { |
b48e673af4e8
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") { |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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() { |
b48e673af4e8
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; |
b48e673af4e8
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.. |
b48e673af4e8
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'); |
b48e673af4e8
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'); |
b48e673af4e8
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'; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4382 if (value_ok) { |
b48e673af4e8
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. |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4385 var smile = ':)'; |
b48e673af4e8
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; |
b48e673af4e8
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;'; |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4391 doc_ele.offsetWidth; |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4394 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4395 return value_ok; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4396 })(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4397 } |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4400 var swatch; |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4407 picker.type = "color"; |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4411 }, false); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4413 picker.click(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4414 }, false); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4415 swatch.appendChild(picker); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4416 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4417 entry.appendChild(swatch); |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4421 entry.appendChild(name); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4422 return entry; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4423 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4424 |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4428 var step; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4430 step = 1; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4432 step = 2; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4434 step = 4; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4436 step = 10; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4438 step = 20; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4440 step = 40; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4442 step = 100; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4444 step = 200; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4446 step = 400; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4447 } else { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4449 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4450 var peroid; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4452 peroid = 1; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4454 peroid = 2; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4455 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4456 peroid = 5; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4457 } |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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) + "%"; |
b48e673af4e8
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"); |
b48e673af4e8
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; |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4464 container.appendChild(tic); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4465 if (cycle == 0) { |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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; |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4470 container.appendChild(label); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4471 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4472 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4473 return container; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4474 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4475 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4477 var mouse; |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4481 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4482 mouse = { |
b48e673af4e8
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, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4485 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4486 } |
b48e673af4e8
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; |
b48e673af4e8
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 - |
b48e673af4e8
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) - |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4495 //in firefox 2. |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4501 return pos; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4502 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4503 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4505 "use strict"; |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4510 // validate needle positions |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4516 if (data.moveboth) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4518 if (data.isleft) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4520 left = pos; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4521 right = pos + size; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4522 } else { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4524 left = pos - size; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4525 right = pos; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4526 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4527 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4528 if (data.isleft) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4530 left = pos; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4531 } else { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4533 right = pos; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4534 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4535 } |
b48e673af4e8
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 |
b48e673af4e8
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) + "%"; |
b48e673af4e8
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); |
b48e673af4e8
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) + "%"; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4542 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4543 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4545 return function (e) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4546 data.isleft = isleft; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4550 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4551 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4552 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4554 return function (e) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4558 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4559 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4560 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4562 return function (e) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4564 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4565 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4566 |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
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'); |
b48e673af4e8
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"); |
b48e673af4e8
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)+ "%"; |
b48e673af4e8
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'); |
b48e673af4e8
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"); |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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."; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4580 vbar.appendChild(label); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4581 if (isleft) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4582 data.lneedle = vbar; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4583 data.llabel = label; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4584 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4585 data.rneedle = vbar; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4586 data.rlabel = label; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4587 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4589 return vbar; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4590 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4591 |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4599 if (is_stranded) { |
b48e673af4e8
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"); |
b48e673af4e8
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("+")); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4603 container.appendChild(plus); |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
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("-")); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4608 container.appendChild(minus); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4609 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4610 } |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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) + "%"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4614 container.appendChild(rule); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4616 var range_data = { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4617 "max": max_len, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4618 "len": show_len, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4619 "off": offset, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4620 "handler": range_handler, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4621 "container": container, |
b48e673af4e8
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, |
b48e673af4e8
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, |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4625 }; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4630 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4631 return container; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4632 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4633 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4635 "use strict"; |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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) + "%"; |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4640 container.appendChild(label); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4641 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4642 |
b48e673af4e8
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, |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4645 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
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 : |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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) + "%"; |
b48e673af4e8
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 : |
b48e673af4e8
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"; |
b48e673af4e8
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) + "%"; |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4663 // add to container |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4664 container.appendChild(block); |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4669 }; |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4674 } |
b48e673af4e8
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 |
b48e673af4e8
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"); |
b48e673af4e8
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" + |
b48e673af4e8
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"); |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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" + |
b48e673af4e8
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" : ""); |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4692 return block; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4693 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4694 |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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")); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4700 left = start - off; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4701 right = end - off; |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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 |
b48e673af4e8
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) + "%"; |
b48e673af4e8
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); |
b48e673af4e8
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) + "%"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4711 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4712 |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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")); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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}; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4723 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4724 </script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4725 <script> |
b48e673af4e8
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) { |
b48e673af4e8
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) { |
b48e673af4e8
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"); |
b48e673af4e8
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))); |
b48e673af4e8
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); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4732 return span; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4733 } |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4735 // create table |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4738 // create header |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4740 table.appendChild(thead); |
b48e673af4e8
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); |
b48e673af4e8
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()) { |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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, ""); |
b48e673af4e8
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, ""); |
b48e673af4e8
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, ""); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4752 } else { |
b48e673af4e8
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, ""); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4757 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4758 // add alphabet entries |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4760 table.appendChild(tbody); |
b48e673af4e8
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()) { |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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)); |
b48e673af4e8
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)); |
b48e673af4e8
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)); |
b48e673af4e8
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)); |
b48e673af4e8
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, "~"); |
b48e673af4e8
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)); |
b48e673af4e8
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)); |
b48e673af4e8
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)); |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4775 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4776 } else { |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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)); |
b48e673af4e8
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)); |
b48e673af4e8
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)); |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4783 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4784 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4785 return table; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4786 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4787 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4788 </script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4789 <script> |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4792 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4794 this.logo = logo; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4795 this.canvas = canvas; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4796 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4797 |
b48e673af4e8
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 () { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4800 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4801 |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4804 // get motif |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4806 // get motif paramters |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4807 pwm = motif["pwm"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4808 psm = motif["psm"]; |
b48e673af4e8
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; |
b48e673af4e8
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"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4811 // make pspm |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4813 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4814 |
b48e673af4e8
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) { |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4817 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4818 |
b48e673af4e8
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) { |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4821 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4822 |
b48e673af4e8
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) { |
b48e673af4e8
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({ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4825 "with_header": true, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4826 "with_pspm": true, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4827 "with_pssm": true, |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4828 "version": data["version"], |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4829 "alphabet": meme_alphabet, |
b48e673af4e8
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) |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4831 }); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4832 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4833 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4835 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4837 counter = {}; |
b48e673af4e8
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"]; |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4840 sites = motif["sites"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4841 out = ""; |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4843 site = sites[i]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4844 seq = site["seq"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4845 sequence = sequences[seq]; |
b48e673af4e8
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 |
b48e673af4e8
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";} |
b48e673af4e8
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"] + |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4850 out += site["match"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4851 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4852 return out; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4853 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4854 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4856 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4859 out = ""; |
b48e673af4e8
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++) { |
b48e673af4e8
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";} |
b48e673af4e8
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"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4863 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4864 return out; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4865 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4866 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4868 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4872 node.id = ""; |
b48e673af4e8
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"); |
b48e673af4e8
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++) { |
b48e673af4e8
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]; |
b48e673af4e8
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")) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4877 button.tabIndex = "0"; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4880 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4881 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4882 return node; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4883 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4884 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4886 var node; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4888 if (node === null) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4890 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4891 node.innerHTML = ""; |
b48e673af4e8
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") { |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4894 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4895 node.appendChild(value); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4896 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4897 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4898 |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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, ""); |
b48e673af4e8
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); |
b48e673af4e8
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'); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4904 canvas.height = 50; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4905 canvas.width = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4906 canvas.className = className; |
b48e673af4e8
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); |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4909 return canvas; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4910 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4911 |
b48e673af4e8
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) { |
b48e673af4e8
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 = {}; |
b48e673af4e8
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); |
b48e673af4e8
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}); |
b48e673af4e8
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)); |
b48e673af4e8
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'); |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4920 canvas.height = 0; |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4923 } else { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4925 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4926 return canvas; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4927 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4928 |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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, ""); |
b48e673af4e8
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); |
b48e673af4e8
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'); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4934 canvas.height = 200; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4935 canvas.width = 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4936 canvas.className = className; |
b48e673af4e8
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); |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4939 return canvas; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4940 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4941 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4943 var box; |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4945 box.tabIndex = 0; |
b48e673af4e8
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"; |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4948 box.title = title; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4951 return box; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4952 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4953 |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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"); |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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++) { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4961 break; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4962 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4963 } |
b48e673af4e8
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"); |
b48e673af4e8
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)); |
b48e673af4e8
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))); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4967 sbox.appendChild(lbox); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4968 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4969 return sbox; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4970 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4971 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4972 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4973 // make_pv_text |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4974 // |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4976 /// |
b48e673af4e8
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() { |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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")); |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
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")); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4984 return pv_text; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4985 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4986 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4988 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4989 var i, end; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4991 var rbody; |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4993 count = 20; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4994 } |
b48e673af4e8
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"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4996 sites = motif["sites"]; |
b48e673af4e8
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); |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4999 site = sites[i]; |
b48e673af4e8
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"]]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5001 |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5011 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5012 return i; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5013 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5014 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5016 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5017 var region; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5018 region = this; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5020 // all sites created |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5022 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5023 } |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5026 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5027 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5028 |
b48e673af4e8
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( |
b48e673af4e8
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], |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5032 ); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5033 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5034 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5036 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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") { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5044 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5045 div.appendChild(title); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5046 if (help_topic) { |
b48e673af4e8
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")); |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5049 } |
b48e673af4e8
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); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5052 th.appendChild(div); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5053 th.appendChild(divcp); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5054 if (nopad) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5055 th.className = "nopad"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5056 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5057 if (tag_class) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5059 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5060 row.appendChild(th); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5061 } |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5063 |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5066 |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5070 |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5074 |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5076 tbl.appendChild(thead); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5078 tbl.appendChild(tbody); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5079 |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5089 |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5094 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5095 return outer_tbl; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5096 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5097 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5099 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5101 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5103 ev_re = /^(.*)e(.*)$/; |
b48e673af4e8
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)) { |
b48e673af4e8
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]); |
b48e673af4e8
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]); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5107 if (exp >= 0) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5108 return false; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5110 return true; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5111 } else { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5113 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5114 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5115 return true; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5116 } |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5118 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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"]) { |
b48e673af4e8
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"]; |
b48e673af4e8
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"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5124 } else { |
b48e673af4e8
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"]); |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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()) { |
b48e673af4e8
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"); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5131 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5132 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5133 if (preview_rc) { |
b48e673af4e8
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"); |
b48e673af4e8
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("+")); |
b48e673af4e8
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"; |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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("-")); |
b48e673af4e8
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"; |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5150 } |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5159 if (preview_rc) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5160 if (motif["rc"]) { |
b48e673af4e8
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"; |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5163 } else { |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5165 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5166 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5167 return box; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5168 } |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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"])) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5174 } |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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.", |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5182 add_cell(row, |
b48e673af4e8
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", |
b48e673af4e8
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.", |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5185 action_show_outpop), |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5186 "motif_submit"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5187 if (colw) { |
b48e673af4e8
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++) { |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5190 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5191 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5192 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5193 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5195 var i, j; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5197 var motif, pspm; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5198 |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5200 |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5202 tbl.appendChild(thead); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5204 tbl.appendChild(tbody); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5206 tbl.appendChild(tfoot); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5207 |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5216 |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5220 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5221 |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5224 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5225 return tbl; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5226 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5227 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5229 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5232 |
b48e673af4e8
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"); |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5236 |
b48e673af4e8
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"]); |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5239 motif["rc"] = false; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5240 } |
b48e673af4e8
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"]) { |
b48e673af4e8
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"]; |
b48e673af4e8
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"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5244 } else { |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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()) { |
b48e673af4e8
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"); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5250 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5251 } |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5254 |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"]); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5259 |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5262 |
b48e673af4e8
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"]); |
b48e673af4e8
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"]); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5265 |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5270 |
b48e673af4e8
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); |
b48e673af4e8
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"]); |
b48e673af4e8
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"]); |
b48e673af4e8
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"]); |
b48e673af4e8
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"]); |
b48e673af4e8
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"]); |
b48e673af4e8
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"]); |
b48e673af4e8
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"]); |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5280 |
b48e673af4e8
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 ?? |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5282 |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5291 return box; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5292 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5293 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5294 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5295 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5296 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5297 /// |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5298 function make_motifs() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5299 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5301 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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$/; |
b48e673af4e8
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)) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5306 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5307 return 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5308 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5309 var container, tbl; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5311 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5313 container = $("motifs"); |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5315 |
b48e673af4e8
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"]); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5317 container.appendChild(tbl); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5318 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5320 colw = []; |
b48e673af4e8
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]; |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5323 var padLeft, padRight; |
b48e673af4e8
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]; |
b48e673af4e8
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); |
b48e673af4e8
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")); |
b48e673af4e8
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")); |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5330 colw[c] = 1; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5331 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5332 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5333 |
b48e673af4e8
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 |
b48e673af4e8
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++) { |
b48e673af4e8
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]; |
b48e673af4e8
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++) { |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5339 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5340 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5341 |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5344 |
b48e673af4e8
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 |
b48e673af4e8
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]; |
b48e673af4e8
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]; |
b48e673af4e8
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]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5349 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5350 draw_on_screen(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5351 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5352 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5354 "use strict"; |
b48e673af4e8
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]; |
b48e673af4e8
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, |
b48e673af4e8
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); |
b48e673af4e8
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 ? |
b48e673af4e8
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) : |
b48e673af4e8
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)); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5363 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5364 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5366 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5371 // define some constants |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5376 // get the sequence |
b48e673af4e8
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]; |
b48e673af4e8
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 |
b48e673af4e8
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(), |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5382 sites = sequence["sites"]; |
b48e673af4e8
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++) |
b48e673af4e8
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]); |
b48e673af4e8
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 |
b48e673af4e8
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]; |
b48e673af4e8
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++) |
b48e673af4e8
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]); |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5397 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5398 return end; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5399 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5400 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5402 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5403 var region; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5404 region = this; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5406 // all sites created |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5408 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5409 } |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5412 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5413 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5414 |
b48e673af4e8
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( |
b48e673af4e8
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], |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5418 ); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5419 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5420 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5421 function make_blocks() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5422 "use strict"; |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5424 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5425 var label, radio; |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5427 radio.type = "radio"; |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5429 radio.id = id; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5430 radio.checked = checked; |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5434 label.htmlFor = id; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5435 container.appendChild(radio); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5436 container.appendChild(label); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5437 if (help_topic) { |
b48e673af4e8
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")); |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5440 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5441 } |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5443 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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") { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5450 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5451 div.appendChild(title); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5452 if (help_topic) { |
b48e673af4e8
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")); |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5455 } |
b48e673af4e8
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); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5458 th.appendChild(div); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5459 th.appendChild(divcp); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5460 if (nopad) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5461 th.className = "nopad"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5462 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5463 row.appendChild(th); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5464 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5465 var container; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5468 |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5471 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5472 container = $("blocks"); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5475 container.innerHTML = ""; |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5479 |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5482 |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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"; |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5488 |
b48e673af4e8
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"); |
b48e673af4e8
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"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5492 |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5494 tbl.appendChild(thead); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5496 tbl.appendChild(tbody); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5497 |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5503 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5505 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5506 |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5510 |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5513 } |
b48e673af4e8
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; |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5517 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5518 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5519 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5521 return function (e) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5522 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5528 if (pop) return; |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"})); |
b48e673af4e8
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); |
b48e673af4e8
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)); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5537 |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5542 if (pop) { |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5545 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5546 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5547 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5548 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5549 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5551 return function (e) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5552 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5553 var pop; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5558 if (pop) return; |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5566 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5567 lflank = site.lflank; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5568 match = site.match; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5569 rflank = site.rflank; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5570 } |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5573 ruler.innerHTML = ""; |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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})); |
b48e673af4e8
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); |
b48e673af4e8
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)); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5586 |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5591 if (pop) { |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5594 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5595 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5596 }; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5597 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5598 |
b48e673af4e8
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) { |
b48e673af4e8
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)) { |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5604 break; |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5608 break; |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5612 break; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5613 case 3: // fasta |
b48e673af4e8
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); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5616 break; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5617 case 4: // raw |
b48e673af4e8
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); |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5620 break; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5621 default: |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5623 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5624 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5625 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5627 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5629 motifs = data["motifs"]; |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5631 current_motif = index; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5632 motif = motifs[index]; |
b48e673af4e8
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"]); |
b48e673af4e8
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, ""); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5636 canvas = $("outpop_logo"); |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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()) { |
b48e673af4e8
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); |
b48e673af4e8
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, ""); |
b48e673af4e8
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"); |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5645 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5646 num = $("outpop_num"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5647 num.innerHTML = ""; |
b48e673af4e8
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))); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5650 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5651 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5652 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5653 // action_show_more |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5654 // |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5656 /// |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5659 var expanded_motif; |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5663 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5664 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5666 e.preventDefault(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5667 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5669 node = this; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5670 do { |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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!?"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5674 tr = node; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5675 // get info |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5678 // find tbody |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5679 do { |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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!?"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5683 tbody = node; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5684 // find table |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5685 do { |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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!?"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5689 table = node; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5690 // find container |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5691 container = node.parentNode; |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5693 motif["expanded"] = true; |
b48e673af4e8
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, |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5708 } else { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5709 var table2, tbody2; |
b48e673af4e8
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); |
b48e673af4e8
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)); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5713 table2.appendChild(tbody2); |
b48e673af4e8
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); |
b48e673af4e8
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--) { |
b48e673af4e8
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]; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5718 if (row === tr) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5719 break; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5720 } |
b48e673af4e8
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]); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5722 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5724 } |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5726 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5727 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5728 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5729 // action_show_less |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5730 // |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5732 /// |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5734 var btn; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5740 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5741 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5743 e.preventDefault(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5744 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5745 btn = this; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5746 // find expanded motif |
b48e673af4e8
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"); |
b48e673af4e8
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."); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5749 // find the container |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5751 // get data |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5758 table_before = null; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5759 } |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5763 table_after = null; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5764 } |
b48e673af4e8
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. |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5768 motif["expanded"] = false; |
b48e673af4e8
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) { |
b48e673af4e8
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]; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
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]; |
b48e673af4e8
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) { |
b48e673af4e8
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]; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5779 tbody.appendChild(row); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5780 } |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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]; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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]; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5794 } else { |
b48e673af4e8
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! |
b48e673af4e8
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 |
b48e673af4e8
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"]); |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5800 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5801 focus_target.focus(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5802 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5803 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5805 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5806 function init() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5807 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5811 var format_list; |
b48e673af4e8
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; |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5827 tab1.tabIndex = 0; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5831 tab2.tabIndex = 0; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5835 tab3.tabIndex = 0; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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"; |
b48e673af4e8
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"; |
b48e673af4e8
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"; |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5849 // setup program selection |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5850 tbl_submit = $("programs"); |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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']"); |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5857 } |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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(); |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5866 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5867 var node; |
b48e673af4e8
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 |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5873 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5874 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5876 e.preventDefault(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5877 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5879 help_popup(); |
b48e673af4e8
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 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5882 init(); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5884 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5886 node = this; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5887 do { |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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!"); |
b48e673af4e8
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); |
b48e673af4e8
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 |
b48e673af4e8
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"; |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5895 $("outpop_close").focus(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5896 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5897 |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5902 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5903 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5905 e.preventDefault(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5906 } |
b48e673af4e8
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"; |
b48e673af4e8
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"; |
b48e673af4e8
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") { |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5911 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5912 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5913 |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5918 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5919 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5921 e.preventDefault(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5922 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5924 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5925 |
b48e673af4e8
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) { |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5930 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5931 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5933 e.preventDefault(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5934 } |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5936 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5937 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5939 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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++) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5946 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5947 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5948 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5950 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5952 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5953 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5955 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5958 var radios, i; |
b48e673af4e8
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"); |
b48e673af4e8
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 |
b48e673af4e8
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++) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5963 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5964 |
b48e673af4e8
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); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5969 |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5974 form.appendChild(input); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5975 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5977 form.submit(); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5979 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5980 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5982 $("text_form").submit(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5983 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5984 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5986 "use strict"; |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5988 $("logo_form").submit(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5989 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5990 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5992 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5997 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5998 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6000 e.preventDefault(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6001 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6002 node = this; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6003 do { |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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!?"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6007 tr = node; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6008 // get info |
b48e673af4e8
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; |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6015 motif["rc"] = rc; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6019 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6020 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6022 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6027 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6028 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6030 e.preventDefault(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6031 } |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
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; |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6041 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6042 |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6044 "use strict"; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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") { |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6049 return; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6050 } |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6052 e.preventDefault(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6053 } |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6061 |
b48e673af4e8
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)); |
b48e673af4e8
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)); |
b48e673af4e8
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)); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6072 if (this === tab1) { |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6076 } else { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6078 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6079 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6080 |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6082 "use strict"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6083 var block_container; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6084 block_container = $("blocks"); |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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) { |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6094 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6095 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6096 |
b48e673af4e8
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() { |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6099 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6100 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6101 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6102 // page_loaded |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6103 // |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6105 /// |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6106 function page_loaded() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6107 post_load_setup(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6108 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6109 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6110 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6111 // page_loaded |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6112 // |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6114 /// |
b48e673af4e8
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) { |
b48e673af4e8
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(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6117 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6118 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6119 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6120 // page_loaded |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6121 // |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6123 /// |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6124 function page_resized() { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6126 update_scroll_pad(); |
b48e673af4e8
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; |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6129 if (blocks_scroll) { |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6131 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6132 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6133 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6134 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6135 // pre_load_setup |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6136 // |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6138 /// |
b48e673af4e8
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() { |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6143 motifs = data["motifs"]; |
b48e673af4e8
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"]; |
b48e673af4e8
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; |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6147 sequence = sequences[i]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6148 sequence["sites"] = []; |
b48e673af4e8
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) { |
b48e673af4e8
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"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6151 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6152 } |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6154 // use hsl colours |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6155 start = 0; //red |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6156 sat = 100; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6157 light = 50; |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6159 motif = motifs[i]; |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
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); |
b48e673af4e8
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 + "%)"; |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6166 sites = motif["sites"]; |
b48e673af4e8
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++) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6168 site = sites[j]; |
b48e673af4e8
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"]]; |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6171 site["motif"] = i; |
b48e673af4e8
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 |
b48e673af4e8
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); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6174 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6175 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6176 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6177 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6178 // |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6179 // post_load_setup |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6180 // |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6182 // |
b48e673af4e8
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() { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6184 update_scroll_pad(); |
b48e673af4e8
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) { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6186 make_motifs(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6187 make_blocks(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6188 } else { |
b48e673af4e8
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 |
b48e673af4e8
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>"; |
b48e673af4e8
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>"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6192 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6193 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6194 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6195 pre_load_setup(); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6196 </script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6197 <style> |
b48e673af4e8
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 */ |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6200 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6201 div.help { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6202 display: inline-block; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6203 margin: 0px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6204 padding: 0px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6205 width: 12px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6206 height: 13px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6207 cursor: pointer; |
b48e673af4e8
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==); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6209 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6210 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6211 div.help:hover { |
b48e673af4e8
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==); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6213 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6214 |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6216 |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6218 |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6220 |
b48e673af4e8
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; |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6223 |
b48e673af4e8
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; |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6226 |
b48e673af4e8
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; |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6229 |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6233 |
b48e673af4e8
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; |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6236 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6237 h5 {margin: 0px} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6238 |
b48e673af4e8
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; |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6241 |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6243 |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6245 |
b48e673af4e8
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;} |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6248 |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6250 |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6252 |
b48e673af4e8
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; } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6254 |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6256 |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6258 |
b48e673af4e8
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;} |
b48e673af4e8
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;} |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6262 |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6264 |
b48e673af4e8
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;} |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6266 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6267 th.trainingset { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6269 font-weight:normal; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6270 padding:0px 10px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6271 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6272 div.pop_content { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6273 position:absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6274 z-index:50; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6275 width:300px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6276 padding: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6277 background: #E4ECEC; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6278 font-size: 12px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6279 font-family: Arial; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6280 border-style: double; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6281 border-width: 3px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6282 border-color: #AA2244; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6283 display:none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6284 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6285 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6287 margin-top: 0px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6288 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6289 |
b48e673af4e8
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, |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6292 margin: 0px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6293 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6294 |
b48e673af4e8
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, |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6297 margin-top: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6298 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6299 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6301 margin-top: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6302 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6303 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6305 margin-bottom: 0px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6306 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6307 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6309 /* old definition */ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6310 float:right; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6311 bottom: 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6312 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6313 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6315 display: inline-block; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6317 background-color: #CCC; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6318 padding-left: 1px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6319 padding-right: 1px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6320 padding-top: 0px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6321 padding-bottom: 0px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6322 cursor: pointer; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6323 color: #AA2244; /*#661429;*/ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6324 font-weight: bold; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6325 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6326 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6328 border-style: inset; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6329 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6330 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6332 float:right; |
b48e673af4e8
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;*/ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6334 /*color: #AA2244;*/ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6335 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6336 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6338 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6339 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6340 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6342 margin-bottom: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6343 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6344 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6346 margin-top: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6347 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6348 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6350 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6351 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6352 span.show_more { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6353 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6354 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6356 display: inline; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6357 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6359 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6360 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6361 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6362 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6363 /***************************************************************************** |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6364 * Program logo styling |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6365 ****************************************************************************/ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6366 div.prog_logo { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6368 height: 4.5em; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6369 width: 24em; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6370 display:inline-block; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6371 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6373 float:left; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6374 width: 4em; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6375 border-style: none; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6377 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6379 margin:0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6380 padding:0; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6383 line-height: 1em; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6384 vertical-align: top; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6385 display: block; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6386 color: #026666; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6389 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6391 display: block; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6392 margin:0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6393 padding:0; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6396 line-height: 1em; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6398 color: black; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6399 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6400 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6402 font-size: 18px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6403 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6404 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6405 </style> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6406 <style> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6407 .block_td { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6408 height:25px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6409 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6410 .block_container { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6411 position:relative; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6413 height: 25px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6414 padding: 0px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6415 margin: 0px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6416 margin-left: 1em; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6417 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6418 .block_label { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6419 position: absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6420 display: inline-block; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6421 padding: 3px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6422 z-index: 4; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6423 top: 6px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6424 height: 12px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6425 line-height: 12px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6426 font-size: 12px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6427 background-color: white; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6431 border-radius: 12px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6432 transform: translateX(-50%); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6433 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6434 .block_motif { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6435 position: absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6436 z-index: 3; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6437 top: 0px; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6440 height: 12px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6441 background-color: cyan; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6442 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6443 .block_motif.top { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6445 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6446 .block_motif.bottom { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6448 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6450 opacity: 0.3; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6451 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6453 opacity: 0.9; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6454 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6455 .block_region { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6456 position:absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6457 z-index:6; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6458 height:25px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6459 top:0px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6460 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6461 .block_region.main { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6462 z-index:8; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6463 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6465 z-index:5; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6466 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6468 z-index:7; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6469 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6470 .block_region.top { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6471 height:13px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6472 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6473 .block_region.bottom { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6474 height:13px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6475 top:12px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6476 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6477 .block_rule { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6478 position:absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6479 z-index:2; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6480 width:100%; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6481 height:1px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6482 top:12px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6483 left:0px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6484 background-color:gray; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6485 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6486 .block_plus_sym { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6487 position:absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6488 z-index:4; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6489 line-height:12px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6490 top:0px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6491 left:-1em; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6492 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6493 .block_minus_sym { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6494 position:absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6495 z-index:4; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6496 line-height:12px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6497 top:13px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6498 left:-1em; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6499 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6500 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6501 .tic_major { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6502 position:absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6503 top:0em; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6504 height:0.5em; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6505 width: 2px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6506 margin-left: -1px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6507 background-color: blue; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6508 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6509 .tic_minor { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6510 position:absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6511 top:0em; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6512 height:0.2em; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6513 width: 1px; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6515 background-color: blue; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6516 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6517 .tic_label { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6518 position:absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6519 display: inline-block; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6520 top:0.5em; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6521 height: 1em; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6522 color: blue; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6523 transform: translateX(-50%); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6524 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6525 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6526 .block_needle { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6527 position:absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6528 z-index:4; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6529 height:30px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6530 width:1px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6531 top:-2px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6532 background-color:gray; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6533 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6534 .block_needle.right { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6535 height: 60px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6536 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6537 .block_handle { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6538 position: absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6539 display: inline-block; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6540 z-index: 5; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6541 top: 27px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6542 min-width: 3ex; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6543 text-align: center; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6544 font-size: 12px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6545 line-height: 12px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6546 transform: translateX(-50%); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6547 background-color: LightGrey; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6549 cursor: pointer; |
b48e673af4e8
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 */ |
b48e673af4e8
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 */ |
b48e673af4e8
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+ */ |
b48e673af4e8
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 */ |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6555 user-select: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6556 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6557 .block_handle.right { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6558 top: 47px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6559 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6560 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6561 .legend_container { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6562 text-align: right; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6563 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6564 .legend_entry { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6565 display: inline-block; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6566 padding: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6567 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6568 div.legend_swatch { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6570 width: 15px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6571 height: 15px; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6573 background-color: cyan; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6574 float: left; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6575 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6577 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6578 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6579 .legend_text { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6580 line-height: 15px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6581 margin-left: 20px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6582 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6583 </style> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6584 <style> |
b48e673af4e8
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 */ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6586 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6587 div.pop_block { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6588 position:absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6589 z-index:5; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6590 padding: 5px; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6592 display: inline-block; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6593 background-color: white; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6594 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6595 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6596 #measure_match { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6597 position: absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6598 visibility: hidden; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6599 height: auto; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6600 width: auto; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6601 white-space: nowrap; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6602 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6603 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6604 div.template { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6605 position: absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6606 z-index: 1; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6607 left: 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6608 top: 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6609 visibility: hidden; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6610 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6611 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6612 table.block_information { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6613 margin-left: auto; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6614 margin-right: auto; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6615 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6616 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6618 text-align: right; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6619 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6620 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6622 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6623 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6624 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6626 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6627 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6628 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6630 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6631 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6632 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6633 td.symaction { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6634 text-align: center; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6635 text-decoration: underline; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6636 font-size: 20px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6637 cursor: pointer; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6638 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6639 div.sym_btn { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6640 display:inline-block; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6641 text-decoration: underline; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6642 cursor: pointer; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6643 font-size: 20px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6644 line-height:20px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6645 text-align: center; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6646 width: 20px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6647 height: 20px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6648 color: blue; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6649 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6651 color: white; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6652 background-color: blue; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6653 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6654 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6656 position: absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6657 top: 0px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6658 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6659 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6660 div.actionbutton { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6661 display:inline-block; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6662 cursor: pointer; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6663 font-size: 18px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6664 line-height:20px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6665 padding: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6666 margin: 10px 0; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6668 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6669 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6670 div.actionbutton:hover { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6671 color:#FFF; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6672 background-color:#000; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6673 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6674 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6675 div.param_box { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6676 display: inline-block; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6677 margin-right: 20px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6678 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6679 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6680 span.param { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6681 font-weight: bold; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6682 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6683 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6685 margin-top: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6686 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6687 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6688 div.sites_outer { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6689 position: relative; |
b48e673af4e8
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 */ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6691 display: inline-block; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6692 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6693 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6694 div.sites_inner { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6695 overflow-x: hidden; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6696 overflow-y: auto; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6697 max-height: 200px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6698 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6699 table.sites_tbl { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6700 border-collapse: collapse; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6701 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6702 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6704 position: absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6705 top: 0; |
b48e673af4e8
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 */ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6707 text-align: left; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6708 padding-left: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6709 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6711 padding-left: 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6712 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6714 visibility: hidden; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6715 height: 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6716 padding: 0 10px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6717 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6719 padding: 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6720 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6722 height: 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6723 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6724 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6725 table.sites_tbl { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6726 overflow-x: hidden; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6727 overflow-y: auto; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6728 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6729 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6730 .site_num { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6731 text-align: right; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6732 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6733 .site_name { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6734 padding:0px 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6735 text-align:left; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6736 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6737 .site_strand { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6738 padding:0px 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6739 text-align:center; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6740 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6742 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6743 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6744 .site_start { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6745 padding:0px 15px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6746 text-align: right; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6747 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6748 .site_pvalue { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6749 text-align:center; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6750 padding:0px 15px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6751 text-align:right; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6752 white-space: nowrap; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6753 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6755 font-weight:bold; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6756 font-size:15px; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6758 color:gray; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6759 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6760 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6761 .site.lflank { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6762 text-align:right; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6763 padding-right:5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6764 color:gray; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6765 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6766 .site.match { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6767 text-align:center; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6768 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6769 .site.rflank { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6770 text-align:left; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6771 padding-left:5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6772 padding-right: 20px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6773 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6774 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6775 th.stop_reason { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6776 text-align: left; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6777 padding-right: 10px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6778 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6779 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6780 th.motif_ordinal { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6781 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6782 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6783 td.motif_ordinal { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6784 text-align: right; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6785 padding-right: 10px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6786 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6787 th.motif_logo { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6788 padding-right: 10px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6789 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6790 td.motif_logo { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6791 padding-right: 10px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6792 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6793 th.motif_evalue { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6794 text-align:right; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6795 padding-right: 10px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6796 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6797 td.motif_evalue { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6798 text-align: right; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6799 white-space: nowrap; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6800 padding-right: 20px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6801 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6802 th.motif_nsites { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6803 text-align: right; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6804 padding-right: 10px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6805 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6806 td.motif_nsites { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6807 text-align: right; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6808 padding-right: 20px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6809 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6810 th.motif_width { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6811 text-align: right; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6812 padding-right: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6813 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6814 td.motif_width { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6815 text-align: right; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6816 padding-right: 15px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6817 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6818 th.motif_more { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6819 padding: 0 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6820 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6821 td.motif_more { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6822 text-align: center; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6823 padding: 0 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6824 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6825 th.motif_submit { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6826 padding: 0 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6827 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6828 td.motif_submit { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6829 text-align: center; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6830 padding: 0 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6831 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6832 th.motif_download { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6833 padding-left: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6834 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6835 td.motif_download { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6836 text-align: center; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6837 padding-left: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6838 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6839 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6840 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6841 div.tabArea { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6842 font-size: 80%; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6843 font-weight: bold; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6844 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6845 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6846 .norc div.tabArea { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6847 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6848 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6849 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6851 cursor: pointer; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6852 color: #888; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6853 background-color: #ddd; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6855 padding: 2px 1em; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6856 text-decoration: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6857 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6858 span.tab.middle { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6860 } |
b48e673af4e8
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 { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6863 } |
b48e673af4e8
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 { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6866 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6867 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6868 span.tab:hover { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6869 background-color: #bbb; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6870 border-color: #bbb; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6871 color: #666; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6872 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6874 background-color: white; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6875 color: black; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6876 cursor: default; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6877 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6878 div.tabMain { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6880 background-color: white; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6881 padding: 10px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6882 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6883 div.tabMain.base { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6884 margin-top: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6885 display: inline-block; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6886 max-width: 98%; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6887 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6888 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6889 div.tabMain.top { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6890 margin-bottom: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6891 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6892 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6893 div.tabCenter { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6894 max-width: 100%; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6895 overflow-x: auto; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6896 height: 200px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6897 overflow-y: hidden; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6898 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6899 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6900 canvas.logo_rc { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6901 display:none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6902 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6904 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6905 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6907 display: block; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6908 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6909 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6910 canvas.scan_logo { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6911 margin-left: 10px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6912 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6913 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6914 div.blocks_outer { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6915 position: relative; |
b48e673af4e8
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 */ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6917 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6918 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6919 div.blocks_inner { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6920 overflow-x: hidden; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6921 overflow-y: auto; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6922 max-height: 200px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6923 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6924 table.blocks_tbl { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6925 border-collapse: collapse; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6926 width: 100%; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6927 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6928 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6930 position: absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6931 top: 0; |
b48e673af4e8
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 */ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6933 text-align: left; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6934 padding-left: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6935 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6937 padding-left: 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6938 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6940 visibility: hidden; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6941 height: 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6942 padding: 0 10px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6943 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6945 padding: 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6946 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6948 height: 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6949 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6950 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6951 table.blocks_tbl { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6952 overflow-x: hidden; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6953 overflow-y: auto; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6954 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6955 td.block_td { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6956 width: 99%; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6957 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6958 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6959 *.blockdiag_num { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6960 text-align: right; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6961 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6962 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6963 td.blockdiag_name { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6964 text-align: left; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6965 padding:0px 10px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6966 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6967 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6968 td.blockdiag_pvalue { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6969 padding:0px 10px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6970 text-align:right; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6971 white-space: nowrap; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6972 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6973 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6974 div.preview_btn { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6976 height: 16px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6977 width: 16px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6978 font-size: 12px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6979 line-height: 16px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6980 text-align: center; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6981 cursor: pointer; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6982 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6984 margin-top: 3px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6985 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6986 |
b48e673af4e8
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 { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6989 cursor: default; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6990 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6991 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6993 background-color: black; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6994 color: white; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6995 border-color: black; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6996 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6997 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6999 background-color: white; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7000 color: black; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7001 border-color: black; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7002 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7003 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7004 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7006 position: absolute; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7007 left: 0px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7008 top: 0px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7009 padding: 3px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7010 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7011 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7013 height: 50px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7014 overflow-y: hidden; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7015 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7016 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7018 margin-left: 25px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7019 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7020 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7021 div.preview_box { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7022 position: relative; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7023 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7024 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7025 div.grey_background { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7026 position:fixed; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7027 z-index: 8; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7028 background-color: #000; |
b48e673af4e8
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)"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7030 opacity: 0.5; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7031 left: 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7032 top: 0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7033 width: 100%; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7034 height: 100%; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7035 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7036 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7037 div.popup_wrapper { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7038 position:fixed; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7039 z-index:9; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7040 width:100%; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7041 height:0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7042 top:50%; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7043 left:0; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7044 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7045 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7046 div.popup { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7047 width: 600px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7048 z-index:9; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7049 margin-left: auto; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7050 margin-right: auto; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7051 padding: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7052 background-color: #FFF; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7053 border-style: double; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7054 border-width: 5px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7055 border-color: #00666a; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7056 position:relative; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7057 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7058 div.close { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7059 cursor: pointer; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7061 width:15px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7062 height:15px; |
b48e673af4e8
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 */ |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7064 text-align:center; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7065 background-color:#FFF; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7066 color:#000; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7067 font-size:15px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7068 font-family:monospace; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7069 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7070 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7071 div.close:hover { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7072 color:#FFF; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7073 background-color:#000; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7074 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7075 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7076 div.navnum { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7077 width:100%; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7078 height:20px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7079 line-height:20px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7080 text-align:center; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7081 font-size:medium; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7082 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7083 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7084 div.navarrow { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7085 font-size: 30px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7086 text-decoration:none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7087 cursor: pointer; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7091 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7092 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7094 display: inline; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7095 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7097 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7098 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7099 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7101 display: inline; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7102 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7104 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7105 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7106 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7107 table.programs { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7108 width: 100%; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7109 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7110 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7111 table.programs tr { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7112 background-color: #EFE; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7113 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7114 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7116 background-color: #262; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7117 color: #FFF; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7118 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7119 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7121 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7122 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7123 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7125 display: table-row; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7126 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7127 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7128 div.programs_scroll { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7129 width: 100%; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7130 height: 90px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7131 overflow-y: auto; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7132 overflow-x: hidden; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7133 margin: 0 auto; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7134 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7136 margin-top: 20px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7137 border-collapse:collapse; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7138 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7140 padding-left: 15px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7141 padding-right: 15px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7142 padding-top: 1px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7143 padding-bottom: 1px; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7144 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7145 |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7147 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7148 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7149 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7150 /* program settings */ |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7152 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7153 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7155 display: inline; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7156 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7158 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7159 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7161 display: inline; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7162 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7164 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7165 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7167 display: inline; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7168 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7170 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7171 } |
b48e673af4e8
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, |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7174 display: inline; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7175 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7177 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7178 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7180 display: inline; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7181 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7183 display: none; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7184 } |
b48e673af4e8
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 { |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7186 display: inline; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7187 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7188 </style> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7189 </head> |
b48e673af4e8
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()"> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7191 <!-- --> |
b48e673af4e8
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;"> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7193 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7194 <!-- Help popups --> |
b48e673af4e8
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_"> |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7199 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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, |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7215 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7220 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7226 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7231 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7238 <dl> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7239 <dt>Tomtom</dt> |
b48e673af4e8
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. |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7242 <dt>MAST</dt> |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7246 <dt>FIMO</dt> |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7250 <dt>GOMO</dt> |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7254 <dt>SpaMo</dt> |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7258 </dl> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7261 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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). |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7272 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7280 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7283 |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7287 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7292 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7295 <dl> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7296 <dt>+</dt> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7298 <dt>-</dt> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7300 </dl> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7303 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7310 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7314 frequencies.</p> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7317 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7324 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7325 |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7332 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7333 |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7341 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7342 |
b48e673af4e8
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"> |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7346 algorithm.</p> |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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. |
b48e673af4e8
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> |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7357 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7358 |
b48e673af4e8
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"> |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7366 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7367 |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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 |
b48e673af4e8
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) |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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 |
b48e673af4e8
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) |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7381 |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7384 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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 |
b48e673af4e8
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, |
b48e673af4e8
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> |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7403 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7404 |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7409 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7414 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7419 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7424 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7425 |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7430 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7436 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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;">[ |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7441 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7442 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7443 <!-- templates --> |
b48e673af4e8
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> |
b48e673af4e8
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"> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7446 <div> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7449 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7454 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7460 </table> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7461 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7462 |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7471 </table> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7472 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7473 |
b48e673af4e8
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"> |
b48e673af4e8
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"> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7478 </div> |
b48e673af4e8
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" |
b48e673af4e8
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> |
b48e673af4e8
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" |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7483 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7484 <div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7489 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7494 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7499 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7500 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7503 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7507 Complement</span> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7508 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7514 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7519 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7524 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7529 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7530 </div> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7532 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7533 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7534 |
b48e673af4e8
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"> |
b48e673af4e8
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"> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7537 <div> |
b48e673af4e8
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; "> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7540 </div> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7543 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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;"> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7548 </div> |
b48e673af4e8
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> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7552 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7553 </div> |
b48e673af4e8
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;"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7557 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7558 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7559 <div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7560 <!-- tabs start --> |
b48e673af4e8
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"> |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7565 </div> |
b48e673af4e8
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"> |
b48e673af4e8
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 --> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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"> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7576 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7577 <tr> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7582 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7583 <tr> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7588 </tr> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7594 </tr> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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 |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7600 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7601 </table> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7602 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7603 <!-- download text format --> |
b48e673af4e8
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"> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7605 <div> |
b48e673af4e8
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> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7613 </select> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7614 </div> |
b48e673af4e8
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=""> |
b48e673af4e8
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> |
b48e673af4e8
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"> |
b48e673af4e8
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"> |
b48e673af4e8
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" |
b48e673af4e8
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;" |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7622 </form> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7623 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7624 <!-- download logo format --> |
b48e673af4e8
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"> |
b48e673af4e8
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=""> |
b48e673af4e8
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> |
b48e673af4e8
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"/> |
b48e673af4e8
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=""/> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7630 <table> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7631 <tr> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7633 <td> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7637 </select> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7638 </td> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7639 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7640 <tr> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7642 <td> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7646 </select> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7647 </td> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7648 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7649 <tr> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7651 <td> |
b48e673af4e8
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"/> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7656 </select> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7657 </td> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7658 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7659 <tr> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7661 <td> |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7663 </td> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7664 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7665 <tr> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7667 <td> |
b48e673af4e8
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 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7669 </td> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7670 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7671 </table> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7672 </form> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7673 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7674 <!-- Buttons --> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7675 <div> |
b48e673af4e8
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;"> |
b48e673af4e8
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" /> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7678 </div> |
b48e673af4e8
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;"> |
b48e673af4e8
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" /> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7681 </div> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7683 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7684 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7685 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7686 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7687 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7688 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7689 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7690 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7691 <!-- Page starts here --> |
b48e673af4e8
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"> |
b48e673af4e8
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"> |
b48e673af4e8
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"> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7695 <h1>MEME</h1> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7697 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7698 <p> |
b48e673af4e8
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 |
b48e673af4e8
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 |
b48e673af4e8
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>. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7702 </p> |
b48e673af4e8
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 /> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7704 <span class="citation"> |
b48e673af4e8
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, |
b48e673af4e8
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", |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7710 </span> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7711 </p> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7712 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7713 <!-- navigation --> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7714 <div class="pad2"> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7716 | |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7718 | |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7720 | |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7722 </div> |
b48e673af4e8
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 --> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7726 <script> |
b48e673af4e8
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"; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7728 </script> |
b48e673af4e8
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> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7733 </div> |
b48e673af4e8
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> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7738 </div> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7740 <div class="box"> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7741 <h4>Sequences</h4> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7747 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7748 <tr> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7753 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7754 </table> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7755 <script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7756 { |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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(); |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7761 if (db.psp) { |
b48e673af4e8
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; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7763 } |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7765 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7766 </script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7767 <h4>Background</h4> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7769 <script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7770 { |
b48e673af4e8
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)); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7772 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7773 </script> |
b48e673af4e8
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> |
b48e673af4e8
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"> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7776 <tr> |
b48e673af4e8
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> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7782 </td> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7783 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7784 <tr> |
b48e673af4e8
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> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7790 </td> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7791 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7792 <tr> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7795 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7796 <tr> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7799 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7800 <tr> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7803 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7804 <tr> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7807 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7808 <tr> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7811 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7812 <tr> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7815 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7816 <tr class="advanced"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7819 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7820 <tr class="advanced"> |
b48e673af4e8
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> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7828 </td> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7829 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7830 <tr class="advanced"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7833 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7834 <tr class="advanced"> |
b48e673af4e8
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> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7839 </td> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7840 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7841 <tr class="advanced"> |
b48e673af4e8
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> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7846 </td> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7847 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7848 <tr class="advanced"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7851 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7852 <tr class="advanced"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7855 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7856 <tr class="advanced"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7859 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7860 <tr class="advanced"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7863 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7864 <tr class="advanced"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7867 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7868 <tr class="advanced"> |
b48e673af4e8
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> |
b48e673af4e8
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"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7873 </td> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7874 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7875 <tr> |
b48e673af4e8
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"> |
b48e673af4e8
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')"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7880 </a> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7881 </td> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7882 </tr> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7883 </table> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7884 <script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7885 { |
b48e673af4e8
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; |
b48e673af4e8
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"); |
b48e673af4e8
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; |
b48e673af4e8
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"); |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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; |
b48e673af4e8
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"); |
b48e673af4e8
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"); |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7905 } |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7906 </script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7907 </div> |
b48e673af4e8
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 --> |
b48e673af4e8
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"> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7910 <div class="subsection"> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7914 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7915 <script> |
b48e673af4e8
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"]; |
b48e673af4e8
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"]; |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7918 </script> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7919 <div class="subsection"> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7921 <span class="citation"> |
b48e673af4e8
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, |
b48e673af4e8
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", |
b48e673af4e8
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 |
b48e673af4e8
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. |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7926 </span> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7927 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7928 <div class="subsection"> |
b48e673af4e8
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> |
b48e673af4e8
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"> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7931 </textarea> |
b48e673af4e8
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> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7933 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7934 </div> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7935 |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7936 </body> |
b48e673af4e8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7937 </html> |